]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: downgrade two BUG_ONs to WARN_ON_ONCE
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 22 Nov 2021 23:24:01 +0000 (18:24 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 26 Nov 2021 11:43:28 +0000 (06:43 -0500)
commitefd71641b0a48510dd69dfdef7f9e18a7f5199f6
treec811a827d59320bb082121ee453c640e48d13aa3
parent0c85520f2cbecce9202fefa310777275746f6bf4
KVM: downgrade two BUG_ONs to WARN_ON_ONCE

This is not an unrecoverable situation.  Users of kvm_read_guest_offset_cached
and kvm_write_guest_offset_cached must expect the read/write to fail, and
therefore it is possible to just return early with an error value.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c