Peter Xu <pet...@redhat.com> wrote: > Add a new cap to allow mapping hugetlbfs backed RAMs in small page sizes. > > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com> > +bool migrate_hugetlb_doublemap(void) > +{ > + MigrationState *s = migrate_get_current(); > + > + return s->enabled_capabilities[MIGRATION_CAPABILITY_HUGETLB_DOUBLEMAP]; > +} I think it was not our finest moment when we decided to name the functions that query capabilities without a verb, but well, everything else uses "this" convention, so ....