KVM: PPC: Book3S HV: Remove redundant mtspr PSPB
authorNicholas Piggin <npiggin@gmail.com>
Mon, 12 Apr 2021 01:48:39 +0000 (11:48 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 12 Apr 2021 03:36:23 +0000 (13:36 +1000)
This SPR is set to 0 twice when exiting the guest.

Suggested-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Acked-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210412014845.1517916-7-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c

index 70c6e9c..b88df17 100644 (file)
@@ -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);