[PATCH] KVM: Never clear KVM_REQ_VM_DEAD from a vCPU's requests
Sean Christopherson
seanjc at google.com
Mon Sep 21 07:05:02 PDT 2026
On Thu, 06 Aug 2026 14:46:18 -0700, Sean Christopherson wrote:
> Use kvm_test_request() instead of kvm_check_request() when querying
> KVM_REQ_VM_DEAD, i.e. don't clear KVM_REQ_VM_DEAD, as the entire purpose
> of KVM_REQ_VM_DEAD is to prevent the vCPU from enterring the guest ever
> again, even if userspace insists on redoing KVM_RUN.
>
> Ensuring KVM_REQ_VM_DEAD is never cleared will allow relaxing KVM's rule
> that ioctls can't be invoked on dead VMs, to only disallow ioctls if the
> VM is bugged, i.e. if KVM hit a KVM_BUG_ON().
>
> [...]
Applied to kvm-x86 fixes, thanks!
[1/1] KVM: Never clear KVM_REQ_VM_DEAD from a vCPU's requests
https://github.com/kvm-x86/linux/commit/8cd280282d12
--
https://github.com/kvm-x86/linux/tree/next
More information about the linux-arm-kernel
mailing list