[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC v6 07/24] iommu: Introduce generic header
From: |
Eric Auger |
Subject: |
[RFC v6 07/24] iommu: Introduce generic header |
Date: |
Fri, 20 Mar 2020 17:58:23 +0100 |
This header is meant to exposes data types used by
several IOMMU devices such as struct for SVA and
nested stage configuration.
Signed-off-by: Eric Auger <address@hidden>
---
include/hw/iommu/iommu.h | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
create mode 100644 include/hw/iommu/iommu.h
diff --git a/include/hw/iommu/iommu.h b/include/hw/iommu/iommu.h
new file mode 100644
index 0000000000..12092bda7b
--- /dev/null
+++ b/include/hw/iommu/iommu.h
@@ -0,0 +1,28 @@
+/*
+ * common header for iommu devices
+ *
+ * Copyright Red Hat, Inc. 2019
+ *
+ * Authors:
+ * Eric Auger <address@hidden>
+ *
+ * This work is licensed under the terms of the GNU GPL, version 2. See
+ * the COPYING file in the top-level directory.
+ */
+
+#ifndef QEMU_HW_IOMMU_IOMMU_H
+#define QEMU_HW_IOMMU_IOMMU_H
+#ifdef __linux__
+#include <linux/iommu.h>
+#endif
+
+typedef struct IOMMUConfig {
+ union {
+#ifdef __linux__
+ struct iommu_pasid_table_config pasid_cfg;
+#endif
+ };
+} IOMMUConfig;
+
+
+#endif /* QEMU_HW_IOMMU_IOMMU_H */
--
2.20.1
- [RFC v6 00/24] vSMMUv3/pSMMUv3 2 stage VFIO integration, Eric Auger, 2020/03/20
- [RFC v6 01/24] update-linux-headers: Import iommu.h, Eric Auger, 2020/03/20
- [RFC v6 02/24] header update against 5.6.0-rc3 and IOMMU/VFIO nested stage APIs, Eric Auger, 2020/03/20
- [RFC v6 03/24] memory: Add IOMMU_ATTR_VFIO_NESTED IOMMU memory region attribute, Eric Auger, 2020/03/20
- [RFC v6 04/24] memory: Add IOMMU_ATTR_MSI_TRANSLATE IOMMU memory region attribute, Eric Auger, 2020/03/20
- [RFC v6 05/24] memory: Introduce IOMMU Memory Region inject_faults API, Eric Auger, 2020/03/20
- [RFC v6 06/24] memory: Add arch_id and leaf fields in IOTLBEntry, Eric Auger, 2020/03/20
- [RFC v6 07/24] iommu: Introduce generic header,
Eric Auger <=
- [RFC v6 08/24] pci: introduce PCIPASIDOps to PCIDevice, Eric Auger, 2020/03/20
- [RFC v6 09/24] vfio: Force nested if iommu requires it, Eric Auger, 2020/03/20
- [RFC v6 10/24] vfio: Introduce hostwin_from_range helper, Eric Auger, 2020/03/20
- [RFC v6 11/24] vfio: Introduce helpers to DMA map/unmap a RAM section, Eric Auger, 2020/03/20
- [RFC v6 12/24] vfio: Set up nested stage mappings, Eric Auger, 2020/03/20
- [RFC v6 13/24] vfio: Pass stage 1 MSI bindings to the host, Eric Auger, 2020/03/20