08.06.2016 16:30, Derbyshev Dmitriy пишет:
From: Derbyshev Dmitry <dderbyshev(a)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(-)
Please ignore this version of the series as it had a bug causing libvirt
to crash on simultaneous qemuMonitorSend call.
v5 series is sent.
Maxim