KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON
authorPaolo Bonzini <pbonzini@redhat.com>
Sun, 30 Jun 2019 12:36:21 +0000 (08:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Nov 2019 09:29:51 +0000 (10:29 +0100)
commit515fa37a3e550ac7f291fb295b4e6174b6bbbd85
tree711773a93f0c7ed0fa15d9a76eea5b791f9271b3
parent1d48204bd77090c950b13106ab51821729ae0d72
KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON

commit e9f2a760b158551bfbef6db31d2cae45ab8072e5 upstream.

Note that in such a case it is quite likely that KVM will BUG_ON
in __pte_list_remove when the VM is closed.  However, there is no
immediate risk of memory corruption in the host so a WARN_ON is
enough and it lets you gather traces for debugging.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/mmu.c