]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - arch/x86/kvm/vmx.c
kvm: x86: Update tsc multiplier on change.
authorOwen Hofmann <osh@google.com>
Tue, 1 Mar 2016 21:36:13 +0000 (13:36 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 2 Mar 2016 09:37:32 +0000 (10:37 +0100)
commit2680d6da455b636dd006636780c0f235c6561d70
tree670ef91dac86f41a879067abd51aa91f8b62a230
parent0178fd7dcc4451fcb90bec5e91226586962478d2
kvm: x86: Update tsc multiplier on change.

vmx.c writes the TSC_MULTIPLIER field in vmx_vcpu_load, but only when a
vcpu has migrated physical cpus. Record the last value written and
update in vmx_vcpu_load on any change, otherwise a cpu migration must
occur for TSC frequency scaling to take effect.

Cc: stable@vger.kernel.org
Fixes: ff2c3a1803775cc72dc6f624b59554956396b0ee
Signed-off-by: Owen Hofmann <osh@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c