mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-04 21:47:16 +03:00
qemu: Introduce NBD_SERVER capability
This just keeps track whether qemu knows nbd-server-* commands so we can use it during migration or not.
This commit is contained in:
parent
383ebc4694
commit
e9a6704f99
@ -205,7 +205,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
||||
"usb-serial", /* 125 */
|
||||
"usb-net",
|
||||
"add-fd",
|
||||
|
||||
"nbd-server",
|
||||
);
|
||||
|
||||
struct _virQEMUCaps {
|
||||
@ -1940,6 +1940,8 @@ virQEMUCapsProbeQMPCommands(virQEMUCapsPtr qemuCaps,
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_DISK_SNAPSHOT);
|
||||
else if (STREQ(name, "add-fd"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_ADD_FD);
|
||||
else if (STREQ(name, "nbd-server-start"))
|
||||
virQEMUCapsSet(qemuCaps, QEMU_CAPS_NBD_SERVER);
|
||||
VIR_FREE(name);
|
||||
}
|
||||
VIR_FREE(commands);
|
||||
|
@ -166,6 +166,7 @@ enum virQEMUCapsFlags {
|
||||
QEMU_CAPS_DEVICE_USB_SERIAL = 125, /* -device usb-serial */
|
||||
QEMU_CAPS_DEVICE_USB_NET = 126, /* -device usb-net */
|
||||
QEMU_CAPS_ADD_FD = 127, /* -add-fd */
|
||||
QEMU_CAPS_NBD_SERVER = 128, /* nbd-server-start QMP command */
|
||||
|
||||
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user