diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-28 10:13:17 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 10:58:51 +0000 |
| commit | 1995650e0a5eb29f624e9b3e4afe487541bfd3cf (patch) | |
| tree | 441db3928dd42b5702355e9cd66fd749b83e5f06 /tools/perf/scripts/python/bin | |
| parent | 61d4f8c3d02cf936cfb91f7b72516b17febf74d3 (diff) | |
KVM: arm64: vgic-v4: Don't allocate vPEs for a GICv2 VM
KVM can run a GICv2 VM on a GICv4.0 host whose CPU interface supports
legacy operation. Such a VM has no LPIs and never uses vPEs, so
vgic_supports_direct_irqs() is false for it and kvm_vgic_dist_destroy()
never tears them down. However, userspace can still create an ITS for
it. Once the vgic is initialised, vgic_its_create() calls
vgic_v4_init(), which allocates the vPEs and requests a doorbell IRQ for
each vCPU. They're then never freed, and each doorbell handler stays
registered with a vCPU that's freed with the VM.
Only allocate vPEs for a GICv3 VM.
Fixes: 74fe55dc9ab77 ("KVM: arm/arm64: GICv4: Add init/teardown of the per-VM vPE irq domain")
Cc: stable@vger.kernel.org
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261028101318.2170928-2-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
