Re: [PATCH v2 62/86] ppc:mac_oldworld: use memdev for RAM

2020-01-16 Thread Mark Cave-Ayland
On 15/01/2020 15:07, Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing > MachineClass::default_ram_id >

Re: [PATCH v2 62/86] ppc:mac_oldworld: use memdev for RAM

2020-01-15 Thread David Gibson
On Wed, Jan 15, 2020 at 04:07:17PM +0100, Igor Mammedov wrote: > memory_region_allocate_system_memory() API is going away, so > replace it with memdev allocated MemoryRegion. The later is > initialized by generic code, so board only needs to opt in > to memdev scheme by providing >

[PATCH v2 62/86] ppc:mac_oldworld: use memdev for RAM

2020-01-15 Thread Igor Mammedov
memory_region_allocate_system_memory() API is going away, so replace it with memdev allocated MemoryRegion. The later is initialized by generic code, so board only needs to opt in to memdev scheme by providing MachineClass::default_ram_id and using MachineState::ram instead of manually