mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
spice: detect if qemu can disable file transfer
spice-server offers an API to disable file transfer messages on the agent channel between the client and the guest. This is supported in qemu through the disable-agent-file-xfer option. This patch detects if QEMU supports this option, and add a capability if does. Signed-off-by: Francesco Romani <fromani@redhat.com>
This commit is contained in:
parent
5ce90b3f2d
commit
19bbc81276
@ -247,6 +247,7 @@ VIR_ENUM_IMPL(virQEMUCaps, QEMU_CAPS_LAST,
|
|||||||
"boot-strict", /* 160 */
|
"boot-strict", /* 160 */
|
||||||
"pvpanic",
|
"pvpanic",
|
||||||
"enable-fips",
|
"enable-fips",
|
||||||
|
"spice-file-xfer-disable"
|
||||||
);
|
);
|
||||||
|
|
||||||
struct _virQEMUCaps {
|
struct _virQEMUCaps {
|
||||||
@ -2286,6 +2287,7 @@ static struct virQEMUCapsCommandLineProps virQEMUCapsCommandLine[] = {
|
|||||||
{ "realtime", "mlock", QEMU_CAPS_MLOCK },
|
{ "realtime", "mlock", QEMU_CAPS_MLOCK },
|
||||||
{ "boot-opts", "strict", QEMU_CAPS_BOOT_STRICT },
|
{ "boot-opts", "strict", QEMU_CAPS_BOOT_STRICT },
|
||||||
{ "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
|
{ "boot-opts", "reboot-timeout", QEMU_CAPS_REBOOT_TIMEOUT },
|
||||||
|
{ "spice", "disable-agent-file-xfer", QEMU_CAPS_SPICE_FILE_XFER_DISABLE },
|
||||||
};
|
};
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
@ -201,6 +201,7 @@ enum virQEMUCapsFlags {
|
|||||||
QEMU_CAPS_BOOT_STRICT = 160, /* -boot strict */
|
QEMU_CAPS_BOOT_STRICT = 160, /* -boot strict */
|
||||||
QEMU_CAPS_DEVICE_PANIC = 161, /* -device pvpanic */
|
QEMU_CAPS_DEVICE_PANIC = 161, /* -device pvpanic */
|
||||||
QEMU_CAPS_ENABLE_FIPS = 162, /* -enable-fips */
|
QEMU_CAPS_ENABLE_FIPS = 162, /* -enable-fips */
|
||||||
|
QEMU_CAPS_SPICE_FILE_XFER_DISABLE = 163, /* -spice disable-agent-file-xfer */
|
||||||
|
|
||||||
QEMU_CAPS_LAST, /* this must always be the last item */
|
QEMU_CAPS_LAST, /* this must always be the last item */
|
||||||
};
|
};
|
||||||
|
@ -139,4 +139,5 @@
|
|||||||
<flag name='pvpanic'/>
|
<flag name='pvpanic'/>
|
||||||
<flag name='reboot-timeout'/>
|
<flag name='reboot-timeout'/>
|
||||||
<flag name='enable-fips'/>
|
<flag name='enable-fips'/>
|
||||||
|
<flag name='spice-file-xfer-disable'/>
|
||||||
</qemuCaps>
|
</qemuCaps>
|
||||||
|
@ -137,4 +137,5 @@
|
|||||||
<flag name='boot-strict'/>
|
<flag name='boot-strict'/>
|
||||||
<flag name='pvpanic'/>
|
<flag name='pvpanic'/>
|
||||||
<flag name='reboot-timeout'/>
|
<flag name='reboot-timeout'/>
|
||||||
|
<flag name='spice-file-xfer-disable'/>
|
||||||
</qemuCaps>
|
</qemuCaps>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user