Re: [PATCH 12/16] ui/surface: allocate shared memory on !win32

2024-10-07 Thread Akihiko Odaki
On 2024/10/07 20:47, Marc-André Lureau wrote: On Sat, Oct 5, 2024 at 12:59 PM Akihiko Odaki wrote: On 2024/10/03 20:22, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Use qemu_memfd_alloc() to allocate the display surface memory, which will fallback on tmpfile/mmap() on systems

Re: [PATCH 12/16] ui/surface: allocate shared memory on !win32

2024-10-07 Thread Marc-André Lureau
On Sat, Oct 5, 2024 at 12:59 PM Akihiko Odaki wrote: > > On 2024/10/03 20:22, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Use qemu_memfd_alloc() to allocate the display surface memory, which > > will fallback on tmpfile/mmap() on systems without memfd, and allow to > >

Re: [PATCH 12/16] ui/surface: allocate shared memory on !win32

2024-10-05 Thread Akihiko Odaki
On 2024/10/03 20:22, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Use qemu_memfd_alloc() to allocate the display surface memory, which will fallback on tmpfile/mmap() on systems without memfd, and allow to share the display with other processes. This is similar to how display mem

[PATCH 12/16] ui/surface: allocate shared memory on !win32

2024-10-03 Thread marcandre . lureau
From: Marc-André Lureau Use qemu_memfd_alloc() to allocate the display surface memory, which will fallback on tmpfile/mmap() on systems without memfd, and allow to share the display with other processes. This is similar to how display memory is allocated on win32 since commit 09b4c198 ("console/