]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/s390/kvm/priv.c
[S390] Use unsigned long long for u64 on 64bit.
[linux-2.6-omap-h63xx.git] / arch / s390 / kvm / priv.c
index d1faf5c544057f718c3737faf2340dfbaf3914c1..3605df45dd419fb2082b193c8e7438bf5b815dfe 100644 (file)
@@ -118,7 +118,7 @@ static int handle_store_cpu_address(struct kvm_vcpu *vcpu)
                goto out;
        }
 
-       VCPU_EVENT(vcpu, 5, "storing cpu address to %lx", useraddr);
+       VCPU_EVENT(vcpu, 5, "storing cpu address to %llx", useraddr);
 out:
        return 0;
 }
@@ -157,8 +157,8 @@ static int handle_stfl(struct kvm_vcpu *vcpu)
        int rc;
 
        vcpu->stat.instruction_stfl++;
-       facility_list &= ~(1UL<<24); /* no stfle */
-       facility_list &= ~(1UL<<23); /* no large pages */
+       /* only pass the facility bits, which we can handle */
+       facility_list &= 0xfe00fff3;
 
        rc = copy_to_guest(vcpu, offsetof(struct _lowcore, stfl_fac_list),
                           &facility_list, sizeof(facility_list));