]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Emulator mis-decodes VEX instructions on real-mode
authorNadav Amit <namit@cs.technion.ac.il>
Sun, 2 Nov 2014 09:54:58 +0000 (11:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Nov 2014 07:20:10 +0000 (08:20 +0100)
commiteca1f93754c73298fccf97769dd65c2c69a97dab
tree2b47f40c3731be445a4710af2517ed8c47fc619e
parent25e915da9978cf1db862a212e7043214cbc9e599
KVM: x86: Emulator mis-decodes VEX instructions on real-mode

Commit 371dda17fa82 (KVM: x86: Mark VEX-prefix instructions emulation as
unimplemented, 2014-06-02) marked VEX instructions as such in protected
mode.  VEX-prefix instructions are not supported relevant on real-mode
and VM86, but should cause #UD instead of being decoded as LES/LDS.

Fix this behaviour to be consistent with real hardware.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
[Check for mod == 3, rather than 2 or 3. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c