Skip to contentSkip to conversation

KVM: PPC: Ultravisor: Check for MSR_S during hv_reset_msr

PATCH In review Ram Pai 1 participant 1 message Jan 22, 2019

Subsystems (2)
lore
Share & tools
lore

Ram Pai

author
#0 lore raw

PATCH 11/13 KVM: PPC: Ultravisor: Check for MSR_S during hv_reset_msr

From: Michael Anderson <[email protected]>

- Check for MSR_S so that kvmppc_set_msr will include. Prior to this change return to guest would not have the S bit set.
- Patch based on comment from Paul Mackerras <[email protected]>

---
 arch/powerpc/kvm/book3s_64_mmu_hv.c | 1 +
 1 file changed, 1 insertion(+)
arch/powerpc/kvm/book3s_64_mmu_hv.c +1 -0
index bd2dcfb..b7077cd 100644
@@ -295,6 +295,7 @@ static void kvmppc_mmu_book3s_64_hv_reset_msr(struct kvm_vcpu *vcpu)
 		msr |= MSR_TS_S;
 	else
 		msr |= vcpu->arch.shregs.msr & MSR_TS_MASK;
+	msr |= vcpu->arch.shregs.msr & MSR_S;
 	kvmppc_set_msr(vcpu, msr);
 }
 
Signature · 1 line
1.8.3.1