]> err.no Git - linux-2.6/commitdiff
KVM: s390: Fix kvm on IBM System z10
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 29 Jul 2008 21:48:42 +0000 (23:48 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 31 Jul 2008 08:57:18 +0000 (11:57 +0300)
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.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/s390/kvm/priv.c

index 2e2d2ffb6a0758932d60fd5ee86de9e63160b8ff..d1faf5c544057f718c3737faf2340dfbaf3914c1 100644 (file)
@@ -158,6 +158,7 @@ static int handle_stfl(struct kvm_vcpu *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));