summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-08-31 10:10:04 +0200
committerMarc Zyngier <maz@kernel.org>2026-10-04 09:43:54 +0100
commitd3db911d8dfb2ef9b02fdce548df792be253fa41 (patch)
tree842268dffb94d3a5f03f6a10b6df8a457ecea7e4 /include
parent8d0ac33045370988a58a40a8a4a7d8b5c763eb09 (diff)
KVM: arm64: selftests: Test VGICv3 redistributor region retry
A failed REDIST_REGION write can remove redistributor iodevs without clearing their cached vCPU assignments. A retry then skips those assignments and leaves the redistributors absent from the MMIO bus. Create two partial regions, reject a third region that overlaps the distributor, and retry at a valid address. After initializing the VGIC, have the guest read GICR_TYPER from all four redistributors and check their processor numbers. This verifies the final configuration without assuming that assignments survive the failed write. Keep the redistributor IPAs outside the guest RAM memslot and install only the stage-1 mappings needed for the MMIO accesses. If an iodev is missing, KVM_RUN therefore exits with KVM_EXIT_MMIO. Without the fix, the first redistributor access exits at 0x8030008. Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Reviewed-by: Fuad Tabba <fuad.tabba@linux.dev> Tested-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20260831081005.41346-5-kmehltretter@gmail.com Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions