]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: Add flag to check for protected mode instructions
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 4 Apr 2011 10:39:26 +0000 (12:39 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:01 +0000 (07:57 -0400)
commit2979d73a8afb21071c1bef6c6dfc410a3e0d3453
treeee61ee7da7bd83b1df8f02dcf67648a1617e7888
parent538d20dce76771271e9289d7ec02842644bb0e04
KVM: x86 emulator: Add flag to check for protected mode instructions

This patch adds a flag for the opcoded to tag instruction
which are only recognized in protected mode. The necessary
check is added too.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_emulate.h
arch/x86/kvm/emulate.c