]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: Expose AIDR_EL1 via sysfs
authorOliver Upton <oliver.upton@linux.dev>
Thu, 3 Apr 2025 23:16:26 +0000 (16:16 -0700)
committerWill Deacon <will@kernel.org>
Tue, 29 Apr 2025 13:03:18 +0000 (14:03 +0100)
commit17efc1acee6229e8964d248e2a21def519e04c14
treed97039175dbcf5439dc8cd09a6ea3df6586fd9b1
parent35382a3646404891aba092013b855c3db4b8b487
arm64: Expose AIDR_EL1 via sysfs

The KVM PV ABI recently added a feature that allows the VM to discover
the set of physical CPU implementations, identified by a tuple of
{MIDR_EL1, REVIDR_EL1, AIDR_EL1}. Unlike other KVM PV features, the
expectation is that the VMM implements the hypercall instead of KVM as
it has the authoritative view of where the VM gets scheduled.

To do this the VMM needs to know the values of these registers on any
CPU in the system. While MIDR_EL1 and REVIDR_EL1 are already exposed,
AIDR_EL1 is not. Provide it in sysfs along with the other identification
registers.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20250403231626.3181116-1-oliver.upton@linux.dev
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/ABI/testing/sysfs-devices-system-cpu
Documentation/arch/arm64/cpu-feature-registers.rst
arch/arm64/include/asm/cpu.h
arch/arm64/kernel/cpuinfo.c