-
David Gibson authored
qemu_mempath_getpagesize() gets the effective (host side) page size for a block of memory backed by an mmap()ed file on the host. It requires the mem_path parameter to be non-NULL. This ends up meaning all the callers need a different case for handling anonymous memory (for memory-backend-ram or default memory with -mem-path is not specified). We can make all those callers a little simpler by having qemu_mempath_getpagesize() accept NULL, and treat that as the anonymous memory case. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
Reviewed-by:
Greg Kurz <groug@kaod.org>
Acked-by:
Paolo Bonzini <pbonzini@redhat.com>David Gibson authoredqemu_mempath_getpagesize() gets the effective (host side) page size for a block of memory backed by an mmap()ed file on the host. It requires the mem_path parameter to be non-NULL. This ends up meaning all the callers need a different case for handling anonymous memory (for memory-backend-ram or default memory with -mem-path is not specified). We can make all those callers a little simpler by having qemu_mempath_getpagesize() accept NULL, and treat that as the anonymous memory case. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
Reviewed-by:
Greg Kurz <groug@kaod.org>
Acked-by:
Paolo Bonzini <pbonzini@redhat.com>
Loading