Re: [Qemu-devel] [PATCH v2 2/2] ui: introduce vfio_display_reset

2018-04-25 Thread Gerd Hoffmann
> /* -- */ > +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

[Qemu-devel] [PATCH v2 2/2] ui: introduce vfio_display_reset

2018-04-25 Thread Tina Zhang
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