[PATCH 2/2] ui: introduce vfio_display_reset
Gerd Hoffmann
kraxel at redhat.com
Tue Apr 24 08:16:15 UTC 2018
Hi,
> After reviewing this patch-set again, I think we might not need the
> proposed dpy_gfx_switch_surface() any more. The reason I proposed it
> was because I thought gfx.ds is changed to the surface related to
> guest dma-buf framebuffer and we need to switch it with QemuConsole's
> DisplaySurgface during reset. But after reviewing the code,
> vc->gfx.ds is always pointing to the valid QemuConsoles'
> DisplaySurface. So we don’t need dpy_gfx_switch_surface() to take care
> of it.
Good, this is what I expected.
> > Maybe you just need a full display update after disabling the gl
> > scanout?
> Do you still think updating full display is needed?
It certainly isn't required, gtk wouldn't access the dma-buf any more
after scanout_disable().
Without display update the last guest display may remain visible until
the guest reloads the driver though. With display update the gtk ui
should show the (blank) DisplaySurface instead. So it is more
cosmetical.
cheers,
Gerd
More information about the intel-gvt-dev
mailing list