From nobody Mon Feb 9 18:43:40 2026
Delivered-To: importer@patchew.org
Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28
as permitted sender) client-ip=209.132.183.28;
envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com;
Authentication-Results: mx.zohomail.com;
spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as
permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com;
dmarc=fail(p=none dis=none) header.from=intel.com
Return-Path:
Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by
mx.zohomail.com
with SMTPS id 1545297309801713.6751378937396;
Thu, 20 Dec 2018 01:15:09 -0800 (PST)
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com
[10.5.11.22])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id C438676540;
Thu, 20 Dec 2018 09:15:06 +0000 (UTC)
Received: from colo-mx.corp.redhat.com
(colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20])
by smtp.corp.redhat.com (Postfix) with ESMTPS id 853881019624;
Thu, 20 Dec 2018 09:15:06 +0000 (UTC)
Received: from lists01.pubmisc.prod.ext.phx2.redhat.com
(lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33])
by colo-mx.corp.redhat.com (Postfix) with ESMTP id 19DCE181A968;
Thu, 20 Dec 2018 09:15:06 +0000 (UTC)
Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com
[10.5.11.23])
by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP
id wBK9EfFJ030332 for ;
Thu, 20 Dec 2018 04:14:41 -0500
Received: by smtp.corp.redhat.com (Postfix)
id B666028DE7; Thu, 20 Dec 2018 09:14:41 +0000 (UTC)
Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com
[10.5.110.30])
by smtp.corp.redhat.com (Postfix) with ESMTPS id AE32028D3B
for ; Thu, 20 Dec 2018 09:14:41 +0000 (UTC)
Received: from mga03.intel.com (mga03.intel.com [134.134.136.65])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(No client certificate requested)
by mx1.redhat.com (Postfix) with ESMTPS id A328C2D7F3
for ; Thu, 20 Dec 2018 09:14:40 +0000 (UTC)
Received: from fmsmga001.fm.intel.com ([10.253.24.23])
by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;
20 Dec 2018 01:14:40 -0800
Received: from zly-optiplex-9020.bj.intel.com ([10.238.135.151])
by fmsmga001.fm.intel.com with ESMTP; 20 Dec 2018 01:14:39 -0800
X-Amp-Result: SKIPPED(no attachment in message)
X-Amp-File-Uploaded: False
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.56,376,1539673200"; d="scan'208";a="131518387"
From: Luyao Zhong
To: libvir-list@redhat.com
Date: Thu, 20 Dec 2018 17:14:41 +0800
Message-Id: <1545297290-25463-3-git-send-email-luyao.zhong@intel.com>
In-Reply-To: <1545297290-25463-1-git-send-email-luyao.zhong@intel.com>
References: <1545297290-25463-1-git-send-email-luyao.zhong@intel.com>
X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 216
matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.30]); Thu, 20 Dec 2018 09:14:40 +0000 (UTC)
X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com
[10.5.110.30]);
Thu, 20 Dec 2018 09:14:40 +0000 (UTC) for IP:'134.134.136.65'
DOMAIN:'mga03.intel.com' HELO:'mga03.intel.com'
FROM:'luyao.zhong@intel.com' RCPT:''
X-RedHat-Spam-Score: -5.001 (RCVD_IN_DNSWL_HI,
SPF_PASS) 134.134.136.65 mga03.intel.com 134.134.136.65
mga03.intel.com
X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30
X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23
X-loop: libvir-list@redhat.com
Subject: [libvirt] [PATCH v5 02/11] nvdimm: introduce 'pmem' element into
xml for NVDIMM memory
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-Scanned-By: MIMEDefang 2.84 on 10.5.11.22
X-Greylist: Sender IP whitelisted,
not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]);
Thu, 20 Dec 2018 09:15:07 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
The 'pmem' option allows users to specify whether the backend
storage of memory-backend-file is a real persistent memory:
...
/dev/dax0.040940
...
Signed-off-by: Luyao Zhong
Reviewed-by: John Ferlan
---
docs/formatdomain.html.in | 12 +++++
docs/schemas/domaincommon.rng | 5 ++
src/conf/domain_conf.c | 13 +++++
src/conf/domain_conf.h | 1 +
.../memory-hotplug-nvdimm-pmem.xml | 58 ++++++++++++++++++=
++++
.../memory-hotplug-nvdimm-pmem.xml | 1 +
tests/qemuxml2xmltest.c | 1 +
7 files changed, 91 insertions(+)
create mode 100644 tests/qemuxml2argvdata/memory-hotplug-nvdimm-pmem.xml
create mode 120000 tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-pmem.xml
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 515e656..0781f24 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8323,6 +8323,7 @@ qemu-kvm -net nic,model=3D? /dev/null
<source>
<path>/tmp/nvdimm</path>
<alignsize unit=3D'KiB'>2048</alignsize>
+ <pmem/>
</source>
<target>
<size unit=3D'KiB'>524288</size>
@@ -8423,6 +8424,17 @@ qemu-kvm -net nic,model=3D? /dev/null
Since 5.0.0
+
+
pmem
+
+
+ This element can be used to specify whether the backend stor=
age
+ of memory-backend-file is a real persistent memory. If the
+ backend is a real persistence memory and pmem i=
s set,
+ QEMU will guarantee the persistence of its own writes to the
+ vNVDIMM backend. Since 5.0.0
+