Re: [PATCH v2 02/86] machine: introduce ram-memdev property

2020-01-15 Thread Philippe Mathieu-Daudé
On 1/15/20 5:39 PM, Igor Mammedov wrote: On Wed, 15 Jan 2020 16:56:30 +0100 Paolo Bonzini wrote: On 15/01/20 16:06, Igor Mammedov wrote: +object_property_add_link(obj, "ram-memdev", TYPE_MEMORY_BACKEND, + (Object **)&ms->ram_memdev, +

Re: [PATCH v2 02/86] machine: introduce ram-memdev property

2020-01-15 Thread Paolo Bonzini
On 15/01/20 16:06, Igor Mammedov wrote: > > +object_property_add_link(obj, "ram-memdev", TYPE_MEMORY_BACKEND, > + (Object **)&ms->ram_memdev, > + object_property_allow_set_link, > + OBJ_PROP_LINK_STRONG, &erro

Re: [PATCH v2 02/86] machine: introduce ram-memdev property

2020-01-15 Thread Igor Mammedov
On Wed, 15 Jan 2020 16:56:30 +0100 Paolo Bonzini wrote: > On 15/01/20 16:06, Igor Mammedov wrote: > > > > +object_property_add_link(obj, "ram-memdev", TYPE_MEMORY_BACKEND, > > + (Object **)&ms->ram_memdev, > > + object_property_allow_s

[PATCH v2 02/86] machine: introduce ram-memdev property

2020-01-15 Thread Igor Mammedov
Property will contain link to memory backend that will be used for backing initial RAM. Follow up commit will alias -mem-path and -mem-prealloc CLI options into memory backend options to make memory handling consistent (using only hostmem backend family for guest RAM allocation). Signed-off-by: Ig