Skip to content

Commit 009f6f4

Browse files
ShivaprasadGBhatmpe
authored andcommitted
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: ebc88ea ("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
1 parent f9ca6a1 commit 009f6f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/powerpc/kvm/book3s_hv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ static int kvmppc_get_one_reg_hv(struct kvm_vcpu *vcpu, u64 id,
23052305
*val = get_reg_val(id, kvmppc_get_siar_hv(vcpu));
23062306
break;
23072307
case KVM_REG_PPC_SDAR:
2308-
*val = get_reg_val(id, kvmppc_get_siar_hv(vcpu));
2308+
*val = get_reg_val(id, kvmppc_get_sdar_hv(vcpu));
23092309
break;
23102310
case KVM_REG_PPC_SIER:
23112311
*val = get_reg_val(id, kvmppc_get_sier_hv(vcpu, 0));

0 commit comments

Comments
 (0)