]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio: make virtio_delete_queue idempotent
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 9 Dec 2019 16:47:24 +0000 (11:47 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 12 May 2020 14:27:04 +0000 (09:27 -0500)
commita843731d7f09ca102833a06adaf358abb524a86b
tree858b0dd9658a280e2c9fbd7bb2bf47de660053aa
parentd5a5d43e27308df63f4c7be4ec988c969ac45d1d
virtio: make virtio_delete_queue idempotent

Let's make sure calling this twice is harmless -
no known instances, but seems safer.

Suggested-by: Pan Nengyuan <pannengyuan@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit 8cd353ea0fbf0e334e015d833f612799be642296)
*prereq for 421afd2fe8
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/virtio/virtio.c