aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-11 08:34:58 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-11 08:34:58 +0100
commite0d92765715d294603d1d2939243f330f6b7d128 (patch)
tree8037cc0a9153e15a5c7c08fd82bad29edc268616 /xen/arch/x86/hvm/vpt.c
parentdc21ec2b12dc52137d01e89876e4d190ab3f9d37 (diff)
downloadxen-e0d92765715d294603d1d2939243f330f6b7d128.tar.gz
xen-e0d92765715d294603d1d2939243f330f6b7d128.tar.bz2
xen-e0d92765715d294603d1d2939243f330f6b7d128.zip
x86: TSC handling cleanups
"I am removing the tsc_scaled variable that is never actually used because when tsc needs to be scaled vtsc is 1. I am also making this more explicit in tsc_set_info. I am also removing hvm_domain.gtsc_khz that is a duplicate of d->arch.tsc_khz. I am using scale_delta(delta, &d->arch.ns_to_vtsc) to scale the tsc value before returning it to the guest like in the pv case. I added a feature flag to specify that the pvclock algorithm is safe to be used in an HVM guest so that the guest can now use it without hanging." Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 22d66f6fed..ce35a3e049 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -32,9 +32,6 @@ void hvm_init_guest_time(struct domain *d)
spin_lock_init(&pl->pl_time_lock);
pl->stime_offset = -(u64)get_s_time();
pl->last_guest_time = 0;
-
- d->arch.hvm_domain.gtsc_khz = cpu_khz;
- d->arch.hvm_domain.tsc_scaled = 0;
}
u64 hvm_get_guest_time(struct vcpu *v)