qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] multifd: Updated QAPI format for 'migrate' qemu monitor comm


From: Daniel P . Berrangé
Subject: Re: [PATCH] multifd: Updated QAPI format for 'migrate' qemu monitor command
Date: Tue, 22 Nov 2022 17:03:17 +0000
User-agent: Mutt/2.2.7 (2022-08-07)

On Tue, Nov 22, 2022 at 09:27:52PM +0530, manish.mishra wrote:
> 
> On 22/11/22 2:53 pm, Daniel P. Berrangé wrote:
> > For our future sanity I think we need to define a brand new migration
> > protocol which is bidirectional from the start. A large number of the
> > MigrateParameters would become obsolete immediately, as QEMU could
> > negotiate them automatically. This would let QEMU introduce new
> > migration features without requiring any work in libvirt in many
> > cases. Libvirt should only be required when there are performance
> > tunables that need exposing, never for protocol feature negotiation.
> > 
> > I think introducing a new QMP command, without introducing a fully
> > new protocol would be a big mistake as the QMP command is not the
> > problem we have.
> > 
> 
> Daniel, Totally agree on above mentioned discussion. Does this
> account for verifying other things too along with migration
> capabilities e.g. if qemu machine type, vm config or cpu
> features are excatly same of both side. Currently libvirt
> takes that responsibility, but as you mentioned libvirt may
> take some time to get to level where qemu is so causing
> potential issues till then. Similar to this discussion we
> had on libvirt list 
> https://www.mail-archive.com/libvir-list@redhat.com/msg233725.html.
> If these things too were managed by qemu indepenedelty
> things could have been much better. I mean those too are
> kind of related to live migration. :)

Today libvirt has no choice, because if there's an ABI compat
mistake in the dest QEMU config, vs the src QEMU config, then
when loading VMstate on the target, the dst QEMU will often be
unable to de-serialize the migration device stream and end
up printing an error on stderr and exiting. Getting that info
back to the src QEMU is impossible.

If QEMU had a bi-directional migration stream, then the dst
QEMU could simply send an error message back to the src QEMU
and 'query-migrate' could actually display this.

There may still be validation libvirt wants to do as well,
but at least there would be the possiblity of offloading
to QEMU without sacrificing error reporting.

With regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]