On Wed, Sep 03, 2025 at 12:00:11PM +0000, Dr. David Alan Gilbert wrote:
> So I wonder what libvirt uses to trigger it starting the destination in
> the postcopy case? It's got to be after the device state has loaded.
qmp_cont() supports the "autostart" variable:
if (runstate_check(RUN_STATE_INMIGRATE)) {
autostart = 1;
} else {
That's since commit 1e9981465f ("qmp: handle stop/cont in INMIGRATE
state"). The commit message also mentioned libvirt used to use a loop
somehow.. and I'm surprised to know it wasn't trying to fix the libvirt
problem but something else..
That makes sense, as any delay on cont would be accounted as downtime (even
if trivially), if only executed after loading complete event.
--
Peter Xu