summaryrefslogtreecommitdiffstats
path: root/drivers/misc/vmw_vmci/vmci_driver.h
diff options
context:
space:
mode:
authorAndy King <acking@vmware.com>2013-08-23 09:22:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-27 21:42:12 -0700
commit6d6dfb4f4aa9ee352a199b5379942350bdd26e64 (patch)
tree91c12892923e6402d34246112947abdf03e5538d /drivers/misc/vmw_vmci/vmci_driver.h
parent45412befe8fee657effc15112af05ca9dbea61fc (diff)
VMCI: Add support for virtual IOMMU
This patch adds support for virtual IOMMU to the vmci module. We switch to DMA consistent mappings for guest queuepair and doorbell pages that are passed to the device. We still allocate each page individually, since there's no guarantee that we'll get a contiguous block of physical for an entire queuepair (especially since we allow up to 128 MiB!). Also made the split between guest and host in the kernelIf struct much clearer. Now it's obvious which fields are which. Acked-by: George Zhang <georgezhang@vmware.com> Acked-by: Aditya Sarwade <asarwade@vmware.com> Signed-off-by: Andy King <acking@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_vmci/vmci_driver.h')
-rw-r--r--drivers/misc/vmw_vmci/vmci_driver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/misc/vmw_vmci/vmci_driver.h b/drivers/misc/vmw_vmci/vmci_driver.h
index f69156a1f30..cee9e977d31 100644
--- a/drivers/misc/vmw_vmci/vmci_driver.h
+++ b/drivers/misc/vmw_vmci/vmci_driver.h
@@ -35,6 +35,13 @@ struct vmci_obj {
enum vmci_obj_type type;
};
+/*
+ * Needed by other components of this module. It's okay to have one global
+ * instance of this because there can only ever be one VMCI device. Our
+ * virtual hardware enforces this.
+ */
+extern struct pci_dev *vmci_pdev;
+
u32 vmci_get_context_id(void);
int vmci_send_datagram(struct vmci_datagram *dg);