Skip to content

Commit f9ca6a1

Browse files
ShivaprasadGBhatmpe
authored andcommitted
KVM: PPC: Book3S HV: Fix the set_one_reg for MMCR3
The kvmppc_set_one_reg_hv() wrongly get() the value instead of set() for MMCR3. Fix the same. Fixes: 5752fe0 ("KVM: PPC: Book3S HV: Save/restore new PMU 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 54ec2bd commit f9ca6a1

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
@@ -2540,7 +2540,7 @@ static int kvmppc_set_one_reg_hv(struct kvm_vcpu *vcpu, u64 id,
25402540
vcpu->arch.mmcrs = set_reg_val(id, *val);
25412541
break;
25422542
case KVM_REG_PPC_MMCR3:
2543-
*val = get_reg_val(id, vcpu->arch.mmcr[3]);
2543+
kvmppc_set_mmcr_hv(vcpu, 3, set_reg_val(id, *val));
25442544
break;
25452545
case KVM_REG_PPC_PMC1 ... KVM_REG_PPC_PMC8:
25462546
i = id - KVM_REG_PPC_PMC1;

0 commit comments

Comments
 (0)