]> git.ipfire.org Git - thirdparty/libvirt.git/commit
domMemoryStats / qemu: Fix parsing of unknown stats
authorAdam Litke <agl@us.ibm.com>
Thu, 21 Jan 2010 15:26:35 +0000 (16:26 +0100)
committerDaniel Veillard <veillard@redhat.com>
Thu, 21 Jan 2010 15:28:50 +0000 (16:28 +0100)
commit80b4d20dfe9cf9258854d3fa224f0aedf6dfacac
treed77075832db745bef22df3ba1d1b9176d52111ec
parent2dccf5ef07e04ec481a1501932f9c5c6af6d708d
domMemoryStats / qemu: Fix parsing of unknown stats

Fix a small problem with the qemu memory stats parsing algorithm.  If qemu
reports a stat that libvirt does not recognize, skip past it so parsing can
continue.  This corrects a potential infinite loop in the parsing code that can
only be triggered if new statistics are added to qemu.

* src/qemu/qemu_monitor_text.c: qemuMonitorParseExtraBalloonInfo add a
  skip for extra ','
src/qemu/qemu_monitor_text.c