KVM: x86 emulator: Forbid modifying CS segment register by mov instruction
commit3e338f53281fc492a931928e6e53ec15eaf9cf3d
authorGleb Natapov <gleb@redhat.com>
Thu, 18 Feb 2010 10:14:59 +0000 (18 12:14 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:50:15 +0000 (15 08:50 -0700)
treedbf5bf84421f7b1e4338017879ce82fb7671452b
parent89412b0b75eab56d30a2592bb8fd3d8f68825803
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