aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2025-02-15 01:14:35 +0000
committerSean Christopherson <[email protected]>2025-02-24 16:59:58 +0000
commita5d7700af6b036d3b5c17fdf0be3ee38c653aee7 (patch)
tree5528867d93f2947634aa86ba05387e6c81ecd5c0 /tools/testing/selftests/net/lib/py/utils.py
parentKVM: x86/xen: Add an #ifdef'd helper to detect writes to Xen MSR (diff)
downloadkernel-a5d7700af6b036d3b5c17fdf0be3ee38c653aee7.tar.gz
kernel-a5d7700af6b036d3b5c17fdf0be3ee38c653aee7.zip
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 <[email protected]> Reviewed-by: Paul Durrant <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions