Skip to contentSkip to conversation

kvm-s390: Fix kvm on IBM System z10

PATCH New Christian Borntraeger 1 participant 1 message Jul 29, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kvm-s390: Fix kvm on IBM System z10

I forgot to CC the list, here it is.

---------- Weitergeleitete Nachricht ----------

Betreff: [PATCH] kvm-s390: Fix kvm on IBM System z10
Datum: Dienstag, 29. Juli 2008
Von: Christian Borntraeger <[email protected]>
An: Avi Kivity <[email protected]>

From: Christian Borntraeger <[email protected]>

The z10 system supports large pages, kvm-s390 doesnt.
Make sure that we dont advertise large pages to avoid the guest crashing as soon as the guest kernel activates DAT.

Avi, this should go into 2.6.27-rc*.

---
 arch/s390/kvm/priv.c |    1 +
 1 file changed, 1 insertion(+)
arch/s390/kvm/priv.c +1 -0
Index: kvm/arch/s390/kvm/priv.c
===================================================================
@@ -158,6 +158,7 @@ static int handle_stfl(struct kvm_vcpu *
 
 	vcpu->stat.instruction_stfl++;
 	facility_list &= ~(1UL<<24); /* no stfle */
+	facility_list &= ~(1UL<<23); /* no large pages */
 
 	rc = copy_to_guest(vcpu, offsetof(struct _lowcore, stfl_fac_list),
 			   &facility_list, sizeof(facility_list));

-------------------------------------------------------