pc-dimm: introduce realize callback
commit9f318f8f7e689b9653b42bac73047f9719a1f34e
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Fri, 20 May 2016 08:19:59 +0000 (20 16:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jun 2016 12:39:28 +0000 (7 15:39 +0300)
tree324165d4e5668389bd2721699a7ce3180a8a8f89
parent3c3e88a814ef4eb8b2f8bf81863baec24838d998
pc-dimm: introduce realize callback

nvdimm needs to  check if the backend memory is large enough to contain
label data and init its memory region when the device is realized, so
introduce realize callback which is called after common dimm has been
realize

Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/mem/pc-dimm.c
include/hw/mem/pc-dimm.h