aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-balloon.h
AgeCommit message (Collapse)AuthorFilesLines
2008-12-04Add virtio-balloon supportaliguori1-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