[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 01/13] driver core: Add iommu_group tracking to s
From: |
Alex Williamson |
Subject: |
[Qemu-devel] [PATCH v2 01/13] driver core: Add iommu_group tracking to struct device |
Date: |
Mon, 21 May 2012 23:04:39 -0600 |
User-agent: |
StGIT/0.14.3 |
IOMMU groups allow IOMMU drivers to represent DMA visibility
and isolation of devices. Multiple devices may be grouped
together for the purposes of DMA. Placing a pointer on
struct device enable easy access for things like streaming
DMA programming and drivers like VFIO.
Signed-off-by: Alex Williamson <address@hidden>
Acked-by: Greg Kroah-Hartman <address@hidden>
---
include/linux/device.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/linux/device.h b/include/linux/device.h
index 5ad17cc..13dd26b 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -35,6 +35,7 @@ struct subsys_private;
struct bus_type;
struct device_node;
struct iommu_ops;
+struct iommu_group;
struct bus_attribute {
struct attribute attr;
@@ -677,6 +678,7 @@ struct device {
const struct attribute_group **groups; /* optional groups */
void (*release)(struct device *dev);
+ struct iommu_group *iommu_group;
};
/* Get the wakeup routines, which depend on struct device */
- [Qemu-devel] [PATCH v2 00/13] IOMMU Groups + VFIO, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 01/13] driver core: Add iommu_group tracking to struct device,
Alex Williamson <=
- [Qemu-devel] [PATCH v2 02/13] iommu: IOMMU Groups, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 03/13] iommu: IOMMU groups for VT-d and AMD-Vi, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 04/13] pci: Add PCI DMA source ID quirk, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 05/13] pci: Add ACS validation utility, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 06/13] iommu: Make use of DMA quirking and ACS enabled check for groups, Alex Williamson, 2012/05/22
- [Qemu-devel] [PATCH v2 09/13] vfio: x86 IOMMU implementation, Alex Williamson, 2012/05/22