]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Enable nested for GICv5 host with FEAT_GCIE_LEGACY
authorSascha Bischoff <Sascha.Bischoff@arm.com>
Thu, 28 Aug 2025 10:59:42 +0000 (10:59 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 17 Sep 2025 16:41:02 +0000 (17:41 +0100)
commitd5a012af348d4d84287267547eb8637b937545af
treea89c4139b515686b84b7c09998871e90c6b493d8
parent9664d5810e9bc919a9a661594e01eabc80befe8a
KVM: arm64: Enable nested for GICv5 host with FEAT_GCIE_LEGACY

Extend the NV check to pass for a GICv5 host that has
FEAT_GCIE_LEGACY. The has_gcie_v3_compat flag is only set on GICv5
hosts (that explicitly support FEAT_GCIE_LEGACY), and hence the
explicit check for a VGIC_V5 is omitted.

As of this change, vGICv3-based VMs can run with nested on a
compatible GICv5 host.

Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com>
Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/arm.c