]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Unconditionally cross check hyp state
authorQuentin Perret <qperret@google.com>
Wed, 16 Apr 2025 15:26:47 +0000 (15:26 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 28 Apr 2025 08:23:46 +0000 (09:23 +0100)
commit43c475504a39e98f10f5e6ec4d9d9ed60672a753
treea7f6148e68aa3c6f8a13c63475fe15525b40ce8d
parent48d848882395a6a42ff1bb685082c79791d4e753
KVM: arm64: Unconditionally cross check hyp state

Now that the hypervisor's state is stored in the hyp_vmemmap, we no
longer need an expensive page-table walk to read it. This means we can
now afford to cross check the hyp-state during all memory ownership
transitions where the hyp is involved unconditionally, hence avoiding
problems such as [1].

[1] https://lore.kernel.org/kvmarm/20241128154406.602875-1-qperret@google.com/

Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20250416152648.2982950-8-qperret@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/hyp/nvhe/mem_protect.c