KVM: x86: Move TSC reset out of vmcb_init
commit69b54926aa37cb07b23ef856d82ea5ec9df8bb86
authorZachary Amsden <zamsden@redhat.com>
Thu, 28 Oct 2010 18:48:15 +0000 (28 16:48 -0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 22 Nov 2010 18:47:34 +0000 (22 10:47 -0800)
tree26a018ae7939596e79b53144dd99e03740f1b0d4
parent60977a7ab5c850828eccad4ce711f499a1918599
KVM: x86: Move TSC reset out of vmcb_init

commit 47008cd887c1836bcadda123ba73e1863de7a6c4 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/svm.c