diff options
| author | Philippe Mathieu-Daudé | 2020-09-22 10:38:16 +0200 |
|---|---|---|
| committer | Stefan Hajnoczi | 2020-10-05 10:35:52 +0200 |
| commit | b02c01a513a17e03e2245feff19b3dcc8c408859 (patch) | |
| tree | a4bb66de8c0091fc06398ee4dd4e6361759f3733 /include/qemu | |
| parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
| download | qemu-b02c01a513a17e03e2245feff19b3dcc8c408859.tar.gz qemu-b02c01a513a17e03e2245feff19b3dcc8c408859.tar.xz 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')
| -rw-r--r-- | include/qemu/vfio-helpers.h | 2 |
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); |
