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:33 +0000
committerSean Christopherson <[email protected]>2025-02-24 16:59:55 +0000
commit5c17848134ab1ffb97c4a17a6e25b41390478152 (patch)
tree8113060a00d9134f1f0361a244f6d4eca5e2cc42 /tools/testing/selftests/net/lib/py/utils.py
parentKVM: x86/xen: Only write Xen hypercall page for guest writes to MSR (diff)
downloadkernel-5c17848134ab1ffb97c4a17a6e25b41390478152.tar.gz
kernel-5c17848134ab1ffb97c4a17a6e25b41390478152.zip
KVM: x86/xen: Restrict hypercall MSR to unofficial synthetic range
Reject userspace attempts to set the Xen hypercall page MSR to an index outside of the "standard" virtualization range [0x40000000, 0x4fffffff], as KVM is not equipped to handle collisions with real MSRs, e.g. KVM doesn't update MSR interception, conflicts with VMCS/VMCB fields, special case writes in KVM, etc. While the MSR index isn't strictly ABI, i.e. can theoretically float to any value, in practice no known VMM sets the MSR index to anything other than 0x40000000 or 0x40000200. Cc: Joao Martins <[email protected]> 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