diff options
author | Michael Riepe <michael@mr511.de> | 2006-12-22 04:05:45 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-22 11:55:46 -0500 |
commit | abacf8dff911ecc11513dff162d7990aa8ed2da0 (patch) | |
tree | 07b94b22dbdb94b1864f0a13c761a1d29bac9589 | |
parent | bf591b24d07126143356058966d79423661f491f (diff) |
[PATCH] KVM: Force real-mode cs limit to 64K
This allows opensolaris to boot on kvm/intel.
Signed-off-by: Michael Riepe <michael@mr511.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | drivers/kvm/vmx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index f0f0b1a781f8..2d7c6d6f1273 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -726,6 +726,7 @@ static void enter_rmode(struct kvm_vcpu *vcpu) | |||
726 | vmcs_write32(GUEST_SS_AR_BYTES, 0xf3); | 726 | vmcs_write32(GUEST_SS_AR_BYTES, 0xf3); |
727 | 727 | ||
728 | vmcs_write32(GUEST_CS_AR_BYTES, 0xf3); | 728 | vmcs_write32(GUEST_CS_AR_BYTES, 0xf3); |
729 | vmcs_write32(GUEST_CS_LIMIT, 0xffff); | ||
729 | vmcs_write16(GUEST_CS_SELECTOR, vmcs_readl(GUEST_CS_BASE) >> 4); | 730 | vmcs_write16(GUEST_CS_SELECTOR, vmcs_readl(GUEST_CS_BASE) >> 4); |
730 | 731 | ||
731 | fix_rmode_seg(VCPU_SREG_ES, &vcpu->rmode.es); | 732 | fix_rmode_seg(VCPU_SREG_ES, &vcpu->rmode.es); |