console/win32: allocate shareable display surface
Introduce qemu_win32_map_alloc() and qemu_win32_map_free() to allocate
shared memory mapping. The handle can be used to share the mapping with
another process.
Teach qemu_create_displaysurface() to allocate shared memory. Following
patches will introduce other places for shared memory allocation.
Other patches for -display dbus will share the memory when possible with
the client, to avoid expensive memory copy between the processes.
Signed-off-by:
Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230606115658.677673-10-marcandre.lureau@redhat.com>
Showing
- include/sysemu/os-win32.h 3 additions, 0 deletionsinclude/sysemu/os-win32.h
- include/ui/console.h 8 additions, 0 deletionsinclude/ui/console.h
- ui/console.c 52 additions, 7 deletionsui/console.c
- ui/qemu-pixman.c 1 addition, 0 deletionsui/qemu-pixman.c
- ui/trace-events 1 addition, 1 deletionui/trace-events
- util/oslib-win32.c 33 additions, 0 deletionsutil/oslib-win32.c
- util/trace-events 4 additions, 0 deletionsutil/trace-events
Loading
Please register or sign in to comment