]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Implements domainMemStats in the qemu driver
authorAdam Litke <agl@us.ibm.com>
Sun, 20 Dec 2009 12:36:28 +0000 (13:36 +0100)
committerDaniel Veillard <veillard@redhat.com>
Sun, 20 Dec 2009 12:36:28 +0000 (13:36 +0100)
commitc7523b410a69aada53ff5b5be833bbf218ab0c08
tree41c1b0e84cbf2cab7d3a3d084d1fb2d8f199f781
parent4fe975fe4ea15032a7ea65fb467914c2975c0bb9
Implements domainMemStats in the qemu driver

Support for memory statistics reporting is accepted for qemu inclusion.
Statistics are reported via the monitor command 'info balloon' as a comma
seprated list:

(qemu) info balloon
balloon: actual=1024,mem_swapped_in=0,mem_swapped_out=0,major_page_faults=88,minor_page_faults=105535,free_mem=1017065472,total_mem=1045229568

Libvirt, qemu, and the guest operating system may support a subset of the
statistics defined by the virtio spec.  Thus, only statistics recognized by
components will be reported.

* src/qemu/qemu_driver.c src/qemu/qemu_monitor_text.[ch]: implement the
  new entry point by using info balloon monitor command
src/qemu/qemu_driver.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h