[libvirt] [PATCH v4 0/3] qemu: expand domain memory statistics

Derbyshev Dmitriy dderbyshev at virtuozzo.com
Wed Jun 8 13:30:25 UTC 2016


From: Derbyshev Dmitry <dderbyshev at virtuozzo.com>

QEMU reports timestamp and available along with other memory statistics.
This information was not saved into domain statistics.

Also, to collect all balloon statistics for all guests it was necessary to make
several libvirt requests (one per VE).
Last patch allows doing this via qemuConnectGetAllDomainStats in one request.

Changes since v1:
 * Enum numeration fixed
 * Macro getting "usage" field fixed
Changes since v2:
 * previous patches were on wrong branch
 * qemu's stat name was "stat-available-memory"
Changes since v3:
 * 3rd patch added

Derbyshev Dmitry (3):
  qemu: expand domain memory statistics with 'usable'
  qemu: expand domain memory statistics with 'last-update' timestamp
  qemu: return balloon statistics alongside all domain stats

 include/libvirt/libvirt-domain.h | 11 +++++-
 src/libvirt-domain.c             |  5 +++
 src/qemu/qemu_driver.c           | 84 +++++++++++++++++++++++++++++++---------
 src/qemu/qemu_monitor_json.c     | 22 ++++++-----
 tools/virsh-domain-monitor.c     |  4 ++
 5 files changed, 98 insertions(+), 28 deletions(-)

-- 
1.9.5.msysgit.0




More information about the libvir-list mailing list