Re: [PATCH 02/10] memory-device: Introduce memory_devices_init()

2023-05-30 Thread David Hildenbrand
On 30.05.23 15:04, David Hildenbrand wrote: On 30.05.23 14:29, Philippe Mathieu-Daudé wrote: Hi David, On 30/5/23 13:38, David Hildenbrand wrote: Let's intrduce a new helper that we will use to replace existing memory device setup code during machine initialization. We'll enforce that the

Re: [PATCH 02/10] memory-device: Introduce memory_devices_init()

2023-05-30 Thread David Hildenbrand
On 30.05.23 14:29, Philippe Mathieu-Daudé wrote: Hi David, On 30/5/23 13:38, David Hildenbrand wrote: Let's intrduce a new helper that we will use to replace existing memory device setup code during machine initialization. We'll enforce that the size has to be > 0. Once all machines were

Re: [PATCH 02/10] memory-device: Introduce memory_devices_init()

2023-05-30 Thread Philippe Mathieu-Daudé
Hi David, On 30/5/23 13:38, David Hildenbrand wrote: Let's intrduce a new helper that we will use to replace existing memory device setup code during machine initialization. We'll enforce that the size has to be > 0. Once all machines were converted, we'll only allocate ms->device_memory if

Re: [PATCH 02/10] memory-device: Introduce memory_devices_init()

2023-05-30 Thread Philippe Mathieu-Daudé
On 30/5/23 13:38, David Hildenbrand wrote: Let's intrduce a new helper that we will use to replace existing memory device setup code during machine initialization. We'll enforce that the size has to be > 0. Once all machines were converted, we'll only allocate ms->device_memory if the size > 0.

[PATCH 02/10] memory-device: Introduce memory_devices_init()

2023-05-30 Thread David Hildenbrand
Let's intrduce a new helper that we will use to replace existing memory device setup code during machine initialization. We'll enforce that the size has to be > 0. Once all machines were converted, we'll only allocate ms->device_memory if the size > 0. Signed-off-by: David Hildenbrand ---