]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: arm64: nv: Allow userland to set VGIC maintenance IRQ
authorAndre Przywara <andre.przywara@arm.com>
Tue, 25 Feb 2025 17:29:29 +0000 (17:29 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 3 Mar 2025 22:57:10 +0000 (14:57 -0800)
commitfaf7714a47a25c626ec7fdbd8e85c6bfcd565fdc
tree19605c0695385e7853098ef22fd5b21c0242bb34
parent89896cc1591188bfaf2f550abd5b8119b9a9787f
KVM: arm64: nv: Allow userland to set VGIC maintenance IRQ

The VGIC maintenance IRQ signals various conditions about the LRs, when
the GIC's virtualization extension is used.
So far we didn't need it, but nested virtualization needs to know about
this interrupt, so add a userland interface to setup the IRQ number.
The architecture mandates that it must be a PPI, on top of that this code
only exports a per-device option, so the PPI is the same on all VCPUs.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[added some bits of documentation]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250225172930.1850838-16-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Documentation/virt/kvm/devices/arm-vgic-v3.rst
arch/arm64/include/uapi/asm/kvm.h
arch/arm64/kvm/vgic/vgic-kvm-device.c
tools/arch/arm/include/uapi/asm/kvm.h