[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:00:03 +0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Mon, Jul 17, 2017 at 02:52:31PM -0300, Eduardo Habkost wrote:
> On Mon, Jul 17, 2017 at 04:26:03PM +0800, Peter Xu 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>
> > ---
> > migration/migration.c | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/migration/migration.c b/migration/migration.c
> > index ad2505c..3208162 100644
> > --- a/migration/migration.c
> > +++ b/migration/migration.c
> > @@ -2001,6 +2001,9 @@ void migration_global_dump(Monitor *mon)
> > ms->send_configuration, ms->send_section_footer);
> > }
> >
> > +#define DEFINE_PROP_MIG_CAP(name, x) \
> > + DEFINE_PROP_BOOL(name, MigrationState, enabled_capabilities[x], false)
> > +
>
> Maybe for the future: have you considered replacing the
> enabled_capabilities array with a uint32_t and using
> DEFINE_PROP_BIT?
Yes, this sounds reasonable. Noted.
>
> Reviewed-by: Eduardo Habkost <address@hidden>
Thanks!
--
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
- [Qemu-devel] [PATCH v2 07/11] migration: check global params for validity, Peter Xu, 2017/07/17