From 1abe697341061a6c16e4a5d28b20b5efa7035a81 Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 9 Jun 2021 11:15:34 +0100 Subject: drop mappable flag from DMA map (#553) The flags field belongs to VFIO and it's not a good idea to reuse as new VFIO flags can break things. Instead, we derive whether or not a region is mappable if a file descriptor is passed. Signed-off-by: Thanos Makatos Reviewed-by: Swapnil Ingle Reviewed-by: John Levon --- samples/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'samples/client.c') diff --git a/samples/client.c b/samples/client.c index 13880c5..ef3202c 100644 --- a/samples/client.c +++ b/samples/client.c @@ -1175,7 +1175,7 @@ int main(int argc, char *argv[]) dma_regions[i].addr = i * sysconf(_SC_PAGESIZE); dma_regions[i].size = sysconf(_SC_PAGESIZE); dma_regions[i].offset = dma_regions[i].addr; - dma_regions[i].flags = VFIO_USER_F_DMA_REGION_READ | VFIO_USER_F_DMA_REGION_WRITE | VFIO_USER_F_DMA_REGION_MAPPABLE; + dma_regions[i].flags = VFIO_USER_F_DMA_REGION_READ | VFIO_USER_F_DMA_REGION_WRITE; dma_region_fds[i] = fileno(fp); } -- cgit v1.1