diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-03-02 10:26:37 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-03-02 10:26:37 +0000 |
commit | 34097f0d30802ecdc6da79658090fab9479a0c1c (patch) | |
tree | 423d444c93600913ad32934d48c52bfca0694f64 /xen/include/asm-x86/msi.h | |
parent | ec9db49cf0ecd3edc6a8f34dec1e6688f8bdbb35 (diff) | |
download | xen-34097f0d30802ecdc6da79658090fab9479a0c1c.tar.gz xen-34097f0d30802ecdc6da79658090fab9479a0c1c.tar.bz2 xen-34097f0d30802ecdc6da79658090fab9479a0c1c.zip |
hvm: passthrough MSI-X mask bit acceleration
Add a new parameter to DOMCTL_bind_pt_irq to allow Xen to know the
guest physical address of MSI-X table. Also add a new MMIO intercept
handler to intercept that gpa in order to handle MSI-X vector mask
bit operation in the hypervisor. This reduces the load of device model
considerably if the guest does mask and unmask frequently
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'xen/include/asm-x86/msi.h')
-rw-r--r-- | xen/include/asm-x86/msi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/msi.h b/xen/include/asm-x86/msi.h index a5f67e1655..56387c6004 100644 --- a/xen/include/asm-x86/msi.h +++ b/xen/include/asm-x86/msi.h @@ -81,6 +81,8 @@ extern void teardown_msi_vector(int vector); extern int msi_free_vector(struct msi_desc *entry); extern int pci_restore_msi_state(struct pci_dev *pdev); +extern unsigned int pci_msix_get_table_len(struct pci_dev *pdev); + struct msi_desc { struct { __u8 type : 5; /* {0: unused, 5h:MSI, 11h:MSI-X} */ |