[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 03/11] migration: export capabilities to prop
From: |
Peter Xu |
Subject: |
Re: [Qemu-devel] [PATCH v2 03/11] migration: export capabilities to props |
Date: |
Tue, 18 Jul 2017 09:34:03 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Mon, Jul 17, 2017 at 06:58:44PM +0200, Juan Quintela wrote:
> Peter Xu <address@hidden> wrote:
> > Do the same thing to migration capabilities, just like what we did in
> > previous patch for migration parameters.
> >
> > Signed-off-by: Peter Xu <address@hidden>
>
> Reviewed-by: Juan Quintela <address@hidden>
Thanks!
>
>
> 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)
Yes a pity, this is more beautiful (though this may let the grepping
of specific MIGRATION_CAPABILITY_* slightly harder since it breaks the
macro).
--
Peter Xu
- [Qemu-devel] [PATCH v2 00/11] migration: export cap/params to qdev props, Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 01/11] qdev: provide DEFINE_PROP_INT64(), Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 03/11] migration: export capabilities to props, Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 02/11] migration: export parameters to props, Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 04/11] qom: call parent first on post_init(), Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 05/11] migration: introduce migrate_params_check(), Peter Xu, 2017/07/17
- [Qemu-devel] [PATCH v2 06/11] migration: provide migrate_params_apply(), Peter Xu, 2017/07/17