]> xenbits.xensource.com Git - libvirt.git/commit
qemu_process: mark auto-generated spice ports as reserved
authorPavel Hrdina <phrdina@redhat.com>
Thu, 18 Feb 2016 17:27:13 +0000 (18:27 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 22 Feb 2016 13:34:45 +0000 (14:34 +0100)
commit85a687c6b2498cfb08b88bcf766ed3ce35ff3c9d
tree3accc9ca147f2b7a4f8b1518974ac830cd3adfdf
parent457ff97fa2ed269bccf1a53e9664dfd84bb7f439
qemu_process: mark auto-generated spice ports as reserved

In case you will specify graphics like this:

<graphics type='spice' port='-1'/>

or

<graphics type='spice' port='-1' tlsPort='6000'/>

libvirt will automatically add autoport='no'.  This leads to an issue
that in qemuProcessStop() we don't release that port because we are
releasing both port if autoport=yes or only port marked as reserved.

If autoport=no but we request to generate port via '-1' we need to mark
that port as reserved in order to release it.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1299696

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_process.c