[libvirt] [PATCH v2 00/12] more progress towards backing chain allocation stats
Eric Blake
eblake at redhat.com
Tue Dec 16 08:07:00 UTC 2014
> v1 was here:
> https://www.redhat.com/archives/libvir-list/2014-December/msg00370.html
>
> ACKed patches from that series have been pushed. In this series,
> 3, 4, and 6 are new, and others try to address some of the feedback
> and deal with rebased design decisions that resulted. I still don't
> have things reporting quite as nicely as I would like (it turns out
> that we HAVE to stat() a file for an online domain to learn its
> allocation, and that for block devices, we HAVE to open()/lseek() to
> learn its physical size; meanwhile, I still want to fix
> virDomainGetBlockInfo to avoid read()ing a file while qemu is
> active by reusing the code that getStats uses). But I'm posting
> another round now, to hopefully get early patches ACKed and into
> the tree, and to demonstrate that I now have recursive stat
> collection for an active domain relying solely on qemu rather than
> read()ing the backing files directly.
Oh, and patches are also available at
git fetch git://repo.or.cz/libvirt/ericb.git getstats
or browsed at:
http://repo.or.cz/w/libvirt/ericb.git/tree/refs/heads/getstats
>
> Eric Blake (12):
> qemu: refactor blockinfo job handling
> qemu: let blockinfo reuse virStorageSource
> getstats: prepare monitor collection for recursion
> getstats: perform recursion in monitor collection
> getstats: rearrange blockinfo gathering
> qemu: fix bugs in blockstats
> qemu: refactor blockinfo data gathering
> getstats: report block sizes for offline domains
> getstats: prepare for dynamic block.count stat
> getstats: add new flag for block backing chain
> getstats: split block stats reporting for easier recursion
> getstats: start crawling backing chain for qemu
>
> include/libvirt/libvirt-domain.h | 24 +-
> src/libvirt-domain.c | 7 +-
> src/qemu/qemu_domain.c | 19 ++
> src/qemu/qemu_domain.h | 1 +
> src/qemu/qemu_driver.c | 477
> ++++++++++++++++++++++++---------------
> src/qemu/qemu_migration.c | 3 +-
> src/qemu/qemu_monitor.c | 24 +-
> src/qemu/qemu_monitor.h | 6 +-
> src/qemu/qemu_monitor_json.c | 291 ++++++++++++++----------
> src/qemu/qemu_monitor_json.h | 6 +-
> src/util/virstoragefile.c | 3 +-
> src/util/virstoragefile.h | 3 +-
> tools/virsh-domain-monitor.c | 7 +
> tools/virsh.pod | 8 +-
> 14 files changed, 558 insertions(+), 321 deletions(-)
>
> --
> 1.9.3
>
> --
> libvir-list mailing list
> libvir-list at redhat.com
> https://www.redhat.com/mailman/listinfo/libvir-list
>
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
More information about the libvir-list
mailing list