diff options
| author | Jason Wang | 2020-06-10 07:43:51 +0200 |
|---|---|---|
| committer | Michael S. Tsirkin | 2020-06-12 16:17:06 +0200 |
| commit | 10d35e581901c09ee3817ac7cddd296d05291a9d (patch) | |
| tree | 932e18385ea035b978b33709f1023e9604255ff5 /include | |
| parent | pci: Display PCI IRQ pin in "info pci" (diff) | |
| download | qemu-10d35e581901c09ee3817ac7cddd296d05291a9d.tar.gz qemu-10d35e581901c09ee3817ac7cddd296d05291a9d.tar.xz qemu-10d35e581901c09ee3817ac7cddd296d05291a9d.zip | |
virtio-pci: fix queue_enable write
Spec said: The driver uses this to selectively prevent the device from
executing requests from this virtqueue. 1 - enabled; 0 - disabled.
Though write 0 to queue_enable is forbidden by the spec, we should not
assume that the value is 1.
Fix this by ignore the write value other than 1.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20200610054351.15811-1-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
