Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-04 Thread David Hildenbrand
On 04.06.24 18:41, Peter Xu wrote: On Tue, Jun 04, 2024 at 06:14:08PM +0200, David Hildenbrand wrote: On 04.06.24 17:58, Peter Xu wrote: On Tue, Jun 04, 2024 at 08:13:26AM +0100, Daniel P. Berrangé wrote: On Mon, Jun 03, 2024 at 05:48:32PM -0400, Peter Xu wrote: That property, irrelevant of

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-04 Thread Peter Xu
On Tue, Jun 04, 2024 at 06:14:08PM +0200, David Hildenbrand wrote: > On 04.06.24 17:58, Peter Xu wrote: > > On Tue, Jun 04, 2024 at 08:13:26AM +0100, Daniel P. Berrangé wrote: > > > On Mon, Jun 03, 2024 at 05:48:32PM -0400, Peter Xu wrote: > > > > That property, irrelevant of what it is called

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-04 Thread David Hildenbrand
On 04.06.24 17:58, Peter Xu wrote: On Tue, Jun 04, 2024 at 08:13:26AM +0100, Daniel P. Berrangé wrote: On Mon, Jun 03, 2024 at 05:48:32PM -0400, Peter Xu wrote: That property, irrelevant of what it is called (and I doubt whether Dan's suggestion on "shared-ram" is good, e.g. mmap(MAP_SHARED)

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-04 Thread Peter Xu
On Tue, Jun 04, 2024 at 08:13:26AM +0100, Daniel P. Berrangé wrote: > On Mon, Jun 03, 2024 at 05:48:32PM -0400, Peter Xu wrote: > > That property, irrelevant of what it is called (and I doubt whether Dan's > > suggestion on "shared-ram" is good, e.g. mmap(MAP_SHARED) doesn't have user > > visible

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-04 Thread Daniel P . Berrangé
On Mon, Jun 03, 2024 at 05:48:32PM -0400, Peter Xu wrote: > That property, irrelevant of what it is called (and I doubt whether Dan's > suggestion on "shared-ram" is good, e.g. mmap(MAP_SHARED) doesn't have user > visible fd but it's shared-ram for sure..), is yet another way to specify > guest

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-03 Thread Peter Xu
On Fri, May 31, 2024 at 03:32:05PM -0400, Steven Sistare wrote: > On 5/30/2024 2:14 PM, Peter Xu wrote: > > On Thu, May 30, 2024 at 01:11:09PM -0400, Steven Sistare wrote: > > > On 5/29/2024 3:14 PM, Peter Xu wrote: > > > > On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: > > > > >

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-03 Thread Steven Sistare via
On 6/3/2024 6:17 AM, Daniel P. Berrangé wrote: On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: On 5/28/2024 5:12 PM, Peter Xu wrote: On Mon, Apr 29, 2024 at 08:55:26AM -0700, Steve Sistare wrote: Allocate anonymous memory using memfd_create if the memfd-alloc machine option is

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-06-03 Thread Daniel P . Berrangé
On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: > On 5/28/2024 5:12 PM, Peter Xu wrote: > > On Mon, Apr 29, 2024 at 08:55:26AM -0700, Steve Sistare wrote: > > > Allocate anonymous memory using memfd_create if the memfd-alloc machine > > > option is set. > > > > > > Signed-off-by:

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-31 Thread Steven Sistare via
On 5/30/2024 2:14 PM, Peter Xu wrote: On Thu, May 30, 2024 at 01:11:09PM -0400, Steven Sistare wrote: On 5/29/2024 3:14 PM, Peter Xu wrote: On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: diff --git a/system/memory.c b/system/memory.c index 49f1cb2..ca04a0e 100644 ---

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-30 Thread Peter Xu
On Thu, May 30, 2024 at 01:11:09PM -0400, Steven Sistare wrote: > On 5/29/2024 3:14 PM, Peter Xu wrote: > > On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: > > > > > diff --git a/system/memory.c b/system/memory.c > > > > > index 49f1cb2..ca04a0e 100644 > > > > > ---

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-30 Thread Steven Sistare via
On 5/29/2024 3:14 PM, Peter Xu wrote: On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: diff --git a/system/memory.c b/system/memory.c index 49f1cb2..ca04a0e 100644 --- a/system/memory.c +++ b/system/memory.c @@ -1552,8 +1552,9 @@ bool memory_region_init_ram_nomigrate(MemoryRegion

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-29 Thread Peter Xu
On Wed, May 29, 2024 at 01:31:38PM -0400, Steven Sistare wrote: > > > diff --git a/system/memory.c b/system/memory.c > > > index 49f1cb2..ca04a0e 100644 > > > --- a/system/memory.c > > > +++ b/system/memory.c > > > @@ -1552,8 +1552,9 @@ bool memory_region_init_ram_nomigrate(MemoryRegion > > >

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-29 Thread Steven Sistare via
On 5/28/2024 5:12 PM, Peter Xu wrote: On Mon, Apr 29, 2024 at 08:55:26AM -0700, Steve Sistare wrote: Allocate anonymous memory using memfd_create if the memfd-alloc machine option is set. Signed-off-by: Steve Sistare --- hw/core/machine.c | 22 ++ include/hw/boards.h

Re: [PATCH V1 17/26] machine: memfd-alloc option

2024-05-28 Thread Peter Xu
On Mon, Apr 29, 2024 at 08:55:26AM -0700, Steve Sistare wrote: > Allocate anonymous memory using memfd_create if the memfd-alloc machine > option is set. > > Signed-off-by: Steve Sistare > --- > hw/core/machine.c | 22 ++ > include/hw/boards.h | 1 + > qemu-options.hx