]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Don't WARN from __pkvm_host_share_guest()
authorQuentin Perret <qperret@google.com>
Wed, 16 Apr 2025 16:08:58 +0000 (16:08 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 6 May 2025 08:56:18 +0000 (09:56 +0100)
commit845f126732a8126dee3f15855487121f4836131a
treeefd3674064849494de49417d89be1bc977f9ab56
parent74b13d5816c9389381e937b218f49f03921f87fe
KVM: arm64: Don't WARN from __pkvm_host_share_guest()

We currently WARN() if the host attempts to share a page that is not in
an acceptable state with a guest. This isn't strictly necessary and
makes testing much harder, so drop the WARN and make sure to propage the
error code instead.

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