[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>
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH for-2.12 v4 0/3] nvdimm: fixes for (non-)dax backends, Haozhong Zhang, 2017/12/11
- [Qemu-devel] [PATCH v4 2/3] nvdimm: add a macro for property "label-size", Haozhong Zhang, 2017/12/11
- [Qemu-devel] [PATCH v4 1/3] hostmem-file: add "align" option, Haozhong Zhang, 2017/12/11
- [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option, Haozhong Zhang, 2017/12/11
- Re: [Qemu-devel] [PATCH v4 3/3] nvdimm: add 'unarmed' option,
Stefan Hajnoczi <=
- Re: [Qemu-devel] [PATCH for-2.12 v4 0/3] nvdimm: fixes for (non-)dax backends, Stefan Hajnoczi, 2017/12/13
- Re: [Qemu-devel] [PATCH for-2.12 v4 0/3] nvdimm: fixes for (non-)dax backends, Michael S. Tsirkin, 2017/12/20