]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Handle Apple M2 as not having HCR_EL2.NV1 implemented
authorMarc Zyngier <maz@kernel.org>
Mon, 22 Jan 2024 18:13:44 +0000 (18:13 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 8 Feb 2024 15:12:45 +0000 (15:12 +0000)
commitaade38faca631f25ec2842da4094d74bb2790bd5
tree59561f1875d624d7f883f026283d79c0442462ed
parent94f29ab2d8018c035098b58d89fc4ae36894a706
KVM: arm64: Handle Apple M2 as not having HCR_EL2.NV1 implemented

Although the Apple M2 family of CPUs can have HCR_EL2.NV1 being
set and clear, with the change in trap behaviour being OK, they
explode spectacularily on an EL2 S1 page table using the nVHE
format. This is no good.

Let's pretend this HW doesn't have NV1, and move along.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240122181344.258974-11-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kernel/cpufeature.c