diff options
author | Shivaprasad G Bhat <sbhat@linux.ibm.com> | 2024-06-05 15:06:28 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-06-06 14:39:03 +0200 |
commit | 009f6f42c67e9de737d6d3d199f92b21a8cb9622 (patch) | |
tree | 7c5bb0f16fa0a8b7d0aaecd33fc524b0a3896e77 /arch/powerpc | |
parent | KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3 (diff) | |
download | linux-009f6f42c67e9de737d6d3d199f92b21a8cb9622.tar.xz linux-009f6f42c67e9de737d6d3d199f92b21a8cb9622.zip |
KVM: PPC: Book3S HV: Fix the get_one_reg of SDAR
The kvmppc_get_one_reg_hv() for SDAR is wrongly getting the SIAR
instead of SDAR, possibly a paste error emanating from the previous
refactoring.
Patch fixes the wrong get_one_reg() for the same.
Fixes: ebc88ea7a6ad ("KVM: PPC: Book3S HV: Use accessors for VCPU registers")
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/171759278410.1480.16404209606556979576.stgit@linux.ibm.com
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index b33d01c45b4d..a9522693063e 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -2305,7 +2305,7 @@ static int kvmppc_get_one_reg_hv(struct kvm_vcpu *vcpu, u64 id, *val = get_reg_val(id, kvmppc_get_siar_hv(vcpu)); break; case KVM_REG_PPC_SDAR: - *val = get_reg_val(id, kvmppc_get_siar_hv(vcpu)); + *val = get_reg_val(id, kvmppc_get_sdar_hv(vcpu)); break; case KVM_REG_PPC_SIER: *val = get_reg_val(id, kvmppc_get_sier_hv(vcpu, 0)); |