[PATCH v2 2/2] ui: introduce vfio_display_reset

Gerd Hoffmann kraxel at redhat.com
Wed Apr 25 11:46:31 UTC 2018


>  /* ---------------------------------------------------------------------- */
> +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


More information about the intel-gvt-dev mailing list