From: Avi Kivity Date: Sun, 25 Mar 2007 10:07:27 +0000 (+0200) Subject: KVM: SVM: Ensure timestamp counter monotonicity X-Git-Tag: v2.6.22-rc1~1008^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc5064d335543a72c5ef904a3f528966fa3f2d2;p=pandora-kernel.git KVM: SVM: Ensure timestamp counter monotonicity When a vcpu is migrated from one cpu to another, its timestamp counter may lose its monotonic property if the host has unsynced timestamp counters. This can confuse the guest, sometimes to the point of refusing to boot. As the rdtsc instruction is rather fast on AMD processors (7-10 cycles), we can simply record the last host tsc when we drop the cpu, and adjust the vcpu tsc offset when we detect that we've migrated to a different cpu. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed