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

Re: [Xen-devel] RE: The caculation of the credit in credit_scheduler


  • To: "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx>, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Fri, 05 Nov 2010 09:45:09 +0000
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Dong, Eddie" <eddie.dong@xxxxxxxxx>
  • Delivery-date: Fri, 05 Nov 2010 02:46:11 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:user-agent:date:subject:from:to:cc:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=i5gWV7jh9QBAWmo7Tn96bS2t+M1rImOPggTmrlP36Fiyb+GqAZsyenitqgy2LL0Mkt F9EFkniOnJUOMELZFOMaa1NnpigpbQl3tHVAnsIj8Nqdn7t0RK+mv7noHWfRmVhUVP9z +7FOCCPoapZKVuuPVvTfTyMZCRb0B30zsf2dQ=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Act8t/OXZ6bLDSZ9SFmoF+2ChyNA1QAATszAAAHP70kAArfgUAAAtQ9o
  • Thread-topic: [Xen-devel] RE: The caculation of the credit in credit_scheduler

On 05/11/2010 09:33, "Zhang, Xiantao" <xiantao.zhang@xxxxxxxxx> wrote:

>> Interrupt delivery is a victim of us switching tasklet implementation
>> to work in idle VCPU context instead of in softirq context. It might
>> be sensible to make use of softirqs directly from the
>> interrupt-delivery logic, or introduce a second type of tasklets
>> (built on softirqs), or perhaps we can think of a way to structure
>> interrupt delivery that doesn't need softirq context at all -- that
>> would be nice! What did we need softirq context for in the first
>> place? 
> 
> A dedicated softirq maybe a good choice. In this case,  it needs a Per-CPU
> list structure to record the pending interrupts' destinations(which domains).
> In the softirq callback,  it can check the list and delivery the interrupts to
> guests one by one.

Feel free to code it up. Don't forget the CPU hotplug callback so that
interrupt work can de done immediately, or farmed off to another CPU, when a
CPU is taken offline.

I'd be perfectly happy to implement softirq tasklets as an alternative. I
could do that bit of the implementation. Which do you think would result in
neater code in the interrupt-delivery subsystem?

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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