aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-28 10:01:10 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-28 10:01:10 +0100
commitbf2c44f8b469835338e185fac93399fd34dff6e3 (patch)
treea10d7112775efdde68aa9886b139a5acbfc4f869 /xen/arch/x86/hvm/vpt.c
parentbcc65857674894a8f54fb07b1db0e96bb984ef9f (diff)
downloadxen-bf2c44f8b469835338e185fac93399fd34dff6e3.tar.gz
xen-bf2c44f8b469835338e185fac93399fd34dff6e3.tar.bz2
xen-bf2c44f8b469835338e185fac93399fd34dff6e3.zip
x86: Allow TSC mode (emulate vs native) to be configured per domain.
The default is to emulate. Old saved images will be restored with legacy behaviour however (native TSC, no emulation). Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 9a0bb06429..22d66f6fed 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -33,7 +33,7 @@ void hvm_init_guest_time(struct domain *d)
pl->stime_offset = -(u64)get_s_time();
pl->last_guest_time = 0;
- d->arch.hvm_domain.gtsc_khz = opt_softtsc ? 1000000 : cpu_khz;
+ d->arch.hvm_domain.gtsc_khz = cpu_khz;
d->arch.hvm_domain.tsc_scaled = 0;
}