[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 01/13] x86/time.c: Use system time to calculate elapsed_nsec in tsc_get_info()



On Wed, Oct 14, 2015 at 04:20:57AM -0600, Jan Beulich wrote:
> >>> On 14.10.15 at 12:00, <haozhong.zhang@xxxxxxxxx> wrote:
> > Sounds reasonable. A better patch 2 may look like
> > 
> > - *gtsc_khz = cpu_khz;
> > + if ( is_hvm_domain(d) && cpu_has_tsc_ratio )
> > +     *gtsc_khz = d->arch.tsc_khz;
> > + else
> > +     *gtsc_khz = cpu_khz;
> > 
> > which gets d->arch.tsc_khz only if TSC ratio is used, otherwise it
> > follows the existing behavior.
> 
> Except that it needs to use has_hvm_container_domain() (again to
> match tsc_set_info()).
>

Yes.

> Jan
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.