diff options
author | Oliver Upton <oupton@google.com> | 2019-11-13 16:17:19 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-11-15 11:44:16 +0100 |
commit | 71f7347025bf10f5c0b48e149898df57b7f3d414 (patch) | |
tree | f1d12985616c8dcb909afa4c25a2ab14d35041b6 /usr | |
parent | 458151f65b4d8acfc7403b59fd9694ca15dbfe2e (diff) | |
download | linux-71f7347025bf10f5c0b48e149898df57b7f3d414.tar.bz2 |
KVM: nVMX: Load GUEST_IA32_PERF_GLOBAL_CTRL MSR on VM-Entry
Add condition to prepare_vmcs02 which loads IA32_PERF_GLOBAL_CTRL on
VM-entry if the "load IA32_PERF_GLOBAL_CTRL" bit on the VM-entry control
is set. Use SET_MSR_OR_WARN() rather than directly writing to the field
to avoid overwrite by atomic_switch_perf_msrs().
Suggested-by: Jim Mattson <jmattson@google.com>
Co-developed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Signed-off-by: Oliver Upton <oupton@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions