qemu-patch-raspberry4/include/hw/mem
David Hildenbrand 1b6d6af21b pc-dimm: factor out capacity and slot checks into MemoryDevice
Move the checks into memory_device_get_free_addr(). This will check
before doing any calculations if we have KVM/vhost slots left and if
the total region size would be exceeded.

Of course, while at it, make it independent of pc-dimm code.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180423165126.15441-7-david@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2018-05-07 10:00:02 -03:00
..
memory-device.h pc-dimm: factor out address search into MemoryDevice code 2018-05-07 10:00:02 -03:00
nvdimm.h nvdimm: add 'unarmed' option 2018-01-19 11:18:51 -02:00
pc-dimm.h pc-dimm: factor out capacity and slot checks into MemoryDevice 2018-05-07 10:00:02 -03:00