]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Drop bogus CPTR_EL2.E0POE trap routing
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:36 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:44:22 +0000 (02:44 +0000)
commitb17d8aa2012617c51c5478f1be69044adb602d53
tree6763fb4a3545a83a9d90f68dfea6f0deb439160d
parentb9ed7e5dfbe9b77639fd4ff042bef94fb232b94d
KVM: arm64: Drop bogus CPTR_EL2.E0POE trap routing

It took me some time to realise it, but CPTR_EL2.E0POE does not
apply to a guest, only to EL0 when InHost(). And when InHost(),
CPCR_EL2 is mapped to CPACR_EL1, maning that the E0POE bit naturally
takes effect without any trap.

To sum it up, this trap bit is better left ignored, we will never
have to hanedle it.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20241023145345.1613824-29-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c