]> git.proxmox.com Git - qemu.git/commit
dataplane: support viostor virtio-pci status bit setting
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 17 Jan 2013 15:46:54 +0000 (16:46 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 18 Jan 2013 15:59:20 +0000 (16:59 +0100)
commitcf139388ad5b39228793f34eea99e0ea9a2924aa
tree1ecd1a445ec24aee7a9d3d013ff4257f7ba2753b
parentcd7fdfe59f4f965665dcd9868fe3764f5256d6aa
dataplane: support viostor virtio-pci status bit setting

The viostor virtio-blk driver for Windows does not use the
VIRTIO_CONFIG_S_DRIVER bit.  It only sets the VIRTIO_CONFIG_S_DRIVER_OK
bit.

The viostor driver refreshes the virtio-pci status byte sometimes while
the guest is running.  We misinterpret 0x4 (VIRTIO_CONFIG_S_DRIVER_OK)
as an indication that virtio-blk-data-plane should be stopped since 0x2
(VIRTIO_CONFIG_S_DRIVER) is missing.  The result is that the device
becomes unresponsive.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/virtio-blk.c