summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorFuad Tabba <fuad.tabba@linux.dev>2026-10-28 10:13:18 +0000
committerMarc Zyngier <maz@kernel.org>2026-11-03 10:58:51 +0000
commit6ade9467e37149d62ec704d1a03d52f334906f13 (patch)
tree9144565c6094a310eb0a2e8c379edeffda94b365 /tools/perf/scripts/python/bin/stackcollapse-report
parent1995650e0a5eb29f624e9b3e4afe487541bfd3cf (diff)
KVM: arm64: vgic-v4: Don't allocate vPEs when userspace clears nASSGIcap
Since commit c652887a92887 ("KVM: arm64: vgic-v3: Allow userspace to write GICD_TYPER2.nASSGIcap"), userspace can disable vPE allocation for a VM on a GICv4.1 host with vSGIs by clearing nASSGIcap before the vgic is initialised. vgic_init() then skips vgic_v4_init(), and kvm_vgic_dist_destroy() skips vgic_v4_teardown(). vgic_its_create() still calls vgic_v4_init() for an ITS created after the vgic is initialised, though, and vgic_v4_init() allocates the vPEs and requests a doorbell IRQ for each vCPU. Destroying the VM leaks them, and leaves each doorbell handler registered with a vCPU that's about to be freed. Move the part of vgic_supports_direct_msis() that doesn't depend on the ITS into vgic_supports_vpes(), together with vgic_v4_init()'s GICv3 check. Gate vgic_v4_init() on it rather than on vgic_supports_direct_irqs(), which reads has_its before vgic_its_create() sets it. vgic_supports_direct_msis() returns what it did before, since vgic_has_its() is already false for a non-GICv3 VM. Fixes: c652887a92887 ("KVM: arm64: vgic-v3: Allow userspace to write GICD_TYPER2.nASSGIcap") Suggested-by: Oliver Upton <oupton@kernel.org> Cc: stable@vger.kernel.org Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev> Link: https://patch.msgid.link/20261028101318.2170928-3-fuad.tabba@linux.dev Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions