[PATCH v2 0/7] Introduce virCommandDoAsyncIO

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

 



Currently, if we want to use IO with asynchronous command we have
to copy code from virFileWrapperFd to misuse our event loop for
reading and writing to the command. However, we can extend our
virCommand implementation to automatically set things up.


All patches but the first has been ACKed already.

diff to v1:
-drop usleep(100) while waiting for the event loop to process our string IOs
and do it ourselves instead.


Michal Privoznik (7):
  virCommand: Introduce virCommandDoAsyncIO
  Introduce event loop to commandtest
  tests: Create test for virCommandDoAsyncIO
  virFileWrapperFd: Switch to new virCommandDoAsyncIO
  qemu: Catch stderr of image decompression binary
  qemu: Catch stderr of image compression binary
  qemu: Destroy domain on decompression binary error

 src/libvirt_private.syms    |   1 +
 src/qemu/qemu_driver.c      |   9 +-
 src/qemu/qemu_migration.c   |   9 +-
 src/util/vircommand.c       | 279 ++++++++++++++++++++++++++++++++++++++++++--
 src/util/vircommand.h       |   1 +
 src/util/virfile.c          |  82 +------------
 tests/commanddata/test3.log |   2 +-
 tests/commandtest.c         | 136 +++++++++++++++++++++
 8 files changed, 430 insertions(+), 89 deletions(-)

-- 
1.8.0.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[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