OSDN Git Service

virtio: set VIRTIO_CONFIG_S_FEATURES_OK on restore
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Dec 2014 11:37:13 +0000 (13:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Dec 2014 18:04:38 +0000 (20:04 +0200)
commit30683a8cce8019aa4314c37e629da5c185017166
treed918ef1f12562036a27e35aa8d189da03f25ae06
parentf01a2a811ae04124fc9382925038fcbbd2f0b7c8
virtio: set VIRTIO_CONFIG_S_FEATURES_OK on restore

virtio 1.0 devices require that drivers set VIRTIO_CONFIG_S_FEATURES_OK
after finalizing features.
virtio core missed doing this on restore, fix it up.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/virtio/virtio.c