[PATCH v1 06/12] KVM: PPC: Book3S HV: Remove redundant mtspr PSPB

Nicholas Piggin npiggin at gmail.com
Mon Apr 12 11:48:39 AEST 2021


This SPR is set to 0 twice when exiting the guest.

Acked-by: Paul Mackerras <paulus at ozlabs.org>
Suggested-by: Fabiano Rosas <farosas at linux.ibm.com>
Reviewed-by: Daniel Axtens <dja at axtens.net>
Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
---
 arch/powerpc/kvm/book3s_hv.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 70c6e9c27eb7..b88df175aa76 100644
--- a/arch/powerpc/kvm/book3s_hv.c
+++ b/arch/powerpc/kvm/book3s_hv.c
@@ -3790,7 +3790,6 @@ static int kvmhv_p9_guest_entry(struct kvm_vcpu *vcpu, u64 time_limit,
 	mtspr(SPRN_DSCR, host_dscr);
 	mtspr(SPRN_TIDR, host_tidr);
 	mtspr(SPRN_IAMR, host_iamr);
-	mtspr(SPRN_PSPB, 0);
 
 	if (host_amr != vcpu->arch.amr)
 		mtspr(SPRN_AMR, host_amr);
-- 
2.23.0



More information about the Linuxppc-dev mailing list