]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: selftests: Assert GICR_TYPER.Processor_Number matches selftest CPU number
authorMaximilian Dittgen <mdittgen@amazon.de>
Wed, 19 Nov 2025 13:57:43 +0000 (14:57 +0100)
committerOliver Upton <oupton@kernel.org>
Wed, 19 Nov 2025 20:38:59 +0000 (12:38 -0800)
commit31df012da496968d8d4368f693ad45dfcbfba40b
treec3546bf1db63555a38ded9fd2d4aac601ee5bd4f
parentcb17d79ff51d41f656bcf7928330b2e9c0003583
KVM: selftests: Assert GICR_TYPER.Processor_Number matches selftest CPU number

The selftests GIC library and tests assume that the
GICR_TYPER.Processor_number associated with a given CPU is the same as
the CPU's selftest index.

Since this assumption is not guaranteed by specification, add an assert
in gicv3_cpu_init() that validates this is true.

Signed-off-by: Maximilian Dittgen <mdittgen@amazon.de>
Link: https://msgid.link/20251119135744.68552-1-mdittgen@amazon.de
Signed-off-by: Oliver Upton <oupton@kernel.org>
tools/testing/selftests/kvm/lib/arm64/gic_v3.c