diff options
| author | Marc Zyngier <[email protected]> | 2025-02-17 10:17:20 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2025-04-11 11:58:51 +0000 |
| commit | c8823e51b534d490ec27d372596eb35d2bb7193c (patch) | |
| tree | 4372b3b83fb68b0ed56ca3a5a246f66f8ee0503f /rust/helpers/task.c | |
| parent | KVM: arm64: Repaint pmcr_n into nr_pmu_counters (diff) | |
| download | kernel-c8823e51b534d490ec27d372596eb35d2bb7193c.tar.gz kernel-c8823e51b534d490ec27d372596eb35d2bb7193c.zip | |
KVM: arm64: Fix MDCR_EL2.HPMN reset value
The MDCR_EL2 documentation indicates that the HPMN field has
the following behaviour:
"On a Warm reset, this field resets to the expression NUM_PMU_COUNTERS."
However, it appears we reset it to zero, which is not very useful.
Add a reset helper for MDCR_EL2, and handle the case where userspace
changes the target PMU, which may force us to change HPMN again.
Reported-by: Joey Gouly <[email protected]>
Reviewed-by: Oliver Upton <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
