diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-11 08:34:58 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-11 08:34:58 +0100 |
commit | e0d92765715d294603d1d2939243f330f6b7d128 (patch) | |
tree | 8037cc0a9153e15a5c7c08fd82bad29edc268616 /xen/common/kernel.c | |
parent | dc21ec2b12dc52137d01e89876e4d190ab3f9d37 (diff) | |
download | xen-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/common/kernel.c')
-rw-r--r-- | xen/common/kernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 9dadffec73..3a0c40fce4 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -243,6 +243,8 @@ DO(xen_version)(int cmd, XEN_GUEST_HANDLE(void) arg) fi.submap |= (1U << XENFEAT_mmu_pt_update_preserve_ad) | (1U << XENFEAT_highmem_assist) | (1U << XENFEAT_gnttab_map_avail_bits); + else + fi.submap |= (1U << XENFEAT_hvm_safe_pvclock); #endif break; default: |