]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: generalize "bugged" VM to "dead" VM
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:13:38 +0000 (10:13 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 11 Nov 2021 15:35:26 +0000 (10:35 -0500)
commit5eec5b0c9d6ec1fc16c3e9e420ce8984ecfca9e9
tree50f1467a3a2c837d8f8a9d759a276acb159846d7
parent39ff58ab00d23255b06c836789b5cc9f89341a60
KVM: generalize "bugged" VM to "dead" VM

Generalize KVM_REQ_VM_BUGGED so that it can be called even in cases
where it is by design that the VM cannot be operated upon.  In this
case any KVM_BUG_ON should still warn, so introduce a new flag
kvm->vm_dead that is separate from kvm->vm_bugged.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c