aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vmsi.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-09-18 00:26:52 +0100
committerJan Beulich <jbeulich@suse.com>2011-09-18 00:26:52 +0100
commit1b0061ac2b57297e7d7211ce6f4e1b197b8e0ec2 (patch)
tree4bb3b14eb7af3223ce36a09fbf9de90776aa3919 /xen/arch/x86/hvm/vmsi.c
parentac4afd4aaac5f8e6e706f97bbfb0bd925577ed15 (diff)
downloadxen-1b0061ac2b57297e7d7211ce6f4e1b197b8e0ec2.tar.gz
xen-1b0061ac2b57297e7d7211ce6f4e1b197b8e0ec2.tar.bz2
xen-1b0061ac2b57297e7d7211ce6f4e1b197b8e0ec2.zip
x86: split MSI IRQ chip
With the .end() accessor having become optional and noting that several of the accessors' behavior really depends on the result of msi_maskable_irq(), the splits the MSI IRQ chip type into two - one for the maskable ones, and the other for the (MSI only) non-maskable ones. At once the implementation of those methods gets moved from io_apic.c to msi.c. Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/hvm/vmsi.c')
-rw-r--r--xen/arch/x86/hvm/vmsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/arch/x86/hvm/vmsi.c b/xen/arch/x86/hvm/vmsi.c
index 9db092befd..9ea861fca6 100644
--- a/xen/arch/x86/hvm/vmsi.c
+++ b/xen/arch/x86/hvm/vmsi.c
@@ -382,7 +382,7 @@ int msixtbl_pt_register(struct domain *d, struct pirq *pirq, uint64_t gtable)
return r;
}
- if ( irq_desc->handler != &pci_msi_type )
+ if ( !irq_desc->msi_desc )
goto out;
msi_desc = irq_desc->msi_desc;
@@ -426,7 +426,7 @@ void msixtbl_pt_unregister(struct domain *d, struct pirq *pirq)
if ( !irq_desc )
return;
- if ( irq_desc->handler != &pci_msi_type )
+ if ( !irq_desc->msi_desc )
goto out;
msi_desc = irq_desc->msi_desc;