diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-10-15 11:58:15 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-10-15 11:58:15 +0100 |
commit | f0064d9c2b46a9032863ea05378672e4c5735292 (patch) | |
tree | 52cab1a0953a39fd605c2be3ce84c51762d930d6 /xen/include/asm-x86/msi.h | |
parent | 41a0f8dc4488e0415bda939c42fe3497247f47e1 (diff) | |
download | xen-f0064d9c2b46a9032863ea05378672e4c5735292.tar.gz xen-f0064d9c2b46a9032863ea05378672e4c5735292.tar.bz2 xen-f0064d9c2b46a9032863ea05378672e4c5735292.zip |
vt-d: Fix MSI-x interrupt remapping
MSI-x may have multiple vectors, however in current interrupt
remapping code, one device only has one entry in interrupt remapping
table.
This patch adds 'remap_index' in msi_desc structure to track its index
in interrupt remapping table.
Signed-off-by: Haitao Shan <haitao.shan@intel.com>
Signed-off-by: Weidong Han <weidong.han@intel.com>
Diffstat (limited to 'xen/include/asm-x86/msi.h')
-rw-r--r-- | xen/include/asm-x86/msi.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xen/include/asm-x86/msi.h b/xen/include/asm-x86/msi.h index a72f348e53..c72f9d69c5 100644 --- a/xen/include/asm-x86/msi.h +++ b/xen/include/asm-x86/msi.h @@ -90,10 +90,11 @@ struct msi_desc { void __iomem *mask_base; struct pci_dev *dev; - int vector; + int vector; + + struct msi_msg msg; /* Last set MSI message */ - /* Last set MSI message */ - struct msi_msg msg; + int remap_index; /* index in interrupt remapping table */ }; /* |