]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: nv: Use FGT write trap of MDSCR_EL1 when available
authorOliver Upton <oliver.upton@linux.dev>
Wed, 24 Sep 2025 23:51:50 +0000 (16:51 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:44:37 +0000 (14:44 +0100)
commite0b5a7967dec05144bc98125f98c47f74fd1152b
tree9c1df0ba5c219a83fe15faec1d9c30a7b119523c
parentfb10ddf35c1cc3b2888a944c0a3b1aa3baea585e
KVM: arm64: nv: Use FGT write trap of MDSCR_EL1 when available

Marc reports that the performance of running an L3 guest has regressed
by 60% as a result of setting MDCR_EL2.TDA to hide bad architecture.
That's of course terrible for the single user of recursive NV ;-)

While there's nothing to be done on non-FGT systems, take advantage of
the precise write trap of MDSCR_EL1 and leave the rest of the debug
registers untrapped.

Reported-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/config.c
arch/arm64/kvm/nested.c