KVM: VMX: Force seg.base == (seg.sel << 4) in real mode
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 19 Nov 2007 09:21:45 +0000 (10:21 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 30 Jan 2008 15:53:06 +0000 (17:53 +0200)
commit15b00f32d53f31fe194b17ca0384a37756b55be2
tree2555b34389c6a4a3c24569201b6504794b566d5d
parent54f1585a8d0131bc3993902d4441f4049daed0d5
KVM: VMX: Force seg.base == (seg.sel << 4) in real  mode

Ensure that segment.base == segment.selector << 4 when entering the real
mode on Intel so that the CPU will not bark at us.  This fixes some old
protected mode demo from http://www.x86.org/articles/pmbasics/tspec_a1_doc.htm.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/vmx.c