Extend virtio config routines to support ballooning
commiteb253f32577b24e9a584ec3465f4d78a9cee45ba
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 28 Aug 2008 22:54:33 +0000 (28 17:54 -0500)
committerAvi Kivity <avi@qumranet.com>
Fri, 29 Aug 2008 11:27:25 +0000 (29 14:27 +0300)
tree235e884421ef4e08dca426c3c6d75bbf57e2f515
parentfd73d497de8cd6fddebb8c38fc7494dcdc3e38f6
Extend virtio config routines to support ballooning

This patch updates the virtio device methods to provide hooks for setting and
getting the config.  This is needed for ballooning since the balloon driver
uses config changes to signal changes in the balloon amount.  We also add a
method to signal that we have changed the config.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
hw/virtio-blk.c
hw/virtio-net.c
hw/virtio.c
hw/virtio.h