diff options
author | Reiji Watanabe <[email protected]> | 2023-10-20 21:40:43 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-10-24 22:59:29 +0000 |
commit | 57fc267f1b5caa56dfb46f60e20e673cbc4cc4a8 (patch) | |
tree | 777d71453467714f91752cd99f9236177e745407 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 427733579744ef22ee6d0da9907560d79d937458 (diff) |
KVM: arm64: PMU: Add a helper to read a vCPU's PMCR_EL0
Add a helper to read a vCPU's PMCR_EL0, and use it whenever KVM
reads a vCPU's PMCR_EL0.
Currently, the PMCR_EL0 value is tracked per vCPU. The following
patches will make (only) PMCR_EL0.N track per guest. Having the
new helper will be useful to combine the PMCR_EL0.N field
(tracked per guest) and the other fields (tracked per vCPU)
to provide the value of PMCR_EL0.
No functional change intended.
Reviewed-by: Sebastian Ott <[email protected]>
Signed-off-by: Reiji Watanabe <[email protected]>
Signed-off-by: Raghavendra Rao Ananta <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions