diff options
author | Philippe Mathieu-Daudé | 2020-11-03 03:07:33 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2020-11-03 20:06:23 +0100 |
commit | fc107d86840b3364e922c26cf7631b7fd38ce523 (patch) | |
tree | ab980778814158cf6e23b274f0a96b2131970ef6 /softmmu/memory.c | |
parent | util/vfio-helpers: Convert vfio_dump_mapping to trace events (diff) | |
download | qemu-fc107d86840b3364e922c26cf7631b7fd38ce523.tar.gz qemu-fc107d86840b3364e922c26cf7631b7fd38ce523.tar.xz qemu-fc107d86840b3364e922c26cf7631b7fd38ce523.zip |
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>
Diffstat (limited to 'softmmu/memory.c')
0 files changed, 0 insertions, 0 deletions