linux/arch/arm64
Marc Zyngier 8531d5a83d KVM: arm64: pkvm: Fallback to level-3 mapping on host stage-2 fault
If, for any odd reason, we cannot converge to mapping size that is
completely contained in a memblock region, we fail to install a S2
mapping and go back to the faulting instruction. Rince, repeat.

This happens when faulting in regions that are smaller than a page
or that do not have PAGE_SIZE-aligned boundaries (as witnessed on
an O6 board that refuses to boot in protected mode).

In this situation, fallback to using a PAGE_SIZE mapping anyway --
it isn't like we can go any lower.

Fixes: e728e70580 ("KVM: arm64: Adjust range correctly during host stage-2 faults")
Link: https://lore.kernel.org/r/86wlzr77cn.wl-maz@kernel.org
Cc: stable@vger.kernel.org
Cc: Quentin Perret <qperret@google.com>
Reviewed-by: Quentin Perret <qperret@google.com>
Link: https://patch.msgid.link/20260305132751.2928138-1-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
2026-03-05 15:18:47 +00:00
..
boot soc: devicetree updates for 7.0 2026-02-10 21:11:08 -08:00
configs soc: defconfig updates for 7.0 2026-02-10 20:44:10 -08:00
crypto crypto: arm64/ghash - Use new AES library API 2026-01-15 14:09:08 -08:00
hyperv arm64, x86: hyperv: Report the VTL the system boots in 2025-05-23 16:30:55 +00:00
include Arm: 2026-03-01 15:34:47 -08:00
kernel arm64: topology: Fix false warning in counters_read_on_cpu() for same-CPU reads 2026-02-26 18:27:15 +00:00
kvm KVM: arm64: pkvm: Fallback to level-3 mapping on host stage-2 fault 2026-03-05 15:18:47 +00:00
lib arm64: Fix sampling the "stable" virtual counter in preemptible section 2026-02-26 18:12:48 +00:00
mm arm64: gcs: Honour mprotect(PROT_NONE) on shadow stack mappings 2026-02-25 19:53:58 +00:00
net bpf, arm64: Force 8-byte alignment for JIT buffer to prevent atomic tearing 2026-02-26 11:19:00 -08:00
tools Loongarch: 2026-02-13 11:31:15 -08:00
xen xen/arm: call uaccess_ttbr0_enable for dm_op hypercall 2025-05-23 07:10:02 +02:00
Kbuild arm64: Disable branch profiling for all arm64 code 2026-01-08 21:46:01 +00:00
Kconfig mm.git review status for linus..mm-stable 2026-02-12 11:32:37 -08:00
Kconfig.debug
Kconfig.platforms soc: devicetree updates for 7.0 2026-02-10 21:11:08 -08:00
Makefile arm64: drop binutils version checks 2025-04-30 21:55:06 +02:00