aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-22 06:31:47 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-22 06:31:47 +0100
commit3f03c620370e99bdf78120ce64580cd715ad150f (patch)
tree946d935765f472c31471d5310e7207e717bb035c /xen/arch/x86/hvm/vpt.c
parentf3b88f2e646418ad3ed8ce7a19ea32d0b382654a (diff)
downloadxen-3f03c620370e99bdf78120ce64580cd715ad150f.tar.gz
xen-3f03c620370e99bdf78120ce64580cd715ad150f.tar.bz2
xen-3f03c620370e99bdf78120ce64580cd715ad150f.zip
x86: TSC handling cleanups (version 2)
"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." Version 2 fixes a bug which breaks PV domU time. 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)