From ad0c93328dcb7a0ad68a68d0f66ea1949ebaaa2d Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Thu, 24 Nov 2011 13:28:52 +0100 Subject: virtio: add and use virtio_set_features vdev->guest_features is not masking features that are not supported by the guest. Fix this by introducing a common wrapper to be used by all virtio bus implementations. Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- hw/virtio.h | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/virtio.h') diff --git a/hw/virtio.h b/hw/virtio.h index 2d18209fb2..25f55647b4 100644 --- a/hw/virtio.h +++ b/hw/virtio.h @@ -185,6 +185,7 @@ void virtio_queue_set_vector(VirtIODevice *vdev, int n, uint16_t vector); void virtio_set_status(VirtIODevice *vdev, uint8_t val); void virtio_reset(void *opaque); void virtio_update_irq(VirtIODevice *vdev); +int virtio_set_features(VirtIODevice *vdev, uint32_t val); void virtio_bind_device(VirtIODevice *vdev, const VirtIOBindings *binding, void *opaque); -- cgit 1.4.1