Re: [libvirt PATCH 04/80] qemu: Enable migration events only when disabled

2022-05-12 Thread Jiri Denemark
On Wed, May 11, 2022 at 10:37:25 +0200, Peter Krempa wrote: > On Tue, May 10, 2022 at 17:20:25 +0200, Jiri Denemark wrote: > > When connecting to a QEMU monitor, we always try to enable migration > > events, but this is an invalid operation during migration. Thus > > reconnecting to a domain with a

Re: [libvirt PATCH 04/80] qemu: Enable migration events only when disabled

2022-05-11 Thread Jiri Denemark
On Wed, May 11, 2022 at 10:37:25 +0200, Peter Krempa wrote: > On Tue, May 10, 2022 at 17:20:25 +0200, Jiri Denemark wrote: > > When connecting to a QEMU monitor, we always try to enable migration > > events, but this is an invalid operation during migration. Thus > > reconnecting to a domain with a

Re: [libvirt PATCH 04/80] qemu: Enable migration events only when disabled

2022-05-11 Thread Peter Krempa
On Tue, May 10, 2022 at 17:20:25 +0200, Jiri Denemark wrote: > When connecting to a QEMU monitor, we always try to enable migration > events, but this is an invalid operation during migration. Thus > reconnecting to a domain with active migration would fail. Let's check > the state of migration eve

[libvirt PATCH 04/80] qemu: Enable migration events only when disabled

2022-05-10 Thread Jiri Denemark
When connecting to a QEMU monitor, we always try to enable migration events, but this is an invalid operation during migration. Thus reconnecting to a domain with active migration would fail. Let's check the state of migration events capability and only try to enable it when it is disabled. Signed