pc: implement pc-dimm device abstraction
commit10b7e74bf2de8587a8f9e15f216b87be43d6a7cf
authorVasilis Liaskovitis <vasilis.liaskovitis@profitbricks.com>
Mon, 2 Jun 2014 13:25:05 +0000 (2 15:25 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 13:41:47 +0000 (19 16:41 +0300)
tree85143179888a8fcf71debe0bc4d5511946a3917f
parentd012ffc189197962c8ac179611396f6af92c1860
pc: implement pc-dimm device abstraction

Each hotplug-able memory slot is a PCDIMMDevice.
A hot-add operation for a memory device:
- creates a new PCDIMMDevice and makes hotplug controller to map it into
  guest address space

Hotplug operations are done through normal device_add commands.
For migration case, all hotplugged memory devices on source should be
specified on target's command line using '-device' option with
properties set to the same values as on source.

To simplify review, patch introduces only PCDIMMDevice QOM skeleton that
will be extended by following patches to implement actual memory hotplug
and related functions.

Signed-off-by: Vasilis Liaskovitis <vasilis.liaskovitis@profitbricks.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
default-configs/i386-softmmu.mak
default-configs/x86_64-softmmu.mak
hw/Makefile.objs
hw/mem/Makefile.objs [new file with mode: 0644]
hw/mem/pc-dimm.c [new file with mode: 0644]
include/hw/mem/pc-dimm.h [new file with mode: 0644]