diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-16 18:51:18 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-31 20:40:45 +0300 |
commit | 904e14fb7cb96401a7dc803ca2863fd5ba32ffe6 (patch) | |
tree | f2b192c2d4783bd1a882f2d4534b54f538c4333d /drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c | |
parent | f21f165ef922c2146cc5bdc620f542953c41714b (diff) | |
download | linux-904e14fb7cb96401a7dc803ca2863fd5ba32ffe6.tar.xz |
KVM: VMX: make MSR bitmaps per-VCPU
Place the MSR bitmap in struct loaded_vmcs, and update it in place
every time the x2apic or APICv state can change. This is rare and
the loop can handle 64 MSRs per iteration, in a similar fashion as
nested_vmx_prepare_msr_bitmap.
This prepares for choosing, on a per-VM basis, whether to intercept
the SPEC_CTRL and PRED_CMD MSRs.
Cc: stable@vger.kernel.org # prereq for Spectre mitigation
Suggested-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_queue_mgr.c')
0 files changed, 0 insertions, 0 deletions