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)
commit8ea7d6aef84e278fcb121acff1bd4c3edaa95b8b
treeee61ee7da7bd83b1df8f02dcf67648a1617e7888
parentd09beabd7cd4cf70d982ff54656dc6431df80fa4
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