Skip to content
Commit 794e8f30 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMarc-André Lureau <mlureau@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Reviewed-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Acked-by: default avatarPaolo Bonzini <pbonzini@redhat.com>

Tested-by: default avatarThibaut Collet <thibaut.collet@6wind.com>
parent 7df953bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment