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

RE: [Xen-devel] [PATCH]: Really disable pirq's


  • To: "Chris Lalancette" <clalance@xxxxxxxxxx>
  • From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
  • Date: Fri, 16 Nov 2007 11:44:26 +0800
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 15 Nov 2007 19:47:27 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcgnkWD7wLLF19DiR2CycUx+vXf+PAAcXvNg
  • Thread-topic: [Xen-devel] [PATCH]: Really disable pirq's

Yes, seems the startup_irq's return value does not matter, even to
request_irq().

-- Yunhong Jiang

Chris Lalancette <mailto:clalance@xxxxxxxxxx> wrote:
> Jiang, Yunhong wrote:
>> Not sure if the change is a bit over-kill, since enable_pirq is has
void
>> return type, while startup_pirq is "int" return type, with
possibility
>> to fail.
> 
> Thanks for looking!
> 
> This is true, startup_pirq() *could* fail; but if you notice
> in the code, it
> doesn't actually have anything but a "return 0", so it doesn't report
errors
> currently anyway.
> 
>> 
>> For example, in following situation, the startup_pirq may fail : 1)
when
>> startup_pirq again, fail to get free port, 2) if another domain try
to
>> bind the pirq with BIND_PIRQ_WILL_SHARE cleared (like to probing,
will
>> it happen?) between the shutdown_pirq/startup_pirq sequence.
> 
> Yes, you are right, this can happen if another domain is probing.
However,
> I'm not sure that it is any different from when you are calling
->startup()
> for the first time; you will just fail to get the event channel.
Without
> introducing another event channel op (which seems like a LOT of
overkill),
> I'm not aware of another way of asking the HV to mask out that IRQ on
the
> IOAPIC. 
> 
> Chris Lalancette

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