]> www.infradead.org Git - nvme.git/commit
KVM: arm64: nv: Fix RESx behaviour of disabled FGTs with negative polarity
authorMarc Zyngier <maz@kernel.org>
Fri, 14 Jun 2024 12:58:58 +0000 (13:58 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 14 Jun 2024 20:20:05 +0000 (20:20 +0000)
commiteb9d53d4a949c6d6d7c9f130e537f6b5687fedf9
tree5c4bb82f3b595e919e45ad432a6d77fb6b0999f8
parent0b5afe05377d7993f19292bf49dd13e959000790
KVM: arm64: nv: Fix RESx behaviour of disabled FGTs with negative polarity

The Fine Grained Trap extension is pretty messy as it doesn't
consistently use the same polarity for all trap bits. A bunch
of them, added later in the life of the architecture, have a
*negative* priority.

So if these bits are disabled, they must be RES1 and not RES0.
But that's not what the code implements, making the traps for
these negative trap bits being always on instead of disabled.

Fix the relevant bits, and stick a brown paper bag on my head
for the rest of the day...

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