Re: [Qemu-devel] [PATCH 5/7 V10] mem/nvdimm: ensure write persistence to PMEM in label emulation

2018-07-17 Thread Richard Henderson
On 07/16/2018 11:32 PM, junyan...@gmx.com wrote: > +++ b/stubs/pmem.c > @@ -0,0 +1,19 @@ > +/* > + * Stubs for libpmem. > + * > + * Copyright (c) 2018 Intel Corporation. > + * > + * Author: Haozhong Zhang > + * > + * This work is licensed under the terms of the GNU GPL, version 2 or later. > + *

[Qemu-devel] [PATCH 5/7 V10] mem/nvdimm: ensure write persistence to PMEM in label emulation

2018-07-17 Thread junyan . he
From: Junyan He Guest writes to vNVDIMM labels are intercepted and performed on the backend by QEMU. When the backend is a real persistent memort, QEMU needs to take proper operations to ensure its write persistence on the persistent memory. Otherwise, a host power failure may result in the loss