OSDN Git Service

virtio-pci: unbreak queue_enable read
authorJason Wang <jasowang@redhat.com>
Fri, 6 Nov 2015 08:02:49 +0000 (16:02 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2015 13:49:33 +0000 (15:49 +0200)
commit393f04d3ab40d03aa2fde0017ff7f02fc34cbd4e
tree54a2fe90ba17330bba4ffcde2a2a9c4ad7cbbcd3
parent9824d2a39d9893ef9bbe71f94efb57da265b73f6
virtio-pci: unbreak queue_enable read

Guest always get zero when reading queue_enable. This violates
spec. Fixing this by setting the queue_enable to true during any guest
writing and setting it to zero during reset.

Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c