KVM: PPC: Book3S HV: Ensure MSR[HV] is always clear in guest MSR
[linux-2.6-microblaze.git] / arch / powerpc / kvm / book3s_hv_builtin.c
index 41cb03d..7a0e33a 100644 (file)
@@ -662,8 +662,8 @@ static void kvmppc_end_cede(struct kvm_vcpu *vcpu)
 
 void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr)
 {
-       /* Guest must always run with ME enabled. */
-       msr = msr | MSR_ME;
+       /* Guest must always run with ME enabled, HV disabled. */
+       msr = (msr | MSR_ME) & ~MSR_HV;
 
        /*
         * Check for illegal transactional state bit combination