]> Git Repo - qemu.git/commit - exec.c
Make qemu_mempath_getpagesize() accept NULL
authorDavid Gibson <[email protected]>
Tue, 3 Apr 2018 04:55:11 +0000 (14:55 +1000)
committerDavid Gibson <[email protected]>
Fri, 27 Apr 2018 08:05:22 +0000 (18:05 +1000)
commit0de6e2a3ca2e1215a2d62d8d796589d27eca91d0
tree89c3e7fac8cf32172e02f41622da2ebb2b2840c5
parent8a4fd427fe8236bb4f6993702112f058b5d80507
Make qemu_mempath_getpagesize() accept NULL

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 <[email protected]>
Reviewed-by: Greg Kurz <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
exec.c
target/ppc/kvm.c
util/mmap-alloc.c
This page took 0.025054 seconds and 4 git commands to generate.