]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86 emulator: reject SYSENTER in compatibility mode on AMD guests
authorAvi Kivity <avi@redhat.com>
Wed, 1 Feb 2012 10:23:21 +0000 (12:23 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:57:20 +0000 (14:57 +0200)
commit99c931bbe83a29f5a5d00bb3827e52a9be597688
treedf0c7276bac2b3899a7d033fa24783e84e7817ab
parent81fc432dd80454ba329845a93667d55b004b8c86
KVM: x86 emulator: reject SYSENTER in compatibility mode on AMD guests

If the guest thinks it's an AMD, it will not have prepared the SYSENTER MSRs,
and if the guest executes SYSENTER in compatibility mode, it will fails.

Detect this condition and #UD instead, like the spec says.

Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c