[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support |
Date: |
Tue, 5 Jun 2018 12:41:48 +0100 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
On Fri, Jun 01, 2018 at 04:10:26PM +0800, address@hidden wrote:
> From: Junyan He <address@hidden>
>
> Add a pair of configure options --{enable,disable}-libpmem to control
> whether QEMU is compiled with PMDK libpmem [1].
>
> QEMU may write to the host persistent memory (e.g. in vNVDIMM label
> emulation and live migration), so it must take the proper operations
> to ensure the persistence of its own writes. Depending on the CPU
> models and available instructions, the optimal operation can vary [2].
> PMDK libpmem have already implemented those operations on multiple CPU
> models (x86 and ARM) and the logic to select the optimal ones, so QEMU
> can just use libpmem rather than re-implement them.
>
> [1] PMDK (formerly known as NMVL), https://github.com/pmem/pmdk/
> [2]
> https://github.com/pmem/pmdk/blob/38bfa652721a37fd94c0130ce0e3f5d8baa3ed40/src/libpmem/pmem.c#L33
>
> Signed-off-by: Junyan He <address@hidden>
> Signed-off-by: Haozhong Zhang <address@hidden>
> ---
> configure | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 1/7] memory, exec: Expose all memory block related flags., junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 2/7] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 3/7] hostmem-file: add the 'pmem' option, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support, junyan . he, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH V6 5/7] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 6/7] migration/ram: Add check and info message to nvdimm post copy., junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 7/7] migration/ram: ensure write persistence on loading all data to PMEM., junyan . he, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, no-reply, 2018/06/01
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, no-reply, 2018/06/01