Thread (11 messages) 11 messages, 4 authors, 2017-06-28

Re: [RFC][PATCH] vfio: allow to map other memory regions

From: Wodkowski, PawelX <hidden>
Date: 2017-05-18 09:06:04

-----Original Message-----
From: Stephen Hemminger [mailto:stephen@networkplumber.org]
Sent: Wednesday, May 17, 2017 7:20 PM
To: Wodkowski, PawelX <redacted>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [RFC][PATCH] vfio: allow to map other memory regions

On Wed, 17 May 2017 16:44:46 +0200
Pawel Wodkowski [off-list ref] wrote:
quoted
 /* IOMMU types we support */
 static const struct vfio_iommu_type iommu_types[] = {
 	/* x86 IOMMU, otherwise known as type 1 */
-	{ RTE_VFIO_TYPE1, "Type 1", &vfio_type1_dma_map},
+	{ RTE_VFIO_TYPE1, "Type 1", &vfio_type1_dma_map,
&vfio_type1_dma_mem_map},
quoted
 	/* ppc64 IOMMU, otherwise known as spapr */
-	{ RTE_VFIO_SPAPR, "sPAPR", &vfio_spapr_dma_map},
+	{ RTE_VFIO_SPAPR, "sPAPR", &vfio_spapr_dma_map, NULL},
 	/* IOMMU-less mode */
-	{ RTE_VFIO_NOIOMMU, "No-IOMMU", &vfio_noiommu_dma_map},
+	{ RTE_VFIO_NOIOMMU, "No-IOMMU", &vfio_noiommu_dma_map,
&vfio_noiommu_dma_mem_map},
quoted
 };
For complex tables like this why not use C99 style initializer.
Sure will change it in next version.
Any comments about functional side of this change before v2 ? :)

Pawel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help