]> git.proxmox.com Git - mirror_qemu.git/commit
pc-dimm: introduce get_vmstate_memory_region callback
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Tue, 7 Jun 2016 12:21:57 +0000 (20:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Jun 2016 02:13:57 +0000 (05:13 +0300)
commit8df1426e44176512be1b6456e90d100d1af907e1
treeb1cda8c0e1e480dcfb145a45630eef716319c31e
parentf4eda2d429ecd85a99008c6c4fc74cf81b2f1498
pc-dimm: introduce get_vmstate_memory_region callback

This callback returns the MemoryRegion that is the memory of dimm should
be kept during live migration

nvdimm device is different with pc-dimm as its memory includes not only
the MemoryRegion directly mapping to guest's address space but also the
memory used as label data

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