]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: cleanup code to relece SPICE ports
authorNikolay Shirokovskiy <nshirokovskiy@openvz.org>
Tue, 12 Apr 2022 06:58:11 +0000 (09:58 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@openvz.org>
Wed, 13 Apr 2022 14:45:56 +0000 (17:45 +0300)
commitb66a36e719a2fbdc08f38cdecf6700888f3891cc
tree938719237cf926b933c658938f6db6e12cd21298
parent39d93fd8b077c7090b74c0b1e0fba49f105fc358
qemu: cleanup code to relece SPICE ports

SPICE ports cleanup looks overly complicated. We can just set *reserved
flags whenever port is reserved (auto or non auto).

Also *Reserved flags are not cleared on stop in case of reconnect with
autoport (flags are set on reconnect in qemuProcessGraphicsReservePorts
call). Yeah config is freed in the end of stopping domain but still.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@openvz.org>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c