Re: [PATCH 07/21] hw: Drop QOM ownership on memory_region_allocate_system_memory() calls

2019-10-22 Thread Artyom Tarasenko
On Tue, Oct 22, 2019 at 1:23 AM Alistair Francis wrote: > > On Sun, Oct 20, 2019 at 4:10 PM Philippe Mathieu-Daudé > wrote: > > > > All the memory_region_allocate_system_memory() calls are in the > > board_init() code. From the 58 calls in the repository, only > > 4 set the 'owner' parameter.

Re: [PATCH 07/21] hw: Drop QOM ownership on memory_region_allocate_system_memory() calls

2019-10-21 Thread Alistair Francis
On Sun, Oct 20, 2019 at 4:10 PM Philippe Mathieu-Daudé wrote: > > All the memory_region_allocate_system_memory() calls are in the > board_init() code. From the 58 calls in the repository, only > 4 set the 'owner' parameter. It is obvious we want the Machine > to be the owner of the RAM, so we

[PATCH 07/21] hw: Drop QOM ownership on memory_region_allocate_system_memory() calls

2019-10-20 Thread Philippe Mathieu-Daudé
All the memory_region_allocate_system_memory() calls are in the board_init() code. From the 58 calls in the repository, only 4 set the 'owner' parameter. It is obvious we want the Machine to be the owner of the RAM, so we want to use OBJECT(machine) as owner. We can simplify a bit by passing