All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Xu <peterx@redhat.com>
To: Avihai Horon <avihaih@nvidia.com>
Cc: qemu-devel@nongnu.org, "Juan Quintela" <quintela@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Leonardo Bras Soares Passos" <lsoaresp@redhat.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	"Daniel P . Berrangé" <berrange@redhat.com>,
	"Eric Blake" <eblake@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Thomas Huth" <thuth@redhat.com>
Subject: Re: [PATCH v5 1/2] migration: switchover-hold parameter
Date: Thu, 6 Jul 2023 09:44:45 -0400	[thread overview]
Message-ID: <ZKbFTfqfXD53w84l@x1n> (raw)
In-Reply-To: <7bdfed14-0c32-901c-612c-3e66a79aa35e@nvidia.com>

On Thu, Jul 06, 2023 at 04:29:22PM +0300, Avihai Horon wrote:
> > diff --git a/migration/migration-hmp-cmds.c b/migration/migration-hmp-cmds.c
> > index 9885d7c9f7..c3b3860f00 100644
> > --- a/migration/migration-hmp-cmds.c
> > +++ b/migration/migration-hmp-cmds.c
> > @@ -338,6 +338,9 @@ void hmp_info_migrate_parameters(Monitor *mon, const QDict *qdict)
> >           monitor_printf(mon, "%s: '%s'\n",
> >               MigrationParameter_str(MIGRATION_PARAMETER_TLS_AUTHZ),
> >               params->tls_authz);
> > +        monitor_printf(mon, "%s: %s\n",
> > +            MigrationParameter_str(MIGRATION_PARAMETER_SWITCHOVER_HOLD),
> > +            params->switchover_hold ? "on" : "off");
> > 
> >           if (params->has_block_bitmap_mapping) {
> >               const BitmapMigrationNodeAliasList *bmnal;
> > @@ -616,6 +619,10 @@ void hmp_migrate_set_parameter(Monitor *mon, const QDict *qdict)
> >           p->has_announce_step = true;
> >           visit_type_size(v, param, &p->announce_step, &err);
> >           break;
> > +    case MIGRATION_PARAMETER_SWITCHOVER_HOLD:
> > +        p->has_switchover_hold = true;
> > +        visit_type_bool(v, param, &p->switchover_hold, &err);
> 
> Should this sem post switchover_hold_sem like in the QMP case?

hmp_migrate_set_parameter() calls qmp_migrate_set_parameters() later, so
it'll be posted there.  Thanks,

-- 
Peter Xu



  reply	other threads:[~2023-07-06 13:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-06 12:43 [PATCH v5 0/2] migration: switchover-hold flag Peter Xu
2023-07-06 12:43 ` [PATCH v5 1/2] migration: switchover-hold parameter Peter Xu
2023-07-06 13:29   ` Avihai Horon
2023-07-06 13:44     ` Peter Xu [this message]
2023-07-06 13:48       ` Avihai Horon
2023-07-06 13:38   ` Markus Armbruster
2023-07-06 13:54     ` Peter Xu
2023-07-06 12:43 ` [PATCH v5 2/2] qtest/migration: Use switchover-hold to speedup Peter Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZKbFTfqfXD53w84l@x1n \
    --to=peterx@redhat.com \
    --cc=armbru@redhat.com \
    --cc=avihaih@nvidia.com \
    --cc=berrange@redhat.com \
    --cc=eblake@redhat.com \
    --cc=lsoaresp@redhat.com \
    --cc=lvivier@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.