From nobody Sat Feb 7 05:53:45 2026
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.25
as permitted sender) client-ip=209.132.183.25;
envelope-from=libvir-list-bounces@redhat.com; helo=mx4-phx2.redhat.com;
Authentication-Results: mx.zoho.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.25 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
Return-Path:
Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by
mx.zohomail.com
with SMTPS id 148820191888019.532365574609912;
Mon, 27 Feb 2017 05:25:18 -0800 (PST)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v1RDLljZ012111;
Mon, 27 Feb 2017 08:21:47 -0500
Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com
[10.5.11.28])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id v1RDJtwn027136 for ;
Mon, 27 Feb 2017 08:19:55 -0500
Received: by smtp.corp.redhat.com (Postfix)
id 50AB5660C0; Mon, 27 Feb 2017 13:19:55 +0000 (UTC)
Received: from lisa.redhat.com (ovpn-116-72.ams2.redhat.com [10.36.116.72])
by smtp.corp.redhat.com (Postfix) with ESMTP id C52D02D655;
Mon, 27 Feb 2017 13:19:54 +0000 (UTC)
From: Michal Privoznik
To: libvir-list@redhat.com
Date: Mon, 27 Feb 2017 14:19:29 +0100
Message-Id:
<9b184feec0beacad731e98972c61f75b93a3de63.1488201118.git.mprivozn@redhat.com>
In-Reply-To:
References:
In-Reply-To:
References:
X-Scanned-By: MIMEDefang 2.74 on 10.5.11.28
X-loop: libvir-list@redhat.com
Subject: [libvirt] [PATCH v2 07/14] qemu: Introduce label-size for NVDIMMs
X-BeenThere: libvir-list@redhat.com
X-Mailman-Version: 2.1.12
Precedence: junk
List-Id: Development discussions about the libvirt library & tools
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Sender: libvir-list-bounces@redhat.com
Errors-To: libvir-list-bounces@redhat.com
X-ZohoMail: RSF_0 Z_629925259 SPT_0
Content-Type: text/plain; charset="utf-8"
For NVDIMM devices it is optionally possible to specify the size
of internal storage for namespaces. Namespaces are a feature that
allows users to partition the NVDIMM for different uses.
Signed-off-by: Michal Privoznik
---
docs/formatdomain.html.in | 9 ++++
docs/schemas/domaincommon.rng | 7 +++
src/conf/domain_conf.c | 19 +++++++
src/conf/domain_conf.h | 1 +
src/qemu/qemu_command.c | 3 ++
.../qemuxml2argv-memory-hotplug-nvdimm-label.args | 26 ++++++++++
.../qemuxml2argv-memory-hotplug-nvdimm-label.xml | 59 ++++++++++++++++++=
++++
tests/qemuxml2argvtest.c | 2 +
.../qemuxml2xmlout-memory-hotplug-nvdimm-label.xml | 1 +
tests/qemuxml2xmltest.c | 1 +
10 files changed, 128 insertions(+)
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memory-hotplug-nvdi=
mm-label.args
create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-memory-hotplug-nvdi=
mm-label.xml
create mode 120000 tests/qemuxml2xmloutdata/qemuxml2xmlout-memory-hotplug-=
nvdimm-label.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 00c0df2ce..4a078b577 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -7038,6 +7038,9 @@ qemu-kvm -net nic,model=3D? /dev/null
<target>
<size unit=3D'KiB'>524288</size>
<node>1</node>
+ <label>
+ <size unit=3D'KiB'>128</size>
+ </label>
</target>
</memory>
</devices>
@@ -7117,6 +7120,12 @@ qemu-kvm -net nic,model=3D? /dev/null
attach the memory to. The element shall be used only if the gues=
t has
NUMA nodes configured.
+
+ For NVDIMM type devices one can optionally use
+ label and its subelement size
+ to configure the size of namespaces label storage
+ within the NVDIMM module.
+