summaryrefslogtreecommitdiffstats
path: root/hw/virtio-balloon.h
Commit message (Collapse)AuthorAgeFilesLines
* virtio: Add memory statistics reporting to the balloon driverAdam Litke2010-01-261-0/+15
| | | | | | | | | | | | | | | | 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>
* Virtio-balloon qdev conversionPaul Brook2009-05-141-2/+0
| | | | Signed-off-by: Paul Brook <paul@codesourcery.com>
* Add virtio-balloon supportaliguori2008-12-041-0/+42
This adds a VirtIO based balloon driver. It uses madvise() to actually balloon the memory when possible. Until 2.6.27, KVM forced memory pinning so we must disable ballooning unless the kernel actually supports it when using KVM. It's always safe when using TCG. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5874 c046a42c-6fe2-441c-8c8c-71466251a162
OpenPOWER on IntegriCloud