Re: libvirt-6.5.0 breaks host passthrough migration

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

 



On Sat, Jul 11, 2020 at 13:44:19 -0400, Mark Mielke wrote:
> On Sat, Jul 11, 2020 at 6:04 AM Mark Mielke <mark.mielke@xxxxxxxxx> wrote:
> 
> > On Fri, Jul 10, 2020 at 7:48 AM Mark Mielke <mark.mielke@xxxxxxxxx> wrote:
> >
> >> On Fri, Jul 10, 2020 at 7:14 AM Jiri Denemark <jdenemar@xxxxxxxxxx>
> >> wrote:
> >>
> >>> The implementation seems to be doing exactly what the commit message
> >>>
> >> says. The migratable=off default should be used only when QEMU does not
> >>> support -cpu host,migratable=on|off, that is only when QEMU is very old.
> >>> Every non-ancient version of libvirt should have the
> >>> QEMU_CAPS_CPU_MIGRATABLE set and thus this code should choose
> >>> migrateble=on default.
> >>>
> >> QEMU_CAPS_CPU_MIGRATABLE only from the <cpu> element? If so, doesn't this
> >> mean that it is not explicitly listed for host-passthrough, and this means
> >> the check is not detecting whether it is enabled or not properly?
> >>
> > Trying to understand what is going on more - I see "migratable" seems to
> > be ok when launching a new machine, but the failure scenario was live
> > migration from 6.4.0 to 6.5.0.
> >
> > Is this because the QEMU_CAPS_CPU_MIGRATABLE was not filled in for 6.4.0,
> > and live migration grabs the capabilities from the source, where the
> > absence of this capability makes it presume an older Qemu in the above code?
> >
> 
> Sorry all - I am having trouble reproducing now. The expected use cases are
> now working.
> 
> Is it possible that the "migratable" flag might have been missing on some
> of the instances, although migration worked fine, and despite having used
> Qemu 4.2 and Qemu 5.0?

When an updated libvirtd which knows about this new capability starts,
it would reprobe all QEMU capabilities (lazily, i.e., once they are
needed). However, if there is a running domain, libvirt will use cached
capabilities probed when the domain was started. I suspect migrating
such domain could be a problem. I'll try to reproduce locally.

Jirka




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux