summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-08-26 09:42:12 -0700
committerSean Christopherson <seanjc@google.com>2026-09-11 11:48:13 -0700
commit698b8c88e15914a88f686b552c14c0c5caff3cc7 (patch)
tree86ede3f6e9a4260111d363dde27d6f2a73a933f5 /tools/perf/scripts/python/bin/stackcollapse-report
parent355323a4dc945d0176f54c324aa44943820f932f (diff)
KVM: x86/mmu: Harden "map private PFN" against unexpected root invalidation
Move kvm_tdp_mmu_map_private_pfn()'s reload of the MMU into its tight loop so that an unexpected root invalidation has a better chance of being handled gracefully, even though it should be impossible for the vCPU's root to be invalidated after the initial reload. As is, encountering an invalid root is *guaranteed* to put the task into an infinite loop (albeit a breakable loop that honors NEED_RESCHED). Add a WARN to try and detect bugs that break KVM's expectations, along with a comment to explain why it should be impossible for the root to be invalidated. Note, the loop in question doesn't actually check for a stale page fault, i.e. likely won't detect an invalid loop in the first place. That bug will be addressed shortly. Cc: Kai Huang <kai.huang@intel.com> Cc: Yan Zhao <yan.y.zhao@intel.com> Cc: Rick Edgecombe <rick.p.edgecombe@intel.com> Link: https://patch.msgid.link/20260826164214.756512-3-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions