Peter Xu <[email protected]> wrote: > Do the same thing to migration capabilities, just like what we did in > previous patch for migration parameters. > > Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Juan Quintela <[email protected]> A pitty that the preprocessor is not able to pass to uppercase ... > +#define DEFINE_PROP_MIG_CAP(name, x) \ > + DEFINE_PROP_BOOL(name, MigrationState, enabled_capabilities[x], false) #define DEFINE_PROP_MIG_CAP(name) \ DEFINE_PROP_BOOL(#name, MigrationState, enabled_capabilities[MIGRATION_CAPABILITY_##name], false)
