]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Move TSC reset out of vmcb_init
authorZachary Amsden <zamsden@redhat.com>
Fri, 20 Aug 2010 08:07:19 +0000 (22:07 -1000)
committerAvi Kivity <avi@redhat.com>
Mon, 11 Oct 2010 10:36:07 +0000 (12:36 +0200)
commit1d098d27bc674933a363b56c5fbe5469f9c5e67f
treeea0bbcd104b7c882d008486de2fc725d0396fbf1
parent5e519802d58eee0bcbf7c3e92a5a48ece1d7c82a
KVM: x86: Move TSC reset out of vmcb_init

The VMCB is reset whenever we receive a startup IPI, so Linux is setting
TSC back to zero happens very late in the boot process and destabilizing
the TSC.  Instead, just set TSC to zero once at VCPU creation time.

Why the separate patch?  So git-bisect is your friend.

Signed-off-by: Zachary Amsden <zamsden@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c