Statistics
| Branch: | Revision:

root / hw / virtio-balloon.c @ bf4f74c0

History | View | Annotate | Download (4.9 kB)

# Date Author Comment
9b32d5a5 12/11/2008 11:20 pm aliguori

pci: virtio: use pci id defines (Gerd Hoffman)

Use the defines added by the previous patch in the virtio drivers.
Also remove the pointless vendor and device args from the
virtio_blk_init() function.

Signed-off-by: Gerd Hoffmann <>
Signed-off-by: Anthony Liguori <>...

bd322087 12/04/2008 10:33 pm aliguori

Add virtio-balloon support

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....