]> git.proxmox.com Git - mirror_qemu.git/commit - vl.c
virtio: Add memory statistics reporting to the balloon driver
authorAdam Litke <agl@us.ibm.com>
Tue, 26 Jan 2010 20:17:35 +0000 (14:17 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 23:08:03 +0000 (17:08 -0600)
commit625a5befc2e3200b396594f002218d235e375da5
tree89b9362c879d319b5061424035e3dbead9555e70
parent940cc30d0d456781adcc48bf9f8c5582026d7983
virtio: Add memory statistics reporting to the balloon driver

When using ballooning to manage overcommitted memory on a host, a system for
guests to communicate their memory usage to the host can provide information
that will minimize the impact of ballooning on the guests.  The current method
employs a daemon running in each guest that communicates memory statistics to a
host daemon at a specified time interval.  The host daemon aggregates this
information and inflates and/or deflates balloons according to the level of
host memory pressure.  This approach is effective but overly complex since a
daemon must be installed inside each guest and coordinated to communicate with
the host.  A simpler approach is to collect memory statistics in the virtio
balloon driver and communicate them directly to the hypervisor.

Signed-off-by: Adam Litke <agl@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
balloon.h
hw/virtio-balloon.c
hw/virtio-balloon.h
monitor.c
qemu-monitor.hx
vl.c