On Fri, Aug 03, 2018 at 05:32:35PM +0200, Marc-André Lureau wrote: > With vga=775 on the Linux command line a first boot of the VM running > Linux works fine. After a warm reboot it crashes during Linux boot. > > Before that, valgrind points out bad memory write to console > surface. The VGA code is not aware that virtio-gpu got a message > surface scanout when the display is disabled. Let's reset VGA graphic > mode when it is the case, so that a new display surface is created > when doing further VGA operations.
I guess we should simply call vga_common_reset() in virtio_vga_reset() instead, can you try that? thanks, Gerd