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

RE: [Xen-devel] [PATCH] linux: mor assign_irq_vector() adjustments


  • To: "Jan Beulich" <jbeulich@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
  • Date: Wed, 26 Apr 2006 11:09:16 +0800
  • Delivery-date: Tue, 25 Apr 2006 20:09:47 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcZoZTCbwcjlWpeiQuyDSwYXrPqCKwAeMDLQ
  • Thread-topic: [Xen-devel] [PATCH] linux: mor assign_irq_vector() adjustments

>From: Jan Beulich
>Sent: 2006年4月25日 20:39
>
>Instead of adding locking to also protect irq_vector[] in xenlinux, this
>patch adds verification that the vector passed
>up from Xen for a certain IRQ is matching a potential previously obtained
>value. Besides that, two minor cleanup hunks.
>
>Jan

Is it useful to add that type of detect in xenlinux? Since lock has 
been added into xen, it's always the first one holding lock to trigger 
allocation process while the latter one getting cached vector returned
directly. In this case, xen promises the consistence and it's always 
safe even two paths are writing irq_vector table simultaneously since 
two paths see same value...

Thanks,
Kevin

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