]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: remove duplicated code for allocating spice ports
authorPavel Hrdina <phrdina@redhat.com>
Fri, 27 Feb 2015 13:28:53 +0000 (14:28 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 3 Mar 2015 10:41:46 +0000 (11:41 +0100)
commite4983952b4373f6a741245629b03ff25ad220d35
treea9d260d2a0e70a3cb8e55764e2cd40f2c66813d5
parent8672a1e496db76c9a209a5e27c39a5000494c5f7
qemu: remove duplicated code for allocating spice ports

We have two different places that needs to be updated while touching
code for allocation spice ports.  Add a bool option to
'qemuProcessSPICEAllocatePorts' function to switch between true and fake
allocation so we can use this function also in qemu_driver to generate
native domain definition.

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