[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v8 10/11] viridian: add implementation of synthetic timers
- To: Paul Durrant <Paul.Durrant@xxxxxxxxxx>, 'Jan Beulich' <JBeulich@xxxxxxxx>
- From: Paul Durrant <Paul.Durrant@xxxxxxxxxx>
- Date: Mon, 18 Mar 2019 15:46:23 +0000
- Accept-language: en-GB, en-US
- Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wei.liu2@xxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Andrew Cooper <Andrew.Cooper3@xxxxxxxxxx>, "Tim \(Xen.org\)" <tim@xxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxx>, Julien Grall <julien.grall@xxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Delivery-date: Mon, 18 Mar 2019 15:49:06 +0000
- Ironport-data: A9a23:LAUETquNbdB6j952HbjFOmIBMOfnOphVZqmSV/efNr3fP3i5XxfKXv tXStiZWroQMLXHkFql0fSA2ceOjfSlSMg/fIwhYHBkQIWLWNuV+DshLEZtvZ7X8T20kWfGof wf9hYApCvVrMyaxl35pCQK9PLIIoQxWogS/3a7MB7LvbbljENKB8vEP2HwtYY/+71kMKHrEy FsdxCShWzmnQqQK4obsEQ6tfylczF4Bon6icmeBv7APbOV67j3CvXL+AsxDpdA4vrdRtRvww oot0fSJ60YGqI3P7IARaiUy11WtHdLwje0OX870MKxwoRW+rcmNHKbasYZyrWomFxXiA0Cw/ gC06hcPyi57KPfK3zHuPkY9yVxn98u1W4aHSWFmcyLa4ct4pcAcgsHWWDbt8jcTRjkpwHiXl XIBhx5A/sioC8ytbH432km9JJW0grNVsCb39838avgVQCs8O8tGYHeE9hXZKoUJccMNPjhtE HLgmplMnWUU+v7xLDSiALgmyrVUUcsobCE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RFJV+2pZEPuYl8zCViviiMgEr9r/4XVZ9Cy gsPyed0U1fUToMnG7GIx66QchU0hyjgsuDeyA1usfYLm2JE9yhYYHC6iYn63oIbfJ6sX2/Bs 8+JL3Ss0F5xq4wkiLRqTc2wt6nO3i6BCnmu9xrEPhHxEBu4WRKs6LwNXdMbejkZfRM7C2epn FTfN8q/NsD4pZNXBPmNvVZ7HW0f8t1rJ5X2e0fMNlMoCS5+kI2FdI9ZLPj3UtcJH4mDJXUEN jiLHwmN2zvINnDJJiyTAQZJqsCWeQTy4uJn/UzbJ7+M8Kx//zyWit+sfRUF6d2kOIWeTW22B zZvfxUBv4PvMBbF3UWzmX0sKzPJsQfw8q7vKwAI1LbjxmMHPhgZoJpF6utKggf9fZnwpVX+Y J0ERxKeYChinJOiZbeSNEhIWQLfVyzav7vvTlgyOPBvCEsGgHwOx6OL37wW9IQl/34ZxRmUY UazpyYbUrIkmH74MFcvsLnZm3c
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHU3X2WVMvWAzv7yUWT06FGctY0sqYRYLYAgAATJKCAABN4MA==
- Thread-topic: [Xen-devel] [PATCH v8 10/11] viridian: add implementation of synthetic timers
> -----Original Message-----
[snip]
> > > + {
> > > + expiration = vs->count;
> > > + if ( expiration - now <= 0 )
> > > + {
> > > + vs->expiration = expiration;
> > > + stimer_expire(vs);
> >
> > Aren't you introducing a risk for races by calling the timer function
> > directly from here? start_timer(), after all, gets called from quite a
> > few places.
> >
>
> In practice I don't think there should be any problematic race, but I'll
> check again.
>
I think the 'periodic' name might be confusing things... The Xen timers are all
single-shot, it's just that start_stimer() is re-called after a successful poll
if the viridian timer is configured to be periodic. So I don't think there is
case where the underlying Xen timer could actually be running when we enter
start_stimer().
Paul
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|