[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V6 7/7] migration/ram: ensure write persistence
From: |
Dr. David Alan Gilbert |
Subject: |
Re: [Qemu-devel] [PATCH V6 7/7] migration/ram: ensure write persistence on loading all data to PMEM. |
Date: |
Thu, 7 Jun 2018 11:42:23 +0100 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
* Stefan Hajnoczi (address@hidden) wrote:
> On Fri, Jun 01, 2018 at 04:10:29PM +0800, address@hidden wrote:
> > diff --git a/migration/ram.c b/migration/ram.c
> > index aa0c6f0..09525b2 100644
> > --- a/migration/ram.c
> > +++ b/migration/ram.c
> > @@ -33,6 +33,7 @@
> > #include "qemu/bitops.h"
> > #include "qemu/bitmap.h"
> > #include "qemu/main-loop.h"
> > +#include "qemu/pmem.h"
> > #include "xbzrle.h"
> > #include "ram.h"
> > #include "migration.h"
> > @@ -3046,6 +3047,13 @@ static int ram_load_setup(QEMUFile *f, void *opaque)
> > static int ram_load_cleanup(void *opaque)
> > {
> > RAMBlock *rb;
> > +
> > + RAMBLOCK_FOREACH(rb) {
> > + if (ramblock_is_pmem(rb)) {
> > + pmem_persist(rb->host, rb->used_length);
> > + }
>
> Indentation is off. This can be fixed by the maintainer who merges
> these patches.
>
> Reviewed-by: Stefan Hajnoczi <address@hidden>
The other thing that needs a fixup for is RAMBLOCK_FOREACH_MIGRATABLE
that recently got merged.
Dave
--
Dr. David Alan Gilbert / address@hidden / Manchester, UK
- Re: [Qemu-devel] [PATCH V6 3/7] hostmem-file: add the 'pmem' option, (continued)
- [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support, junyan . he, 2018/06/01
- [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
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, Igor Mammedov, 2018/06/12
- Re: [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, Eduardo Habkost, 2018/06/13