Skip to content

Commit 845f126

Browse files
Quentin PerretMarc Zyngier
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 74b13d5 commit 845f126

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/arm64/kvm/hyp/nvhe/mem_protect.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,6 @@ int __pkvm_host_share_guest(u64 pfn, u64 gfn, struct pkvm_hyp_vcpu *vcpu,
919919
if (page->host_share_guest_count)
920920
break;
921921
/* Only host to np-guest multi-sharing is tolerated */
922-
WARN_ON(1);
923922
fallthrough;
924923
default:
925924
ret = -EPERM;

0 commit comments

Comments
 (0)