util/vfio-helpers: Pass page protections to qemu_vfio_pci_map_bar()
commitb02c01a513a17e03e2245feff19b3dcc8c408859
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 22 Sep 2020 08:38:16 +0000 (22 10:38 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 5 Oct 2020 08:35:52 +0000 (5 09:35 +0100)
treea4bb66de8c0091fc06398ee4dd4e6361759f3733
parent469e72ab7dbbd7ff4ee601e5ea7c29545d46593b
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>
block/nvme.c
include/qemu/vfio-helpers.h
util/vfio-helpers.c