aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-10-14 10:40:29 +1030
committerRusty Russell <rusty@rustcorp.com.au>2014-10-15 10:24:53 +1030
commit6fbc198cf623944ab60a1db6d306a4d55cdd820d (patch)
treef0e9102dc35317a14829f0109ef999bc65379cd8 /include/linux/virtio.h
parentMerge branch 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs (diff)
downloadlinux-dev-6fbc198cf623944ab60a1db6d306a4d55cdd820d.tar.xz
linux-dev-6fbc198cf623944ab60a1db6d306a4d55cdd820d.zip
virtio_pci: fix virtio spec compliance on restore
On restore, virtio pci does the following: + set features + init vqs etc - device can be used at this point! + set ACKNOWLEDGE,DRIVER and DRIVER_OK status bits This is in violation of the virtio spec, which requires the following order: - ACKNOWLEDGE - DRIVER - init vqs - DRIVER_OK This behaviour will break with hypervisors that assume spec compliant behaviour. It seems like a good idea to have this patch applied to stable branches to reduce the support butden for the hypervisors. Cc: stable@vger.kernel.org Cc: Amit Shah <amit.shah@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'include/linux/virtio.h')
0 files changed, 0 insertions, 0 deletions