diff options
author | Raghavendra Rao Ananta <rananta@google.com> | 2023-10-20 21:40:45 +0000 |
---|---|---|
committer | Oliver Upton <oliver.upton@linux.dev> | 2023-10-24 22:59:30 +0000 |
commit | a45f41d754e0b37de4b7dc1fb3c6b7a1285882fc (patch) | |
tree | 9534e1bd6b723ecd3e35de3b0cf176cef649d6ba /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 4d20debf9ca160720a0b01ba4f2dc3d62296c4d1 (diff) |
KVM: arm64: Add {get,set}_user for PM{C,I}NTEN{SET,CLR}, PMOVS{SET,CLR}
For unimplemented counters, the bits in PM{C,I}NTEN{SET,CLR} and
PMOVS{SET,CLR} registers are expected to RAZ. To honor this,
explicitly implement the {get,set}_user functions for these
registers to mask out unimplemented counters for userspace reads
and writes.
Co-developed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@google.com>
Link: https://lore.kernel.org/r/20231020214053.2144305-6-rananta@google.com
[Oliver: drop unnecessary locking]
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions