[libvirt] [PATCH 0/7] Introduce virCommandDoAsyncIO

Michal Privoznik mprivozn at redhat.com
Wed Jan 23 09:41:26 UTC 2013


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.

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       | 214 ++++++++++++++++++++++++++++++++++++++++++--
 src/util/vircommand.h       |   1 +
 src/util/virfile.c          |  82 +----------------
 tests/commanddata/test3.log |   2 +-
 tests/commandtest.c         | 136 ++++++++++++++++++++++++++++
 8 files changed, 365 insertions(+), 89 deletions(-)

-- 
1.8.0.2




More information about the libvir-list mailing list