aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2023-03-10 16:46:03 -0800
committerSean Christopherson <seanjc@google.com>2023-04-06 14:57:23 -0700
commit0094f62c7eaaaf53a011a4e46f9f32e5f3295e8c (patch)
tree17845cb34016df082165393e75b180530c325818 /tools/perf/scripts/python/export-to-postgresql.py
parentKVM: selftests: Split PMU caps sub-tests to avoid writing MSR after KVM_RUN (diff)
downloadlinux-rng-0094f62c7eaaaf53a011a4e46f9f32e5f3295e8c.tar.xz
linux-rng-0094f62c7eaaaf53a011a4e46f9f32e5f3295e8c.zip
KVM: x86: Disallow writes to immutable feature MSRs after KVM_RUN
Disallow writes to feature MSRs after KVM_RUN to prevent userspace from changing the vCPU model after running the vCPU. Similar to guest CPUID, KVM uses feature MSRs to configure intercepts, determine what operations are/aren't allowed, etc. Changing the capabilities while the vCPU is active will at best yield unpredictable guest behavior, and at worst could be dangerous to KVM. Allow writing the current value, e.g. so that userspace can blindly set all MSRs when emulating RESET, and unconditionally allow writes to MSR_IA32_UCODE_REV so that userspace can emulate patch loads. Special case the VMX MSRs to keep the generic list small, i.e. so that KVM can do a linear walk of the generic list without incurring meaningful overhead. Cc: Like Xu <like.xu.linux@gmail.com> Cc: Yu Zhang <yu.c.zhang@linux.intel.com> Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com> Link: https://lore.kernel.org/r/20230311004618.920745-7-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions