]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Get sys_reg encoding from descriptor in idregs_debug_show()
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 17:40:27 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:44 +0000 (17:16 +0000)
commit4e8ff73eb7ae3f7a7ec1d59f4d54935ae28f4795
tree7bc621c436323d13610d70b61876ddf0a3da1cec
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
KVM: arm64: Get sys_reg encoding from descriptor in idregs_debug_show()

KVM is about to add support for more VM-scoped feature ID regs that
live outside of the id_regs[] array, which means the index of the
debugfs iterator may not actually be an index into the array.

Prepare by getting the sys_reg encoding from the descriptor itself.

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