[libvirt] [PATCH 4/4] qemu_capabilities: Temporarily disable dbus-vmstate capability

Ján Tomko jtomko at redhat.com
Fri Sep 6 15:55:07 UTC 2019


[cc-ing Marc-André]

On Fri, Sep 06, 2019 at 04:25:19PM +0200, Michal Privoznik wrote:
>The qemu side is not merged in yet, so there is a chance that the
>interface will change. Don't detect the capability just yet then.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
> src/qemu/qemu_capabilities.c | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
>index 136999ad0d..7be026ae12 100644
>--- a/src/qemu/qemu_capabilities.c
>+++ b/src/qemu/qemu_capabilities.c
>@@ -1129,7 +1129,6 @@ struct virQEMUCapsStringFlags virQEMUCapsObjectTypes[] = {
>     { "virtio-serial-pci-non-transitional", QEMU_CAPS_VIRTIO_PCI_TRANSITIONAL },
>     { "max-x86_64-cpu", QEMU_CAPS_X86_MAX_CPU },
>     { "bochs-display", QEMU_CAPS_DEVICE_BOCHS_DISPLAY },
>-    { "dbus-vmstate", QEMU_CAPS_DBUS_VMSTATE },
> };
>
> static struct virQEMUCapsStringFlags virQEMUCapsDevicePropsVirtioBalloon[] = {

If
1) dbus-vmstate is required for migration of a domain using a slirp-helper and
2) we enable this automatically for existing XML configs with
  <interface type='user'/> if
  a) QEMU has QEMU_CAPS_NET_SOCKET_DGRAM
  b) the slirp-helper process is installed on the system
then we've effectively made their machines unmigratable

So if we want to enable it automatically, we should add:
c) QEMU has QEMU_CAPS_DBUS_VMSTATE
regardless of whether dbus-vmstate gets merged into QEMU until libvirt's
next release

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190906/ae08292d/attachment-0001.sig>


More information about the libvir-list mailing list