]> xenbits.xensource.com Git - seabios.git/commitdiff
Running vgabios during resume from S3 on QEMU by default
authorGleb Natapov <gleb@redhat.com>
Mon, 13 Feb 2012 11:01:07 +0000 (13:01 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 18 Feb 2012 15:30:32 +0000 (10:30 -0500)
Run vgabios during resume from S3 by default on QEMU. QEMU
still able to modify SeaBIOS behavior if it wishes so by providing
etc/s3-resume-vga-init file. With QEMU emulated vga cards this behaviour
is desirable otherwise console becomes unusable with Linux guests after
resume. Since we control vgabios source we can be sure that running it
on resume from S3 is safe.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
src/optionroms.c

index 27cfffd82a79e0e8e72b29f58949d4f8ed67c0a9..06db1c1b91b3c13bdb8f2aafe4f74360ebd8f820 100644 (file)
@@ -423,7 +423,7 @@ vga_setup(void)
 
     // Load some config settings that impact VGA.
     EnforceChecksum = romfile_loadint("etc/optionroms-checksum", 1);
-    S3ResumeVgaInit = romfile_loadint("etc/s3-resume-vga-init", 0);
+    S3ResumeVgaInit = romfile_loadint("etc/s3-resume-vga-init", !CONFIG_COREBOOT);
     ScreenAndDebug = romfile_loadint("etc/screen-and-debug", 1);
 
     if (CONFIG_OPTIONROMS_DEPLOYED) {