]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Use read-only helper for reading VM ID registers
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 17:40:29 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:44 +0000 (17:16 +0000)
commit97ca3fcc15cc0b19ccacb56d25545f1df080fbc0
tree9828a4c8bfc498c4d3076d35a6f92a22b68a3b34
parent410db103f6ebc68a505ef541291ec327e385205a
KVM: arm64: Use read-only helper for reading VM ID registers

IDREG() expands to the storage of a particular ID reg, which can be
useful for handling both reads and writes. However, outside of a select
few situations, the ID registers should be considered read only.

Replace current readers with a new macro that expands to the value of
the field rather than the field itself.

Reviewed-by: Sebastian Ott <sebott@redhat.com>
Link: https://lore.kernel.org/r/20240619174036.483943-4-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/pmu-emul.c
arch/arm64/kvm/sys_regs.c