Skip to content
Snippets Groups Projects
  • Dongwon Kim's avatar
    0d0be876
    virtio-gpu: replace the surface with null surface when resetting · 0d0be876
    Dongwon Kim authored
    
    The primary guest scanout shows the booting screen right after reboot
    but additional guest displays (i.e. max_ouptuts > 1) will keep displaying
    the old frames until the guest virtio gpu driver gets initialized, which
    could cause some confusion. A better way is to to replace the surface with
    a place holder that tells the display is not active during the reset of
    virtio-gpu device.
    
    And to immediately update the surface with the place holder image after
    the switch, displaychangelistener_gfx_switch needs to be called with
    'update == TRUE' in dpy_gfx_replace_surface when the new surface is NULL.
    
    Cc: Gerd Hoffmann <kraxel@redhat.com>
    Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
    Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
    Signed-off-by: default avatarDongwon Kim <dongwon.kim@intel.com>
    Acked-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-ID: <20230627224451.11739-1-dongwon.kim@intel.com>
    0d0be876
    History
    virtio-gpu: replace the surface with null surface when resetting
    Dongwon Kim authored
    
    The primary guest scanout shows the booting screen right after reboot
    but additional guest displays (i.e. max_ouptuts > 1) will keep displaying
    the old frames until the guest virtio gpu driver gets initialized, which
    could cause some confusion. A better way is to to replace the surface with
    a place holder that tells the display is not active during the reset of
    virtio-gpu device.
    
    And to immediately update the surface with the place holder image after
    the switch, displaychangelistener_gfx_switch needs to be called with
    'update == TRUE' in dpy_gfx_replace_surface when the new surface is NULL.
    
    Cc: Gerd Hoffmann <kraxel@redhat.com>
    Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
    Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
    Signed-off-by: default avatarDongwon Kim <dongwon.kim@intel.com>
    Acked-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-ID: <20230627224451.11739-1-dongwon.kim@intel.com>