-
Philippe Mathieu-Daudé authored
qemu_vfio_pci_map_bar() calls mmap(), and mmap(2) states: 'offset' must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE). In commit f6845323 we started to use an offset of 4K which broke this contract on Aarch64 arch. Fix by mapping at offset 0, and and accessing doorbells at offset=4K. Fixes: f6845323 ("block/nvme: Map doorbells pages write-only") Reported-by:
Eric Auger <eric.auger@redhat.com>
Reviewed-by:
Eric Auger <eric.auger@redhat.com>
Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com>
Tested-by:
Eric Auger <eric.auger@redhat.com>
Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201029093306.1063879-24-philmd@redhat.com
Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Tested-by:
Eric Auger <eric.auger@redhat.com>Philippe Mathieu-Daudé authoredqemu_vfio_pci_map_bar() calls mmap(), and mmap(2) states: 'offset' must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE). In commit f6845323 we started to use an offset of 4K which broke this contract on Aarch64 arch. Fix by mapping at offset 0, and and accessing doorbells at offset=4K. Fixes: f6845323 ("block/nvme: Map doorbells pages write-only") Reported-by:
Eric Auger <eric.auger@redhat.com>
Reviewed-by:
Eric Auger <eric.auger@redhat.com>
Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com>
Tested-by:
Eric Auger <eric.auger@redhat.com>
Signed-off-by:
Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20201029093306.1063879-24-philmd@redhat.com
Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com>
Tested-by:
Eric Auger <eric.auger@redhat.com>
Loading