[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 3/7 V10] configure: add libpmem support
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 3/7 V10] configure: add libpmem support |
Date: |
Tue, 17 Jul 2018 09:05:02 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 07/16/2018 11:32 PM, 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.
>
> Libpem is a part of PMDK project(formerly known as NMVL).
> The project's home page is: http://pmem.io/pmdk/
> And the project's repository is: https://github.com/pmem/pmdk/
>
> For more information about libpmem APIs, you can refer to the comments
> in source code of: pmdk/src/libpmem/pmem.c, begin at line 33.
>
> Signed-off-by: Junyan He <address@hidden>
> Signed-off-by: Haozhong Zhang <address@hidden>
> Reviewed-by: Stefan Hajnoczi <address@hidden>
> Reviewed-by: Igor Mammedov <address@hidden>
> ---
> configure | 29 +++++++++++++++++++++++++++++
> 1 file changed, 29 insertions(+)
Reviewed-by: Richard Henderson <address@hidden>
r~
- [Qemu-devel] [PATCH 0/7 V10] nvdimm: guarantee persistence of QEMU writes to persistent memory, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 1/7 V10] memory, exec: Expose all memory block related flags., junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 3/7 V10] configure: add libpmem support, junyan . he, 2018/07/17
- Re: [Qemu-devel] [PATCH 3/7 V10] configure: add libpmem support,
Richard Henderson <=
- [Qemu-devel] [PATCH 2/7 V10] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 4/7 V10] hostmem-file: add the 'pmem' option, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 5/7 V10] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 6/7 V10] migration/ram: Add check and info message to nvdimm post copy., junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 7/7 V10] migration/ram: ensure write persistence on loading all data to PMEM., junyan . he, 2018/07/17