aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2024-08-02 18:55:08 +0000
committerSean Christopherson <[email protected]>2024-11-01 16:22:34 +0000
commita5d563890b8f0352c8f915c6acc75b5cd3b28d98 (patch)
tree06f6aa0449205cd24a578176c07a73ce4f2c526c /rust/helpers/helpers.c
parentKVM: VMX: Remove restriction that PMU version > 0 for PERF_CAPABILITIES (diff)
downloadkernel-a5d563890b8f0352c8f915c6acc75b5cd3b28d98.tar.gz
kernel-a5d563890b8f0352c8f915c6acc75b5cd3b28d98.zip
KVM: x86: Reject userspace attempts to access ARCH_CAPABILITIES w/o support
Reject userspace accesses to ARCH_CAPABILITIES if the MSR isn't supposed to exist, according to guest CPUID. However, "reject" accesses with KVM_MSR_RET_UNSUPPORTED, so that reads get '0' and writes of '0' are ignored if KVM advertised support ARCH_CAPABILITIES. KVM's ABI is that userspace must set guest CPUID prior to setting MSRs, and that setting MSRs that aren't supposed exist is disallowed (modulo the '0' exemption). Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions