[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 2/2] ui: introduce vfio_display_reset
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v2 2/2] ui: introduce vfio_display_reset |
Date: |
Wed, 25 Apr 2018 13:46:31 +0200 |
User-agent: |
NeoMutt/20180323 |
> /* ---------------------------------------------------------------------- */
> +void vfio_display_reset(VFIOPCIDevice *vdev)
> +{
> + if (!vdev || !vdev->dpy || !vdev->dpy->con) {
> + return;
> + }
> +
> + dpy_gl_scanout_disable(vdev->dpy->con);
This should not be called with a region-based vfio display.
Please add a check.
Otherwise looks fine to me.
cheers,
Gerd