Peter Xu <pet...@redhat.com> wrote: > Do the same thing to migration capabilities, just like what we did in > previous patch for migration parameters. > > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com> 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)