mirror_ubuntu-kernels/arch/x86/kvm/vmx
Jim Mattson 020dac4187 KVM: VMX: Heed the 'msr' argument in msr_write_intercepted()
Regardless of the 'msr' argument passed to the VMX version of
msr_write_intercepted(), the function always checks to see if a
specific MSR (IA32_SPEC_CTRL) is intercepted for write.  This behavior
seems unintentional and unexpected.

Modify the function so that it checks to see if the provided 'msr'
index is intercepted for write.

Fixes: 67f4b9969c ("KVM: nVMX: Handle dynamic MSR intercept toggling")
Cc: Sean Christopherson <seanjc@google.com>
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220810213050.2655000-1-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-08-19 07:38:04 -04:00
..
capabilities.h Merge remote-tracking branch 'kvm/next' into kvm-next-5.20 2022-08-01 03:21:00 -04:00
evmcs.c KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2022-06-08 04:47:18 -04:00
evmcs.h KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2022-06-08 04:47:18 -04:00
nested.c Merge remote-tracking branch 'kvm/next' into kvm-next-5.20 2022-08-01 03:21:00 -04:00
nested.h Revert "KVM: nVMX: Expose load IA32_PERF_GLOBAL_CTRL VM-{Entry,Exit} control" 2022-07-28 13:24:41 -04:00
pmu_intel.c KVM: VMX: Adjust number of LBR records for PERF_CAPABILITIES at refresh 2022-08-10 15:08:30 -04:00
posted_intr.c KVM: nVMX: clean up posted interrupt descriptor try_cmpxchg 2022-06-24 11:45:45 -04:00
posted_intr.h KVM: VMX: enable IPI virtualization 2022-06-08 04:47:37 -04:00
run_flags.h KVM: VMX: Prevent guest RSB poisoning attacks with eIBRS 2022-06-27 10:34:00 +02:00
sgx.c KVM: x86: Add dedicated helper to get CPUID entry with significant index 2022-07-14 11:38:32 -04:00
sgx.h KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC 2021-04-20 04:18:56 -04:00
vmcs12.c KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05:00
vmcs12.h KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05:00
vmcs_shadow_fields.h KVM: Fix some out-dated function names in comment 2020-01-21 13:57:27 +01:00
vmcs.h KVM: VMX: Detect Tertiary VM-Execution control when setup VMCS config 2022-06-08 04:47:18 -04:00
vmenter.S x86/speculation: Add RSB VM Exit protections 2022-08-03 11:23:52 +02:00
vmx_ops.h KVM: VMX: Prevent RSB underflow before vmenter 2022-06-27 10:34:00 +02:00
vmx.c KVM: VMX: Heed the 'msr' argument in msr_write_intercepted() 2022-08-19 07:38:04 -04:00
vmx.h KVM: VMX: Adjust number of LBR records for PERF_CAPABILITIES at refresh 2022-08-10 15:08:30 -04:00