From: "Jan Beulich" Subject: Re: RUNSTATE_runnable delta time for idle_domain accounted to HVM guest. Date: Wed, 07 May 2014 15:10:43 +0100 Message-ID: <536A5B030200007800010038@mail.emea.novell.com> References: <20140423212824.GB12560@phenom.dumpdata.com> <535F6DF7.9080704@eu.citrix.com> <20140429124206.GB10696@phenom.dumpdata.com> <20140506173627.GA6942@phenom.dumpdata.com> <536A05E4020000780000FB39@mail.emea.novell.com> <20140507133308.GD9190@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wi2YY-0005Wa-7F for xen-devel@lists.xenproject.org; Wed, 07 May 2014 14:10:46 +0000 In-Reply-To: <20140507133308.GD9190@phenom.dumpdata.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Konrad Rzeszutek Wilk Cc: George Dunlap , xen-devel@lists.xenproject.org, dario.faggioli@citrix.com, keir.xen@gmail.com List-Id: xen-devel@lists.xenproject.org >>> On 07.05.14 at 15:33, wrote: > On Wed, May 07, 2014 at 09:07:32AM +0100, Jan Beulich wrote: >> >>> On 06.05.14 at 19:36, wrote: >> > The reason we schedule a tasklet instead of continuing with an >> > 'vcpu_kick' is not yet known to me. This commit added the mechanism >> > to do it via the tasklet: > > I should also add that a bit more digging and I realized that > the reason we have so many of the tasklets running (the guests > couldn't be that insane to schedule so many alarms for one-shot timers!) > is that we do PCI passthrough. And that uses the 'hvm_dirq_assist' > tasklet (hvm_do_IRQ_dpci). As in we serialize passthrough interrupts > for all of the guests via this tasklet lock. Now that is indeed something in need of improvement. I'm afraid the Intel guys who wrote all this aren't around anymore... Jan