KVM: x86/mmu: Plumb "struct kvm" all the way to pte_list_remove()
authorMingwei Zhang <mizhang@google.com>
Sat, 29 Jul 2023 00:47:21 +0000 (17:47 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 31 Aug 2023 17:48:49 +0000 (13:48 -0400)
commit069f30c619792d5202d72fecd842cacbee260561
treee7d135e4f15c126a2e8663351b07ccea9be5030d
parent3328dfe0eac38df388a0cded8e3f3cd307ca0be3
KVM: x86/mmu: Plumb "struct kvm" all the way to pte_list_remove()

Plumb "struct kvm" all the way to pte_list_remove() to allow the usage of
KVM_BUG() and/or KVM_BUG_ON().  This will allow killing only the offending
VM instead of doing BUG() if the kernel is built with
CONFIG_BUG_ON_DATA_CORRUPTION=n, i.e. does NOT want to BUG() if KVM's data
structures (rmaps) appear to be corrupted.

Signed-off-by: Mingwei Zhang <mizhang@google.com>
[sean: tweak changelog]
Link: https://lore.kernel.org/r/20230729004722.1056172-12-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c