Hi, This series implements an early protoype of a new feature called automatic ballooning. This is based on ideas by Rik van Riel and I also got some help from Rafael Aquini (misconceptions and bugs are all mine, though).
The auto-ballooning feature automatically performs balloon inflate and deflate based on host and guest memory pressure. This can help to avoid swapping or worse in both, host and guest. This series implements the host part. Full details on the design and implementation can be found in patch 3/3. To test this you will also need the guest part, which I'll post shortly. Any feedback is appreciated! Luiz Capitulino (3): virtio-balloon: add guest_get_actual_ram() virtio-balloon: add virtio_balloon_conf skeleton virtio-balloon: add auto-ballooning support hw/virtio-balloon.c | 166 +++++++++++++++++++++++++++++++++++++++++++++++++++- hw/virtio-balloon.h | 8 +++ hw/virtio-pci.c | 7 ++- hw/virtio-pci.h | 2 + hw/virtio.h | 3 +- 5 files changed, 181 insertions(+), 5 deletions(-) -- 1.8.0