qemu-patch-raspberry4/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
..
Makefile.objs pc-dimm: factor out MemoryDevice interface 2018-05-07 10:00:02 -03:00
memory-device.c pc-dimm: factor out capacity and slot checks into MemoryDevice 2018-05-07 10:00:02 -03:00
nvdimm.c Include less of the generated modular QAPI headers 2018-03-02 13:45:50 -06:00
pc-dimm.c pc-dimm: factor out capacity and slot checks into MemoryDevice 2018-05-07 10:00:02 -03:00
trace-events docs: fix broken paths to docs/devel/tracing.txt 2017-07-31 13:12:53 +03:00