]> git.proxmox.com Git - mirror_qemu.git/commit
virtio: update queue size on guest write
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 13 Dec 2019 14:22:48 +0000 (09:22 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 5 Jan 2020 12:03:03 +0000 (07:03 -0500)
commitd0c5f643383b9e84316f148affff368ac33d75b9
treeb6141c3ecf9268ed7903212705d32f2821b1c762
parent8fdee7118defeb34441d860047e3e0cfd9da9c26
virtio: update queue size on guest write

Some guests read back queue size after writing it.
Update the size immediatly upon write otherwise
they get confused.

In particular this is the case for seabios.

Reported-by: Roman Kagan <rkagan@virtuozzo.com>
Suggested-by: Denis Plotnikov <dplotnikov@virtuozzo.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-pci.c