• J
    Add capability to fetch balloon stats · ab600621
    John Ferlan 提交于
    This patch will add the qemuMonitorJSONGetMemoryStats() to execute a
    "guest-stats" on the balloonpath using "get-qom" replacing the former
    mechanism which looked through the "query-ballon" returned data for
    the fields.  The "query-balloon" code only returns 'actual' memory.
    Rather than duplicating the existing code, have the JSON API use the
    GetBalloonInfo API.
    
    A check in the qemuMonitorGetMemoryStats() will be made to ensure the
    balloon driver path has been set.  Since the underlying JSON code can
    return data not associated with the balloon driver, we don't fail on
    a failure to get the balloonpath.  Of course since we've made the check,
    we can then set the ballooninit flag.  Getting the path here is primarily
    due to the process reconnect path which doesn't attempt to set the
    collection period.
    ab600621
qemu_monitor.c 101.0 KB