virtio-gpu: tweak scanout disable.
commitda566a18a7799e5a655cd9f87e222b672cc93e7b
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 2 Jul 2018 16:24:41 +0000 (2 18:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Jul 2018 09:19:39 +0000 (3 11:19 +0200)
tree50fab3853df2fc83700cd41257c03b19f064561d
parentab08440a4ee09032d1a9cb22fdcab23bc7e1c656
virtio-gpu: tweak scanout disable.

- Factor out the code to virtio_gpu_disable_scanout().
- Allow disable scanout 0, show a message then.
- Clear scanout->resource_id.

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