Add vfio display reset handling

Submitted by Gerd Hoffmann on April 23, 2018, 8:14 a.m.

Details

Reviewer None
Submitted April 23, 2018, 8:14 a.m.
Last Updated April 25, 2018, 8:07 a.m.
Revision 3

Cover Letter(s)

Revision 1
      vfio display needs to release the invalid display resource and disable
the scanout mode during guest OS reboot, otherwise bugs come out.

Thanks hang.yuan@intel.com for helping root cause the issue.

Tina Zhang (2):
  console: introduce dpy_gfx_switch_surface
  ui: introduce vfio_display_reset

 hw/vfio/display.c    | 20 ++++++++++++++++++++
 hw/vfio/pci.c        |  4 ++++
 hw/vfio/pci.h        |  1 +
 include/ui/console.h |  2 ++
 ui/console.c         | 16 ++++++++++++++++
 5 files changed, 43 insertions(+)
    
Revision 3
      vfio display needs to release the invalid display resource and disable
the scanout mode during guest OS reboot, otherwise bugs come out.

Thanks hang.yuan@intel.com for helping root cause the issue.

v1->v2:
 - remove dpy_gfx_switch_surface. (Gerd)
 - add dpy_gfx_update_full. (Gerd)

Tina Zhang (2):
  console: introduce dpy_gfx_update_full
  ui: introduce vfio_display_reset

 hw/vfio/display.c    | 10 ++++++++++
 hw/vfio/pci.c        |  4 ++++
 hw/vfio/pci.h        |  1 +
 include/ui/console.h |  1 +
 ui/console.c         | 10 ++++++++++
 5 files changed, 26 insertions(+)
    

Revisions