diff options
author | Marc Zyngier <[email protected]> | 2021-07-19 13:38:59 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2021-08-02 14:26:33 +0100 |
commit | 0ab410a93d627ae73136d1a52c096262360b7992 (patch) | |
tree | 9cef35a6cd93c8286ebb5190e761a25db00f9f18 /lib/test_overflow.c | |
parent | c500bee1c5b2f1d59b1081ac879d73268ab0ff17 (diff) |
KVM: arm64: Narrow PMU sysreg reset values to architectural requirements
A number of the PMU sysregs expose reset values that are not
compliant with the architecture (set bits in the RES0 ranges,
for example).
This in turn has the effect that we need to pointlessly mask
some register fields when using them.
Let's start by making sure we don't have illegal values in the
shadow registers at reset time. This affects all the registers
that dedicate one bit per counter, the counters themselves,
PMEVTYPERn_EL0 and PMSELR_EL0.
Reported-by: Alexandre Chartre <[email protected]>
Reviewed-by: Alexandre Chartre <[email protected]>
Acked-by: Russell King (Oracle) <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Reviewed-by: Alexandru Elisei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions