vesa: flush lfb after zeroing
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 28 Jan 2012 13:42:25 +0000 (13:42 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 28 Jan 2012 13:42:25 +0000 (13:42 +0000)
commit68e1fbf3db5ed49b05214064a5516154ca0bf842
tree934adad4fb125fe822103a0c95917e7324c69728
parent2ccae182ee2513d7e132fde0523206c40c159d56
vesa: flush lfb after zeroing

If Xen is going to relinquish the VGA console, flush the linear frame
buffer after zeroing it in vesa_endboot().

Failing to do so in some circumstances leads to the actual linear
framebuffer on the graphics card still containing the output of the
Xen boot console can lead to ugly graphics output when dom0 is setting
up the graphics card for its own use.

While the patch is quite large, it is mostly just code motion to
prevent having to forward declare lfb_flush().  The only functional
change to vesa_endboot() is to insert a call to lbf_flush().

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/drivers/video/vesa.c