OSDN Git Service

virtio-gpu: clear command and fence queues on reset
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 14 Mar 2019 11:53:58 +0000 (12:53 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 18 Mar 2019 12:10:57 +0000 (13:10 +0100)
commitdc84ed5b57cc6d06955e2f49ade9dca277e92cd4
tree4806c917a8516c4e41a2ae7aa0863aff25e8488d
parent9032e3d71c9950e48a204dd15b8d2e24254ffd7c
virtio-gpu: clear command and fence queues on reset

It was never correct to not clear them.  Due to commit "3912e66a3feb
virtio-vga: fix reset." this became more obvious though.  The virtio
rings get properly reset now, and trying to process the stale commands
will trigger an assert in the virtio core.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20190314115358.26678-3-kraxel@redhat.com
hw/display/virtio-gpu.c