]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Make idregs debugfs iterator search sysreg table directly
authorOliver Upton <oliver.upton@linux.dev>
Wed, 19 Jun 2024 17:40:28 +0000 (17:40 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 20 Jun 2024 17:16:44 +0000 (17:16 +0000)
commit410db103f6ebc68a505ef541291ec327e385205a
tree6d0db15c97d6af1a742f40e1307395fb849a186d
parent4e8ff73eb7ae3f7a7ec1d59f4d54935ae28f4795
KVM: arm64: Make idregs debugfs iterator search sysreg table directly

CTR_EL0 complicates the existing scheme for iterating feature ID
registers, as it is not in the contiguous range that we presently
support. Just search the sysreg table for the Nth feature ID register in
anticipation of this. Yes, the debugfs interface has quadratic time
completixy now. Boo hoo.

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