[PATCH v2 1/2] KVM: selftests: Assert GICR_TYPER.Processor_Number matches selftest CPU number

Oliver Upton oupton at kernel.org
Wed Nov 19 14:35:26 PST 2025


On Wed, 19 Nov 2025 14:57:43 +0100, Maximilian Dittgen wrote:
> 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.
> 
> [...]

I did a small cleanup to patch #1 to get rid of open-coded shifts / masks.

Please new versions of a series as a separate thread, using a cover letter
for anything more than a single patch. This is helpful for tracking patches
on my end.

Applied to next, thanks!

[1/2] KVM: selftests: Assert GICR_TYPER.Processor_Number matches selftest CPU number
      https://git.kernel.org/kvmarm/kvmarm/c/31df012da496
[2/2] KVM: selftests: SYNC after guest ITS setup in vgic_lpi_stress
      https://git.kernel.org/kvmarm/kvmarm/c/85f329df2931

--
Best,
Oliver



More information about the linux-arm-kernel mailing list