Re: [libvirt] [PATCH] qemuOpenVhostNet: Decrease vhostfdSize on open failure

2013-05-26 Thread Michal Privoznik
On 24.05.2013 16:42, Laine Stump wrote: > On 05/24/2013 08:50 AM, Michal Privoznik wrote: >> Currently, if there's an error opening /dev/vhost-net (e.g. because >> it doesn't exist) but it's not required we proceed with vhostfd array >> filled with -1 and vhostfdSize unchanged. Later, when construc

Re: [libvirt] [PATCH] qemuOpenVhostNet: Decrease vhostfdSize on open failure

2013-05-24 Thread Laine Stump
On 05/24/2013 08:50 AM, Michal Privoznik wrote: > Currently, if there's an error opening /dev/vhost-net (e.g. because > it doesn't exist) but it's not required we proceed with vhostfd array > filled with -1 and vhostfdSize unchanged. Later, when constructing > the qemu command line only non-negativ

[libvirt] [PATCH] qemuOpenVhostNet: Decrease vhostfdSize on open failure

2013-05-24 Thread Michal Privoznik
Currently, if there's an error opening /dev/vhost-net (e.g. because it doesn't exist) but it's not required we proceed with vhostfd array filled with -1 and vhostfdSize unchanged. Later, when constructing the qemu command line only non-negative items within vhostfd array are taken into account. Thi