Re: [PATCH v2 10/86] arm:aspeed: use memdev for RAM

2020-01-16 Thread Philippe Mathieu-Daudé
On 1/16/20 10:24 AM, Cédric Le Goater wrote: On 1/15/20 4:06 PM, 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

Re: [PATCH v2 10/86] arm:aspeed: use memdev for RAM

2020-01-16 Thread Cédric Le Goater
On 1/15/20 4:06 PM, 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 > and u

Re: [PATCH v2 10/86] arm:aspeed: use memdev for RAM

2020-01-15 Thread Philippe Mathieu-Daudé
On 1/15/20 4:06 PM, 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 and using Mach

[PATCH v2 10/86] arm:aspeed: 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 initializi