]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: x86 emulator: Forbid modifying CS segment register by mov instruction
authorGleb Natapov <gleb@redhat.com>
Thu, 18 Feb 2010 10:14:59 +0000 (12:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 16:07:11 +0000 (09:07 -0700)
commit8bc4cf28e87f4269773061bac06087c5efe1cc8b
tree88090ac4ef10820109e128ffeff9714a8b37020f
parent1c731613a9923eed0405f1abbc689e0a16add65a
KVM: x86 emulator: Forbid modifying CS segment register by mov instruction

commit 8b9f44140bc4afd2698413cd9960c3912168ee91 upstream.

Inject #UD if guest attempts to do so. This is in accordance to Intel
SDM.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/emulate.c