summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-02-15 04:14:35 +0300
committerSean Christopherson <seanjc@google.com>2025-02-24 19:59:58 +0300
commita5d7700af6b036d3b5c17fdf0be3ee38c653aee7 (patch)
tree5528867d93f2947634aa86ba05387e6c81ecd5c0 /tools/perf/scripts/python/task-analyzer.py
parentbb0978d95a551b8181469c4442fd59567c9dd999 (diff)
downloadlinux-a5d7700af6b036d3b5c17fdf0be3ee38c653aee7.tar.xz
KVM: x86/xen: Consult kvm_xen_enabled when checking for Xen MSR writes
Query kvm_xen_enabled when detecting writes to the Xen hypercall page MSR so that the check is optimized away in the likely scenario that Xen isn't enabled for the VM. Deliberately open code the check instead of using kvm_xen_msr_enabled() in order to avoid a double load of xen_hvm_config.msr (which is admittedly rather pointless given the widespread lack of READ_ONCE() usage on the plethora of vCPU-scoped accesses to kvm->arch.xen state). No functional change intended. Reviewed-by: David Woodhouse <dwmw@amazon.co.uk> Reviewed-by: Paul Durrant <paul@xen.org> Link: https://lore.kernel.org/r/20250215011437.1203084-4-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions