]> git.proxmox.com Git - qemu.git/commit - hw/virtio.c
virtio: verify features on load
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 8 Dec 2009 18:07:48 +0000 (20:07 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sat, 12 Dec 2009 13:59:38 +0000 (07:59 -0600)
commit6d74ca5aa83b83fb52332f7735c61ecb7a5328c1
tree6ea05e57ca0165275eda7e6d57cecd5fd52757b6
parentb3c3f123f785fb861d930080f083507b51f5ce79
virtio: verify features on load

migrating between hosts which have different features
might break silently, if the migration destination
does not support some features supported by source.

Prevent this from happening by comparing acked feature
bits with the mask supported by the device.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/syborg_virtio.c
hw/virtio-pci.c
hw/virtio.c
hw/virtio.h