kvm: x86: Don't modify MSR_PLATFORM_INFO on vCPU reset
authorJim Mattson <jmattson@google.com>
Tue, 30 Oct 2018 19:20:21 +0000 (12:20 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Dec 2018 17:00:01 +0000 (18:00 +0100)
commite53d88af63ab4104e1226b8f9959f1e9903da10b
treefe65c2ced84ae61f3643a54a34f43b623d2fbb1d
parent3d82c565a7a237b9dd4666f17c84dcc028d2bed5
kvm: x86: Don't modify MSR_PLATFORM_INFO on vCPU reset

If userspace has provided a different value for this MSR (e.g with the
turbo bits set), the userspace-provided value should survive a vCPU
reset. For backwards compatibility, MSR_PLATFORM_INFO is initialized
in kvm_arch_vcpu_setup.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Drew Schmitt <dasch@google.com>
Cc: Abhiroop Dabral <adabral@paloaltonetworks.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c