]> bbs.cooldavid.org Git - net-next-2.6.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)
commit47008cd887c1836bcadda123ba73e1863de7a6c4
treeea0bbcd104b7c882d008486de2fc725d0396fbf1
parent58877679fd393d3ef71aa383031ac7817561463d
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