Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Peter Xu
On Tue, Aug 13, 2024 at 01:34:42PM -0400, Steven Sistare wrote: > > > > Non memory-backend-objects (ramblocks not described on the qemu command > > > > line) will always > > > > be allocated using memfd_create (on Linux only).  The alloc-anon option > > > > is deleted. > > > > The logic in ram_bl

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Steven Sistare
On 8/13/2024 2:45 PM, Peter Xu wrote: On Tue, Aug 13, 2024 at 11:00:37AM -0600, Alex Williamson wrote: Note that the old-QEMU contents of all ramblocks must be preserved, just like in live migration. Live migration copies the contents in the stream. Live update preserves the contents in place

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Steven Sistare
On 8/13/2024 2:46 PM, Steven Sistare wrote: On 8/13/2024 1:00 PM, Alex Williamson wrote: On Tue, 13 Aug 2024 11:35:15 -0400 Peter Xu wrote: On Mon, Aug 12, 2024 at 02:37:59PM -0400, Steven Sistare wrote: On 8/8/2024 2:32 PM, Steven Sistare wrote: On 7/29/2024 8:29 AM, Igor Mammedov wrote:

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Steven Sistare
On 8/13/2024 1:00 PM, Alex Williamson wrote: On Tue, 13 Aug 2024 11:35:15 -0400 Peter Xu wrote: On Mon, Aug 12, 2024 at 02:37:59PM -0400, Steven Sistare wrote: On 8/8/2024 2:32 PM, Steven Sistare wrote: On 7/29/2024 8:29 AM, Igor Mammedov wrote: On Sat, 20 Jul 2024 16:28:25 -0400 Steven Sis

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Peter Xu
On Tue, Aug 13, 2024 at 11:00:37AM -0600, Alex Williamson wrote: > > > Note that the old-QEMU contents of all ramblocks must be preserved, just > > > like > > > in live migration. Live migration copies the contents in the stream. > > > Live update > > > preserves the contents in place by preser

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Steven Sistare
On 8/13/2024 11:35 AM, Peter Xu wrote: On Mon, Aug 12, 2024 at 02:37:59PM -0400, Steven Sistare wrote: On 8/8/2024 2:32 PM, Steven Sistare wrote: On 7/29/2024 8:29 AM, Igor Mammedov wrote: On Sat, 20 Jul 2024 16:28:25 -0400 Steven Sistare wrote: On 7/16/2024 5:19 AM, Igor Mammedov wrote: O

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Alex Williamson
On Tue, 13 Aug 2024 11:35:15 -0400 Peter Xu wrote: > On Mon, Aug 12, 2024 at 02:37:59PM -0400, Steven Sistare wrote: > > On 8/8/2024 2:32 PM, Steven Sistare wrote: > > > On 7/29/2024 8:29 AM, Igor Mammedov wrote: > > > > On Sat, 20 Jul 2024 16:28:25 -0400 > > > > Steven Sistare wrote: > > >

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-13 Thread Peter Xu
On Mon, Aug 12, 2024 at 02:37:59PM -0400, Steven Sistare wrote: > On 8/8/2024 2:32 PM, Steven Sistare wrote: > > On 7/29/2024 8:29 AM, Igor Mammedov wrote: > > > On Sat, 20 Jul 2024 16:28:25 -0400 > > > Steven Sistare wrote: > > > > > > > On 7/16/2024 5:19 AM, Igor Mammedov wrote: > > > > > On Su

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-12 Thread Steven Sistare
On 8/8/2024 2:32 PM, Steven Sistare wrote: On 7/29/2024 8:29 AM, Igor Mammedov wrote: On Sat, 20 Jul 2024 16:28:25 -0400 Steven Sistare wrote: On 7/16/2024 5:19 AM, Igor Mammedov wrote: On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: Allocate anonymous memory using mmap MAP_ANON or

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-08 Thread Steven Sistare
On 7/29/2024 8:29 AM, Igor Mammedov wrote: On Sat, 20 Jul 2024 16:28:25 -0400 Steven Sistare wrote: On 7/16/2024 5:19 AM, Igor Mammedov wrote: On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: Allocate anonymous memory using mmap MAP_ANON or memfd_create depending on the value of

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-08-04 Thread Peter Xu
On Sat, Jul 20, 2024 at 04:35:58PM -0400, Steven Sistare wrote: > On 7/17/2024 3:24 PM, Peter Xu wrote: > > On Tue, Jul 16, 2024 at 11:19:55AM +0200, Igor Mammedov wrote: > > > On Sun, 30 Jun 2024 12:40:24 -0700 > > > Steve Sistare wrote: > > > > > > > Allocate anonymous memory using mmap MAP_ANO

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-29 Thread Igor Mammedov
On Sat, 20 Jul 2024 16:28:25 -0400 Steven Sistare wrote: > On 7/16/2024 5:19 AM, Igor Mammedov wrote: > > On Sun, 30 Jun 2024 12:40:24 -0700 > > Steve Sistare wrote: > > > >> Allocate anonymous memory using mmap MAP_ANON or memfd_create depending > >> on the value of the anon-alloc machine pr

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-22 Thread David Hildenbrand
On 20.07.24 22:28, Steven Sistare wrote: On 7/16/2024 5:19 AM, Igor Mammedov wrote: On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: Allocate anonymous memory using mmap MAP_ANON or memfd_create depending on the value of the anon-alloc machine property. This affects memory-backend-ram

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-20 Thread Steven Sistare
On 7/17/2024 3:24 PM, Peter Xu wrote: On Tue, Jul 16, 2024 at 11:19:55AM +0200, Igor Mammedov wrote: On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: Allocate anonymous memory using mmap MAP_ANON or memfd_create depending on the value of the anon-alloc machine property. This affects m

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-20 Thread Steven Sistare
On 7/16/2024 5:19 AM, Igor Mammedov wrote: On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: Allocate anonymous memory using mmap MAP_ANON or memfd_create depending on the value of the anon-alloc machine property. This affects memory-backend-ram objects, guest RAM created with the globa

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-18 Thread Peter Xu
On Thu, Jul 18, 2024 at 11:43:54AM -0400, Steven Sistare wrote: > On 7/17/2024 3:24 PM, Peter Xu wrote: > [...] > > > > PS to Steve: and I think I left tons of other comments in previous version > > outside this patch too, but I don't think they're fully discussed when this > > series was sent. I

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-18 Thread Steven Sistare
On 7/17/2024 3:24 PM, Peter Xu wrote: [...] PS to Steve: and I think I left tons of other comments in previous version outside this patch too, but I don't think they're fully discussed when this series was sent. I can re-read the series again, but I don't think it'll work out if we keep skippin

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-17 Thread Peter Xu
On Tue, Jul 16, 2024 at 11:19:55AM +0200, Igor Mammedov wrote: > On Sun, 30 Jun 2024 12:40:24 -0700 > Steve Sistare wrote: > > > Allocate anonymous memory using mmap MAP_ANON or memfd_create depending > > on the value of the anon-alloc machine property. This affects > > memory-backend-ram object

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-16 Thread Igor Mammedov
On Sun, 30 Jun 2024 12:40:24 -0700 Steve Sistare wrote: > Allocate anonymous memory using mmap MAP_ANON or memfd_create depending > on the value of the anon-alloc machine property. This affects > memory-backend-ram objects, guest RAM created with the global -m option > but without an associated

Re: [PATCH V2 01/11] machine: alloc-anon option

2024-07-15 Thread Fabiano Rosas
Steve Sistare writes: > Allocate anonymous memory using mmap MAP_ANON or memfd_create depending > on the value of the anon-alloc machine property. This affects > memory-backend-ram objects, guest RAM created with the global -m option > but without an associated memory-backend object and without

[PATCH V2 01/11] machine: alloc-anon option

2024-06-30 Thread Steve Sistare
Allocate anonymous memory using mmap MAP_ANON or memfd_create depending on the value of the anon-alloc machine property. This affects memory-backend-ram objects, guest RAM created with the global -m option but without an associated memory-backend object and without the -mem-path option, and variou