OSDN Git Service

virtio-vga: fix reset.
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 7 Mar 2019 08:02:43 +0000 (09:02 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Mar 2019 07:04:12 +0000 (08:04 +0100)
commit3912e66a3febdea3b89150f923ca9be3f02f7ae3
tree07ab33cac152d00748f9400b2ff64169507b794a
parent8ea90ee690eb78bbe6644cae3a7eff857f8b4569
virtio-vga: fix reset.

Store reset handler of the parent class and just call that for a
complete virtio reset.  When taking the shortcut and calling
virtio_gpu_reset() directly the generic virtio reset code (for
virtqueues etc) will not be executed.

Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1597621
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 20190307080244.9011-3-kraxel@redhat.com
hw/display/virtio-vga.c