Since I didn't get negative reactions to the patch I posted yesterday, here's the complete series. It adds a qerror message that mentions the machine is stopped or the guest is slow to respond, so the stats should be assumed to be old.
The error report is sent out before the stats, I don't think we do that for any other command. libvirt should be prepared to handle this. If not, please suggest a better alternative. Differences from v2: - Add a timeout for uncooperative/hung guests - Add an qerror message for letting users/management know of guest stopped status. Amit Shah (3): balloon: Don't try fetching info if guest is unresponsive qerror: Add a new MACHINE_STOPPED error message balloon: Don't try fetching info if machine is stopped balloon.c | 11 +++++++---- balloon.h | 6 ++++-- hw/virtio-balloon.c | 21 +++++++++++++++++++-- qerror.c | 4 ++++ qerror.h | 3 +++ 5 files changed, 37 insertions(+), 8 deletions(-) -- 1.7.2.2