]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Consolidate idreg callbacks
authorMarc Zyngier <maz@kernel.org>
Thu, 20 Feb 2025 13:48:59 +0000 (13:48 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 24 Feb 2025 19:06:55 +0000 (11:06 -0800)
commit57e7de2650c86e6cfb4ce0c809c785f69ae5c536
tree11d5477a540d4ad5f90ca7e328708104549d0e5a
parent2cd9542a375a78d3465f51ff792d711fabf854a2
KVM: arm64: Consolidate idreg callbacks

Most of the ID_DESC() users use the same callbacks, with only a few
overrides. Consolidate the common callbacks in a macro, and consistently
use it everywhere.

Whilst we're at it, give ID_UNALLOCATED() a .name string, so that we can
easily decode traces.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Ganapatrao Kulkarni <gankulkarni@os.amperecomputing.com>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20250220134907.554085-7-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/sys_regs.c