Skip to content

Commit be85438

Browse files
committed
Merge tag 'kvmarm-fixes-6.16-6' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/arm64 fixes for 6.16, take #6 - Fix use of u64_replace_bits() in adjusting the guest's view of MDCR_EL2.HPMN.
2 parents 8a73c8d + 2265c08 commit be85438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm64/kvm/sys_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2624,7 +2624,7 @@ static bool access_mdcr(struct kvm_vcpu *vcpu,
26242624
*/
26252625
if (hpmn > vcpu->kvm->arch.nr_pmu_counters) {
26262626
hpmn = vcpu->kvm->arch.nr_pmu_counters;
2627-
u64_replace_bits(val, hpmn, MDCR_EL2_HPMN);
2627+
u64p_replace_bits(&val, hpmn, MDCR_EL2_HPMN);
26282628
}
26292629

26302630
__vcpu_assign_sys_reg(vcpu, MDCR_EL2, val);

0 commit comments

Comments
 (0)