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

[libvirt] [PATCH v2 0/7] Introduce virCommandDoAsyncIO

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(-)


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