]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Unify port-wise SPICE and VNC behavior
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 18 Jun 2012 07:58:31 +0000 (09:58 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 21 Aug 2012 09:36:32 +0000 (11:36 +0200)
commita14b4aea512d6c3a42af56207a65ef10ac4a12a1
tree24cac121d94bae4047d02653bed2e06f73f2762f
parentba9c38b430a71ed090e75f21d871fe4d5d51b958
qemu: Unify port-wise SPICE and VNC behavior

Port allocations for SPICE and VNC behave almost the same (with
default ports), but there is some mess in the code. This patch clears
these inconsistencies and makes sure the same behavior will be used
when ports for remote displays are changed.

Changes:
 - hard-coded number 5900 removed (handled elsewhere like with VNC)
 - reservedVNCPorts renamed to reservedRemotePorts (it's not just for
   VNC anymore)
 - QEMU_VNC_PORT_{MIN,MAX} renamed to QEMU_REMOTE_PORT_{MIN,MAX}
 - port allocation unified for VNC and SPICE
src/conf/domain_conf.c
src/qemu/qemu_command.h
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c