[PATCH 3/5] KVM: Force real-mode cs limit to 64K

From: Avi Kivity
Date: Thu Dec 21 2006 - 04:48:25 EST


From: Michael Riepe <michael@xxxxxxxx>

this allows opensolaris to boot on kvm/intel.

Signed-off-by: Michael Riepe <michael@xxxxxxxx>
Signed-off-by: Avi Kivity <avi@xxxxxxxxxxxx>

Index: linux-2.6/drivers/kvm/vmx.c
===================================================================
--- linux-2.6.orig/drivers/kvm/vmx.c
+++ linux-2.6/drivers/kvm/vmx.c
@@ -726,6 +726,7 @@ static void enter_rmode(struct kvm_vcpu
vmcs_write32(GUEST_SS_AR_BYTES, 0xf3);

vmcs_write32(GUEST_CS_AR_BYTES, 0xf3);
+ vmcs_write32(GUEST_CS_LIMIT, 0xffff);
vmcs_write16(GUEST_CS_SELECTOR, vmcs_readl(GUEST_CS_BASE) >> 4);

fix_rmode_seg(VCPU_SREG_ES, &vcpu->rmode.es);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/