backends/hostmem-shm: factor out allocation of "anonymous shared memory with an fd"
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 15 Jan 2025 19:00:27 +0000 (11:00 -0800)
committerFabiano Rosas <farosas@suse.de>
Wed, 29 Jan 2025 14:43:03 +0000 (11:43 -0300)
commit57ad6ab804cd24d6dd4a08f40f83081c393ee0b9
tree443087f3c1413c5187594bdcebfd8f50dcc37423
parented19620846cfe0206d88fd37522a79de96ebddc6
backends/hostmem-shm: factor out allocation of "anonymous shared memory with an fd"

Let's factor it out so we can reuse it.

Signed-off-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Link: https://lore.kernel.org/r/1736967650-129648-2-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
backends/hostmem-shm.c
include/qemu/osdep.h
meson.build
util/oslib-posix.c
util/oslib-win32.c