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

Re: [Xen-devel] [PATCH] viridian: unify time sources


  • To: 'Jan Beulich' <JBeulich@xxxxxxxx>
  • From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
  • Date: Thu, 13 Jun 2019 14:54:31 +0000
  • Accept-language: en-GB, en-US
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=Paul.Durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, WeiLiu <wl@xxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 13 Jun 2019 14:54:39 +0000
  • Ironport-sdr: rnfr3Hr85UR4cBEzydW/4yDBMgMhb0jyecShC9mDWCEZmt04sKkPloo/DMFGjPOaaErp3yNXoN JRG4KRcWDbxkx3Li4pbNfBgXaM3zyN3LDZnZ+kPZCQ29ObWuV07+X0HGbc32Gomg/DkHqQXsQ7 lzgBTy9SohcgM+edU7MMV5ndQK/HnQ8UBRigS1AF4rSVq0FteEYVEK3AL/zf8ooqesedymtQV2 ZdQXfMCCU4yMiufqAOTffEmDMJvBfDXw8XB77EeGnXx1+u8kxouTzbtHx0QJJU/moN0FM5j6Ic LjA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVIHdS2QYJA+fiMEqpmU94cdldCqaZi18AgAAh2IA=
  • Thread-topic: [PATCH] viridian: unify time sources

> -----Original Message-----
> From: Jan Beulich [mailto:JBeulich@xxxxxxxx]
> Sent: 13 June 2019 15:47
> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
> Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Roger Pau Monne 
> <roger.pau@xxxxxxxxxx>; xen-devel <xen-
> devel@xxxxxxxxxxxxxxxxxxxx>; WeiLiu <wl@xxxxxxx>
> Subject: Re: [PATCH] viridian: unify time sources
> 
> >>> On 11.06.19 at 19:01, <paul.durrant@xxxxxxxxxx> wrote:
> > @@ -77,6 +76,7 @@ static void update_reference_tsc(struct domain *d, bool 
> > initialize)
> >       * ticks per 100ns shifted left by 64.
> >       */
> >      p->TscScale = ((10000ul << 32) / d->arch.tsc_khz) << 32;
> > +    p->TscOffset = trc->off;
> >      smp_wmb();
> 
> Even having written the description it's not immediately obvious
> to me why this is an okay change to make, not the least when
> thinking about a guest migrating in from an older version. At the
> very least don't you think the comment above may want slightly
> extending?

I guess I could add a flag in the migration stream but, as described in the 
commit comment, the guest will see a jump if the page happens to get 
invalidated, so it's always a risk. I'll extend the comment as you suggest.

> 
> Everything else looks plausible to me.

Ok, thanks.

  Paul

> 
> Jan
> 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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