summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorHaozhong Zhang2017-12-11 08:28:05 +0100
committerEduardo Habkost2018-01-19 14:18:51 +0100
commitda6789c27c2ea71765cfab04bad9a42b5426f0bd (patch)
tree7478b4a67b5f98c74c330b0c502d5dccb88c87f4 /hw
parenthostmem-file: add "align" option (diff)
downloadqemu-da6789c27c2ea71765cfab04bad9a42b5426f0bd.tar.gz
qemu-da6789c27c2ea71765cfab04bad9a42b5426f0bd.tar.xz
qemu-da6789c27c2ea71765cfab04bad9a42b5426f0bd.zip
nvdimm: add a macro for property "label-size"
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-Id: <20171211072806.2812-3-haozhong.zhang@intel.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/mem/nvdimm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/mem/nvdimm.c b/hw/mem/nvdimm.c
index 952fce5ec8..618c3d677b 100644
--- a/hw/mem/nvdimm.c
+++ b/hw/mem/nvdimm.c
@@ -66,7 +66,7 @@ out:
static void nvdimm_init(Object *obj)
{
- object_property_add(obj, "label-size", "int",
+ object_property_add(obj, NVDIMM_LABLE_SIZE_PROP, "int",
nvdimm_get_label_size, nvdimm_set_label_size, NULL,
NULL, NULL);
}