Peter Xu <[email protected]> wrote: > Add a new cap to allow mapping hugetlbfs backed RAMs in small page sizes. > > Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Juan Quintela <[email protected]> > +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 ....
