Thread (3 messages) 3 messages, 3 authors, 2026-02-23

Re: [PATCH v1] KVM: arm64: Revert accidental drop of kvm_uninit_stage2_mmu() for non-NV VMs

From: Mark Brown <broonie@kernel.org>
Date: 2026-02-23 16:17:02
Also in: kvmarm

On Sun, Feb 22, 2026 at 08:33:52AM +0000, Fuad Tabba wrote:
Commit 0c4762e26879 ("KVM: arm64: nv: Avoid NV stage-2 code when NV is
not supported") added an early return to several functions in
arch/arm64/kvm/nested.c to prevent a UBSAN shift-out-of-bounds error
when accessing the pgt union for non-nested VMs.
Thanks Fuad, that seems to have been it:

Tested-by: Mark Brown <broonie@kernel.org>

The patch also seems to address some spurious OOMs that I was able to
reproduce with qemu when running the kselftests on pKVM:

   https://lava.sirena.org.uk/scheduler/job/2482739#L2375

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help