Il 22/10/2013 04:25, Lei Li ha scritto: > Add migrate_unix_page_flipping() to check if > MIGRATION_CAPABILITY_UNIX_PAGE_FLIPPING is enabled. > > Signed-off-by: Lei Li <li...@linux.vnet.ibm.com> > --- > include/migration/migration.h | 3 +++ > migration.c | 9 +++++++++ > 2 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/include/migration/migration.h b/include/migration/migration.h > index 140e6b4..7e5d01a 100644 > --- a/include/migration/migration.h > +++ b/include/migration/migration.h > @@ -131,10 +131,13 @@ void migrate_add_blocker(Error *reason); > void migrate_del_blocker(Error *reason); > > bool migrate_rdma_pin_all(void); > + > bool migrate_zero_blocks(void); > > bool migrate_auto_converge(void); > > +bool migrate_unix_page_flipping(void); > + > int xbzrle_encode_buffer(uint8_t *old_buf, uint8_t *new_buf, int slen, > uint8_t *dst, int dlen); > int xbzrle_decode_buffer(uint8_t *src, int slen, uint8_t *dst, int dlen); > diff --git a/migration.c b/migration.c > index 2b1ab20..4ac466b 100644 > --- a/migration.c > +++ b/migration.c > @@ -541,6 +541,15 @@ int64_t migrate_xbzrle_cache_size(void) > return s->xbzrle_cache_size; > } > > +bool migrate_unix_page_flipping(void) > +{ > + MigrationState *s; > + > + s = migrate_get_current(); > + > + return s->enabled_capabilities[MIGRATION_CAPABILITY_UNIX_PAGE_FLIPPING]; > +} > + > /* migration thread support */ > > static void *migration_thread(void *opaque) >
Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>