From: Michael Riepe Date: Fri, 22 Dec 2006 09:05:45 +0000 (-0800) Subject: [PATCH] KVM: Force real-mode cs limit to 64K X-Git-Tag: v2.6.20-rc2~58 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abacf8dff911ecc11513dff162d7990aa8ed2da0;p=linux-2.6 [PATCH] KVM: Force real-mode cs limit to 64K This allows opensolaris to boot on kvm/intel. Signed-off-by: Michael Riepe Signed-off-by: Avi Kivity Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index f0f0b1a781..2d7c6d6f12 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -726,6 +726,7 @@ static void enter_rmode(struct kvm_vcpu *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);