summary refs log tree commit diff stats
path: root/include/qemu/vfio-helpers.h
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@redhat.com>2020-09-22 10:38:16 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2020-10-05 09:35:52 +0100
commitb02c01a513a17e03e2245feff19b3dcc8c408859 (patch)
treea4bb66de8c0091fc06398ee4dd4e6361759f3733 /include/qemu/vfio-helpers.h
parent469e72ab7dbbd7ff4ee601e5ea7c29545d46593b (diff)
downloadfocaccia-qemu-b02c01a513a17e03e2245feff19b3dcc8c408859.tar.gz
focaccia-qemu-b02c01a513a17e03e2245feff19b3dcc8c408859.zip
util/vfio-helpers: Pass page protections to qemu_vfio_pci_map_bar()
Pages are currently mapped READ/WRITE. To be able to use different
protections, add a new argument to qemu_vfio_pci_map_bar().

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20200922083821.578519-2-philmd@redhat.com>
Diffstat (limited to 'include/qemu/vfio-helpers.h')
-rw-r--r--include/qemu/vfio-helpers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/vfio-helpers.h b/include/qemu/vfio-helpers.h
index 1f057c2b9e..4491c8e1a6 100644
--- a/include/qemu/vfio-helpers.h
+++ b/include/qemu/vfio-helpers.h
@@ -22,7 +22,7 @@ int qemu_vfio_dma_map(QEMUVFIOState *s, void *host, size_t size,
 int qemu_vfio_dma_reset_temporary(QEMUVFIOState *s);
 void qemu_vfio_dma_unmap(QEMUVFIOState *s, void *host);
 void *qemu_vfio_pci_map_bar(QEMUVFIOState *s, int index,
-                            uint64_t offset, uint64_t size,
+                            uint64_t offset, uint64_t size, int prot,
                             Error **errp);
 void qemu_vfio_pci_unmap_bar(QEMUVFIOState *s, int index, void *bar,
                              uint64_t offset, uint64_t size);