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 <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent f9ca6a1 commit 009f6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)