]> git.proxmox.com Git - qemu.git/commit
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 14:17:28 +0000 (08:17 -0600)
commit5e0c45584215c4ade73d8285da701ca445232286
treeda963aacc34571381459a537a4f398cc3eb39fd0
parent4d687b13cf3dd6c1247bc723a2c50b66d470e19d
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>
(cherry picked from commit 6d74ca5aa83b83fb52332f7735c61ecb7a5328c1)
hw/syborg_virtio.c
hw/virtio-pci.c
hw/virtio.c
hw/virtio.h