Re: [PATCH v2 38/86] s390x:s390-virtio-ccw: use memdev for RAM

2020-01-16 Thread David Hildenbrand
On 15.01.20 16:06, 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

Re: [PATCH v2 38/86] s390x:s390-virtio-ccw: 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

[PATCH v2 38/86] s390x:s390-virtio-ccw: 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