xen/irq: Check if the PCI device is owned by a domain different than DOMID_SELF.
commitbeafbdc1df02877612dc9039c1de0639921fddec
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Apr 2011 15:17:36 +0000 (14 11:17 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 14 Apr 2011 15:17:36 +0000 (14 11:17 -0400)
tree6103bd53db2858462c38bcf03b36eb7aad701576
parentc55fa78b13b32d3f19e19cd0c8b9378fdc09e521
xen/irq: Check if the PCI device is owned by a domain different than DOMID_SELF.

We check if there is a domain owner for the PCI device. In case of failure
(meaning no domain has registered for this device) we make DOMID_SELF the owner.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
[v2: deal with rebasing on v2.6.37-1]
[v3: deal with rebasing on stable/irq.cleanup]
[v4: deal with rebasing on stable/irq.ween_of_nr_irqs]
[v5: deal with rebasing on v2.6.39-rc3]
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Acked-by: Xiantao Zhang <xiantao.zhang@intel.com>
arch/x86/pci/xen.c
drivers/xen/events.c
include/xen/events.h