]> Git Repo - qemu.git/commit - util/oslib-posix.c
exec: factor out duplicate mmap code
authorMichael S. Tsirkin <[email protected]>
Thu, 24 Sep 2015 11:41:17 +0000 (14:41 +0300)
committerMichael S. Tsirkin <[email protected]>
Wed, 21 Oct 2015 06:24:44 +0000 (09:24 +0300)
commit794e8f301a17953efa78ab7538019ec43c59e82a
tree99efbb84259d79552bd700c58242f6350b88efd2
parent7df953bd456da45f761064974820ab5c3fd7b2aa
exec: factor out duplicate mmap code

Anonymous and file-backed RAM allocation are now almost exactly the same.

Reduce code duplication by moving RAM mmap code out of oslib-posix.c and
exec.c.

Reported-by: Marc-AndrĂ© Lureau <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Acked-by: Paolo Bonzini <[email protected]>
Tested-by: Thibaut Collet <[email protected]>
exec.c
include/qemu/mmap-alloc.h [new file with mode: 0644]
util/Makefile.objs
util/mmap-alloc.c [new file with mode: 0644]
util/oslib-posix.c
This page took 0.024565 seconds and 4 git commands to generate.