From: Stefan Hajnoczi <stefanha@gmail.com>
To: Haozhong Zhang <haozhong.zhang@intel.com>
Cc: qemu-devel@nongnu.org, mst@redhat.com, ehabkost@redhat.com,
Xiao Guangrong <guangrong.xiao@gmail.com>,
Dan Williams <dan.j.williams@intel.com>,
Xiao Guangrong <xiaoguangrong.eric@gmail.com>,
Igor Mammedov <imammedo@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option
Date: Wed, 13 Dec 2017 11:15:39 +0000 [thread overview]
Message-ID: <20171213111539.GI16782@stefanha-x1.localdomain> (raw)
In-Reply-To: <20171211072806.2812-4-haozhong.zhang@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]
On Mon, Dec 11, 2017 at 03:28:06PM +0800, Haozhong Zhang wrote:
> Currently the only vNVDIMM backend can guarantee the guest write
> persistence is device DAX on Linux, because no host-side kernel cache
> is involved in the guest access to it. The approach to detect whether
> the backend is device DAX needs to access sysfs, which may not work
> with SELinux.
>
> Instead, we add the 'unarmed' option to device 'nvdimm', so that users
> or management utils, which have enough knowledge about the backend,
> can control the unarmed flag in guest ACPI NFIT via this option. The
> guest Linux NVDIMM driver, for example, will mark the corresponding
> vNVDIMM device read-only if the unarmed flag in guest NFIT is set.
>
> The default value of 'unarmed' option is 'off' in order to keep the
> backwards compatibility.
>
> Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
> ---
> docs/nvdimm.txt | 15 +++++++++++++++
> hw/acpi/nvdimm.c | 7 +++++++
> hw/mem/nvdimm.c | 26 ++++++++++++++++++++++++++
> include/hw/mem/nvdimm.h | 9 +++++++++
> 4 files changed, 57 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]
next prev parent reply other threads:[~2017-12-13 11:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-11 7:28 [Qemu-devel] [PATCH for-2.12 v4 0/3] nvdimm: fixes for (non-)dax backends Haozhong Zhang
2017-12-11 7:28 ` [Qemu-devel] [PATCH v4 1/3] hostmem-file: add "align" option Haozhong Zhang
2017-12-13 11:14 ` Stefan Hajnoczi
2017-12-11 7:28 ` [Qemu-devel] [PATCH v4 2/3] nvdimm: add a macro for property "label-size" Haozhong Zhang
2017-12-11 7:28 ` [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option Haozhong Zhang
2017-12-13 11:15 ` Stefan Hajnoczi [this message]
2017-12-13 11:16 ` [Qemu-devel] [PATCH for-2.12 v4 0/3] nvdimm: fixes for (non-)dax backends Stefan Hajnoczi
2017-12-20 17:28 ` Michael S. Tsirkin
2018-01-09 20:10 ` Eduardo Habkost
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=20171213111539.GI16782@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=dan.j.williams@intel.com \
--cc=ehabkost@redhat.com \
--cc=guangrong.xiao@gmail.com \
--cc=haozhong.zhang@intel.com \
--cc=imammedo@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=xiaoguangrong.eric@gmail.com \
/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).