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)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 5 Jul 2019 11:48:48 +0000 (13:48 +0200)
commite9f2a760b158551bfbef6db31d2cae45ab8072e5
tree290da330d8a559d9f8a3c8119299579c2fc35946
parentd679b32611c0102ce33b9e1a4e4b94854ed1812a
KVM: x86: change kvm_mmu_page_get_gfn BUG_ON to WARN_ON

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>
arch/x86/kvm/mmu.c