[libvirt] [PATCH v3 0/6] Introduce virCommandDoAsyncIO

Michal Privoznik mprivozn at redhat.com
Mon Feb 4 14:56:37 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.


All patches but the first has been ACKed already.

diff to v2:
-even more of Peter's suggestion worked in

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


Michal Privoznik (6):
  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

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

-- 
1.8.0.2




More information about the libvir-list mailing list