nvdimm: support nvdimm label
commitd6fb213a628c66b391d0ce704982bab7c14e559b
authorXiao Guangrong <guangrong.xiao@linux.intel.com>
Tue, 7 Jun 2016 12:21:58 +0000 (7 20:21 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 24 Jun 2016 02:13:57 +0000 (24 05:13 +0300)
treeaa1c93a9173eee43fe102238fb5d31be5807d1b4
parent8df1426e44176512be1b6456e90d100d1af907e1
nvdimm: support nvdimm label

Introduce a parameter, 'label-size', which is the size of nvdimm label
data area which is reserved at the end of backend memory. It is required
at least 128k

Two callbacks, read_label_data() and write_label_data(), are used to
operate the label area

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
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/nvdimm.c
include/hw/mem/nvdimm.h