[libvirt] [PATCHv3 0/3] Report an error in virPortAllocatorAcquire if all ports are used

Ján Tomko jtomko at redhat.com
Wed Nov 13 17:01:39 UTC 2013


v1: Properly check the return value of virPortAllocatorAcquire
https://www.redhat.com/archives/libvir-list/2013-October/msg01239.html

v2: Moves the error reporting inside virPortAllocatorAcquire
https://www.redhat.com/archives/libvir-list/2013-October/msg01289.html

v3: Make the names translatable. Split out double-release of port
on error path when allocating SPICE TLS ports.

Ján Tomko (3):
  Don't release spice port twice when no TLS port is available
  Add a name to virPortAllocator
  Return -1 in virPortAllocatorAcquire if all ports are used

 src/libxl/libxl_conf.c       |  5 -----
 src/libxl/libxl_driver.c     |  3 ++-
 src/qemu/qemu_driver.c       |  9 ++++++---
 src/qemu/qemu_migration.c    | 16 ++--------------
 src/qemu/qemu_process.c      | 12 ------------
 src/util/virportallocator.c  | 16 +++++++++++++---
 src/util/virportallocator.h  |  3 ++-
 tests/virportallocatortest.c | 10 ++++------
 8 files changed, 29 insertions(+), 45 deletions(-)

-- 
1.8.3.2




More information about the libvir-list mailing list