qemu: Get memory balloon info correctly for text monitor
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 13 lines · Daniel P. Berrange
Quoted 12 lines · Adam Litke
Quoted 10 lines · Osier Yang
Quoted 6 lines · Osier Yang
*
src/qemu/qemu_monitor_text.c:BALLOON_PREFIXwas defined as "balloon: actual=", which cause "actual=" is stripped early before the real parsing. This patch changesBALLOON_PREFIXinto "balloon: ", and modifies related functions, also renames "qemuMonitorParseExtraBalloonInfo" to "qemuMonitorParseBalloonInfo", as after the changing, it parses all the info returned by "info balloon".Forgot to mention the problem, e.g. "virsh dommemstat $domain" returns empty result.
Quoted 6 lines
Quoted 2 lines
That is because qemu has disabled stats reporting and so the extra fields are not present in the info balloon response.
I'd completely forgotten about this problem. We really should try to get this fixed & renabled in QEMU sometime in the not too distant future.
I agree. The problem is that qemu lacks a proper interface for asynchronous commands so an unresponsive guest could freeze the monitor.
QMP is undergoing a significant overhaul as a result of the new QAPI
framework. It is my understanding that this new framework will provide a robust async interface, allowing us to re-enable balloon stats.
Signature · 2 lines
Adam Litke IBM Linux Technology Center