qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Eduardo Habkost <ehabkost@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: Marcel Apfelbaum <marcel@redhat.com>,
	Haozhong Zhang <haozhong.zhang@intel.com>
Subject: [Qemu-devel] [PULL v2 16/19] nvdimm: add a macro for property "label-size"
Date: Fri, 19 Jan 2018 14:33:42 -0200	[thread overview]
Message-ID: <20180119163345.10649-17-ehabkost@redhat.com> (raw)
In-Reply-To: <20180119163345.10649-1-ehabkost@redhat.com>

From: Haozhong Zhang <haozhong.zhang@intel.com>

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>
---
 include/hw/mem/nvdimm.h | 3 +++
 hw/mem/nvdimm.c         | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/hw/mem/nvdimm.h b/include/hw/mem/nvdimm.h
index 03e1ff9558..28e68ddf59 100644
--- a/include/hw/mem/nvdimm.h
+++ b/include/hw/mem/nvdimm.h
@@ -47,6 +47,9 @@
 #define NVDIMM_CLASS(oc) OBJECT_CLASS_CHECK(NVDIMMClass, (oc), TYPE_NVDIMM)
 #define NVDIMM_GET_CLASS(obj) OBJECT_GET_CLASS(NVDIMMClass, (obj), \
                                                TYPE_NVDIMM)
+
+#define NVDIMM_LABLE_SIZE_PROP "label-size"
+
 struct NVDIMMDevice {
     /* private */
     PCDIMMDevice parent_obj;
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);
 }
-- 
2.14.3

  parent reply	other threads:[~2018-01-19 16:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19 16:33 [Qemu-devel] [PULL v2 00/19] machine queue, 2018-01-19 Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 01/19] memfd: split qemu_memfd_alloc() Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 02/19] memfd: remove needless include Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 03/19] qemu-options: document missing memory-backend-file options Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 04/19] qemu-options: document memory-backend-ram Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 05/19] numa: fix missing '-numa cpu' in '-help' output Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 06/19] machine: Replace has_dynamic_sysbus with list of allowed devices Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 07/19] hw/arm/virt: Allow only supported dynamic sysbus devices Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 08/19] ppc: e500: " Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 09/19] spapr: " Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 10/19] xen: Add only xen-sysdev to dynamic sysbus device list Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 11/19] q35: Allow only supported dynamic sysbus devices Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 12/19] qdev_monitor: Simplify error handling in qdev_device_add() Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 13/19] qdev: Check for the availability of a hotplug controller before adding a device Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 14/19] scripts: Remove fixed entries from the device-crash-test Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 15/19] hostmem-file: add "align" option Eduardo Habkost
2018-01-19 16:33 ` Eduardo Habkost [this message]
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 17/19] nvdimm: add 'unarmed' option Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 18/19] possible_cpus: add CPUArchId::type field Eduardo Habkost
2018-01-19 16:33 ` [Qemu-devel] [PULL v2 19/19] fw_cfg: fix memory corruption when all fw_cfg slots are used Eduardo Habkost
2018-01-19 18:07 ` [Qemu-devel] [PULL v2 00/19] machine queue, 2018-01-19 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180119163345.10649-17-ehabkost@redhat.com \
    --to=ehabkost@redhat.com \
    --cc=haozhong.zhang@intel.com \
    --cc=marcel@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).