[libvirt PATCH 0/3] Introudce virCommandPassFDIndex

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simplify passing file descriptors via add-fd by adding a new
parameter to virCommandPassFD that returns the index of the passed
FD right away, removing the need to look it up later and pretend
to handle errors which cannot happen - we've just put the file
descriptor there, why would it not be there?

This should also silence Coverity - in that regard it's an alternative
to Pavel's patch:
https://www.redhat.com/archives/libvir-list/2020-November/msg00885.html

Ján Tomko (3):
  util: introduce virCommandPassFDIndex
  qemu: introduce qemuBuildFDSet
  qemu: use qemuVirCommandGetDevSet less

 src/libvirt_private.syms |  1 +
 src/qemu/qemu_command.c  | 38 +++++++++++++++++++++++++-------------
 src/util/vircommand.c    | 28 ++++++++++++++++++++++++++--
 src/util/vircommand.h    |  5 +++++
 4 files changed, 57 insertions(+), 15 deletions(-)

-- 
2.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux