summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-08-06 14:46:18 -0700
committerSean Christopherson <seanjc@google.com>2026-09-11 12:06:05 -0700
commit8cd280282d1239bca68f8c3632ef1ac8556a396b (patch)
tree2d84f45da418c8292c3b8329d8dbd6d793ff8d92 /tools/perf/scripts/python/stackcollapse.py
parentf13368e0acffd6d6289629705cb821d921104725 (diff)
downloadlinux-next-8cd280282d1239bca68f8c3632ef1ac8556a396b.tar.gz
linux-next-8cd280282d1239bca68f8c3632ef1ac8556a396b.zip
KVM: Never clear KVM_REQ_VM_DEAD from a vCPU's requests
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(). Opportunistically add compile-time assertions to guard against clearing KVM_REQ_VM_DEAD through the standard APIs. Reviewed-by: Kai Huang <kai.huang@intel.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://patch.msgid.link/20260806214618.82180-1-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions