summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-06-30 15:56:11 -0700
committerSean Christopherson <seanjc@google.com>2026-07-08 13:41:10 -0700
commite4ffb0ceb9f47f3797de69c2b81b501ba447515f (patch)
tree372d6dd24a6c7f06a3abe28c1d369c8ac58708a0 /tools/perf/scripts/python/bin
parentc84d86130f24ecba229637c123ff835a3e7f4a57 (diff)
KVM: x86/xen: Always route non-singleshot-timer vCPU hypercalls to userspace
When handling Xen vCPU hypercalls, explicitly route non-singleshot-timer commands to userspace, *before* checking if in-kernel emulation of the Xen timer is enabled. Punting hypercalls that are never accelerated by KVM because some other hypercall happens to be disabled is confusing and actively dangerous, e.g. it's easy to miss that the only reason KVM can bail early is because the timer-disabled case provides the same semantics as the implicit "default" path in the switch-statement. Opportunistically convert the switch-statement to an if-else-statement to avoid having to carry code for an impossible "default" case. For all intents and purposes, no functional change intended. Link: https://patch.msgid.link/20260630225619.511632-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions