]> xenbits.xensource.com Git - people/royger/xen.git/commit
x86: use native RDTSC(P) execution when guest and host frequencies are the same
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tue, 22 Apr 2014 10:07:37 +0000 (12:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 22 Apr 2014 10:07:37 +0000 (12:07 +0200)
commit82713ec8d2b65d17f13e46a131e38bfe5baf8bd6
tree4d2d45503deba8a3bf783c5ae9783c368fcd079c
parente681c0408564a2c0d1c6d56d3f683f8db079458c
x86: use native RDTSC(P) execution when guest and host frequencies are the same

We should be able to continue using native RDTSC(P) execution on
HVM/PVH guests after migration if host and guest frequencies are
equal (this includes the case when the frequencies are made equal
by TSC scaling feature).

This also allows us to revert main part of commit 4aab59a3 (svm: Do not
intercept RDTSC(P) when TSC scaling is supported by hardware) which
was wrong: while RDTSC intercepts were disabled domain's vtsc could
still be set, leading to inconsistent view of guest's TSC.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/time.c