[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-ia64-devel] RE: [PATCH] RE: Timer merge
I've given some thought to timer implementation in an SMP and am still very unclear as to why it would be necessary to use ac_timer for guest timer interrupts... it seems like it would be LESS necessary in an SMP. Xen itself needs the itm only to peridically invoke the scheduler -- and unfortunately without changes to core Xen, this requires the ac_timer queue to be used. However, this only needs to be done on the Xen boot processor. Guests can use the "virtual itm" for anything they want, but I think Linux uses the itm only on the boot processor. So, at most one itm on an SMP system will be used for both Xen and for a guest. All other itm's will either be used only for an active guest or not used at all. On a processor that is not the Xen boot processor, the timer interrupt is always intended for the active guest and can be delivered immediately (or queued using the standard virtual eirr mechanism if virtual interrupts are disabled). Yes, maintaining an offset is necessary if the guest changes the (virtual) itc and there is some itc/itm/offset management required when switching in a new domain, but this is very infrequent compared to handling guest timer interrupts. So... please explain your timer architecture and design (prior to submitting the patch). Why should anything be placed into a centrally managed queue? Especially in an SMP. It just seems slower and more cumbersome with the only advantage being that the implementation is a bit closer to x86. Dan > -----Original Message----- > From: Tian, Kevin [mailto:kevin.tian@xxxxxxxxx] > Sent: Tuesday, September 06, 2005 3:05 AM > To: Magenheimer, Dan (HP Labs Fort Collins); Dong, Eddie; > xen-ia64-devel@xxxxxxxxxxxxxxxxxxx > Cc: Mallick, Asit K > Subject: [PATCH] RE: Timer merge > > Hi, Dan, > Attached is the first part of timer code merge, also with some > code clean. There's no fundamental change yet, and now one > common timer > interrupt handler should be able to serve both in the run-time. Later > we'll send out another patch to cover vitc/vitm and ac_timer stuff > which, of course will be developed by ifdef first. > > Tested OK without regression. Please review. > > Signed-off-by Kevin Tian <Kevin.tian@xxxxxxxxx> > Signed-off-by Eddie Dong <Eddie.dong@xxxxxxxxx> > > Thanks, > Kevin > _______________________________________________ Xen-ia64-devel mailing list Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ia64-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |