diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2010-11-08 19:26:36 (GMT) |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-04-14 15:17:54 (GMT) |
commit | c7c2c3a28657cfdcef50c02b18ccca3761209e17 (patch) | |
tree | fc2a2c0652a61d9b0f582c33cfa4c75b3bd8a654 /include | |
parent | beafbdc1df02877612dc9039c1de0639921fddec (diff) | |
download | linux-fsl-qoriq-c7c2c3a28657cfdcef50c02b18ccca3761209e17.tar.xz |
xen/irq: Add support to check if IRQ line is shared with other domains.
We do this via the PHYSDEVOP_irq_status_query support hypervisor call.
We will get a positive value if another domain has binded its
PIRQ to the specified GSI (IRQ line).
[v2: Deal with v2.6.37-rc1 rebase fallout]
[v3: Deal with stable/irq.cleanup fallout]
[v4: xen_ignore_irq->xen_test_irq_shared]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xen/events.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/xen/events.h b/include/xen/events.h index 9aecc0b..932e540 100644 --- a/include/xen/events.h +++ b/include/xen/events.h @@ -95,4 +95,7 @@ int xen_destroy_irq(int irq); /* Return irq from pirq */ int xen_irq_from_pirq(unsigned pirq); +/* Determine whether to ignore this IRQ if it is passed to a guest. */ +int xen_test_irq_shared(int irq); + #endif /* _XEN_EVENTS_H */ |