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

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



> -----Original Message-----
> From: Jan Beulich <JBeulich@xxxxxxxx>
> Sent: 21 June 2019 16:21
> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
> Cc: aisaila@xxxxxxxxxxxxxxx; Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Roger 
> Pau Monne
> <roger.pau@xxxxxxxxxx>; xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>; WeiLiu 
> <wl@xxxxxxx>
> Subject: RE: [Xen-devel] [PATCH v2] viridian: unify time sources
> 
> >>> On 21.06.19 at 15:58, <Paul.Durrant@xxxxxxxxxx> wrote:
> >>  -----Original Message-----
> >> From: Alexandru Stefan ISAILA <aisaila@xxxxxxxxxxxxxxx>
> >> Sent: 21 June 2019 14:49
> >> To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>; xen-devel@xxxxxxxxxxxxxxxxxxxx
> >> Cc: Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>; Wei Liu <wl@xxxxxxx>; Jan 
> >> Beulich
> > <jbeulich@xxxxxxxx>;
> >> Roger Pau Monne <roger.pau@xxxxxxxxxx>
> >> Subject: Re: [Xen-devel] [PATCH v2] viridian: unify time sources
> >>
> >> >   /*
> >> > @@ -136,7 +100,7 @@ static int64_t time_ref_count(const struct domain *d)
> >> >    * 128 bit number which is then shifted 64 times to the right to obtain
> >> >    * the high 64 bits."
> >> >    */
> >>
> >> Is there a good reason for using signed offset here? If so then maybe
> >> you should change the return type or check for bounds.
> >
> > The offset is actually negative most of the time but the resulting reference
> > time should be unsigned so the return type of time_ref_count() does need
> > fixing.
> 
> Is switching it from int64_t to uint64_t all that's needed? I could
> do this while committing (which I was about to).

Yes, that's all that's needed and it would be nice to avoid sending a v3.

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®.