qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option
Date: Wed, 13 Dec 2017 11:15:39 +0000
User-agent: Mutt/1.9.1 (2017-09-22)

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 <address@hidden>
> ---
>  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 <address@hidden>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]