Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abacf8df authored by Michael Riepe's avatar Michael Riepe Committed by Linus Torvalds
Browse files

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



This allows opensolaris to boot on kvm/intel.

Signed-off-by: default avatarMichael Riepe <michael@mr511.de>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bf591b24
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);