[PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-28 Thread Stefano Garzarella
Add a new `shm` bool option for `-object memory-backend-file`. When this option is set to true, the POSIX shm_open(3) is used instead of open(2). So a file will not be created in the filesystem, but a "POSIX shared memory object" will be instantiated. In Linux this turns into a file in /dev/shm,

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-28 Thread David Hildenbrand
On 28.02.24 12:47, Stefano Garzarella wrote: Add a new `shm` bool option for `-object memory-backend-file`. When this option is set to true, the POSIX shm_open(3) is used instead of open(2). So a file will not be created in the filesystem, but a "POSIX shared memory object" will be instantiated

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-28 Thread Daniel P . Berrangé
On Wed, Feb 28, 2024 at 12:47:59PM +0100, Stefano Garzarella wrote: > Add a new `shm` bool option for `-object memory-backend-file`. > > When this option is set to true, the POSIX shm_open(3) is used instead > of open(2). > > So a file will not be created in the filesystem, but a "POSIX shared >

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-28 Thread Markus Armbruster
Stefano Garzarella writes: > Add a new `shm` bool option for `-object memory-backend-file`. > > When this option is set to true, the POSIX shm_open(3) is used instead > of open(2). > > So a file will not be created in the filesystem, but a "POSIX shared > memory object" will be instantiated. In L

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-29 Thread Stefano Garzarella
On Wed, Feb 28, 2024 at 01:01:55PM +0100, David Hildenbrand wrote: On 28.02.24 12:47, Stefano Garzarella wrote: Add a new `shm` bool option for `-object memory-backend-file`. When this option is set to true, the POSIX shm_open(3) is used instead of open(2). So a file will not be created in the

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-29 Thread Stefano Garzarella
On Wed, Feb 28, 2024 at 12:08:37PM +, Daniel P. Berrangé wrote: On Wed, Feb 28, 2024 at 12:47:59PM +0100, Stefano Garzarella wrote: Add a new `shm` bool option for `-object memory-backend-file`. When this option is set to true, the POSIX shm_open(3) is used instead of open(2). So a file wi

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-29 Thread Stefano Garzarella
On Wed, Feb 28, 2024 at 01:32:17PM +0100, Markus Armbruster wrote: Stefano Garzarella writes: Add a new `shm` bool option for `-object memory-backend-file`. When this option is set to true, the POSIX shm_open(3) is used instead of open(2). So a file will not be created in the filesystem, but

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-29 Thread Markus Armbruster
Stefano Garzarella writes: > On Wed, Feb 28, 2024 at 01:32:17PM +0100, Markus Armbruster wrote: >>Stefano Garzarella writes: [...] >>> +# @shm: if true, shm_open(3) is used to create/open POSIX shared memory >>> +# object; if false, an open(2) is used. (default: false) (since 9.0) >>> +#

Re: [PATCH 9/9] hostmem-file: support POSIX shm_open()

2024-02-29 Thread Stefano Garzarella
On Thu, Feb 29, 2024 at 11:28:37AM +0100, Markus Armbruster wrote: Stefano Garzarella writes: On Wed, Feb 28, 2024 at 01:32:17PM +0100, Markus Armbruster wrote: Stefano Garzarella writes: [...] +# @shm: if true, shm_open(3) is used to create/open POSIX shared memory +# object; if f