> /* -- */
> +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
During guest OS reboot, guest framebuffer is invalid. It will cause
bugs, if the invalid guest framebuffer is still used by host.
This patch is to introduce vfio_display_reset which is invoked
during vfio display reset. This vfio_display_reset function is used
to release the invalid display resour