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)
commitf856d0e54b2d251dab8904e30e5dfa1c1dc6e89d
tree6ea05e57ca0165275eda7e6d57cecd5fd52757b6
parent848a767182790fde86fdb6876fe6b10d4d86e0dc
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