util/vfio-helpers: Assert offset is aligned to page size
mmap(2) states: 'offset' must be a multiple of the page size as returned by sysconf(_SC_PAGE_SIZE). Add an assertion to be sure we don't break this contract. Signed-off-by:Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20201103020733.2303148-8-philmd@redhat.com Signed-off-by:
Stefan Hajnoczi <stefanha@redhat.com> Tested-by:
Eric Auger <eric.auger@redhat.com>
Please register or sign in to comment