Re: [Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter

2017-10-11 Thread Peter Xu
On Tue, Oct 10, 2017 at 08:15:37PM +0200, Juan Quintela wrote: [...] > diff --git a/migration/page_cache.h b/migration/page_cache.h > index 931868b857..4596496416 100644 > --- a/migration/page_cache.h > +++ b/migration/page_cache.h > @@ -24,12 +24,11 @@ typedef struct PageCache PageCache; > * >

[Qemu-devel] [PATCH 05/10] migration: Make cache_init() take an error parameter

2017-10-10 Thread Juan Quintela
Once there, take a total size instead of the size of the pages. We move the check that the new_size is bigger than one page from xbzrle_cache_resize(). Signed-off-by: Juan Quintela --- migration/page_cache.c | 17 +++-- migration/page_cache.h | 7 +++ migration/ram.c| 1