From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8xcL-0007Ni-2v for qemu-devel@nongnu.org; Tue, 26 May 2009 10:27:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8xcG-0007M6-Dg for qemu-devel@nongnu.org; Tue, 26 May 2009 10:27:00 -0400 Received: from [199.232.76.173] (port=55990 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8xcF-0007Lq-Se for qemu-devel@nongnu.org; Tue, 26 May 2009 10:26:55 -0400 Received: from mx2.redhat.com ([66.187.237.31]:60843) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8xcE-0003hr-I3 for qemu-devel@nongnu.org; Tue, 26 May 2009 10:26:55 -0400 Subject: Re: [Qemu-devel] [PATCH] set vidmode in linux kernel header when boot x86 using qemu bootloader From: Mark McLoughlin In-Reply-To: <162800e10905260322r39594e35y4fd7f7afb52ef29@mail.gmail.com> References: <162800e10905260322r39594e35y4fd7f7afb52ef29@mail.gmail.com> Content-Type: text/plain Date: Tue, 26 May 2009 15:26:48 +0100 Message-Id: <1243348008.19124.23.camel@blaa> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Reply-To: Mark McLoughlin List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: joy zhao Cc: qemu-devel@nongnu.org On Tue, 2009-05-26 at 18:22 +0800, joy zhao wrote: > hi, > I made a patch to have qemu parse vga field in kernel command line and > set the vid_mode field of real-mode kernel header. > This patch is necessary because vga is one of the special command line > options that should be parsed in bootloader, as in linux kernel > Documentation/x86/i386/boot.txt. After bootloader write the passed vga > value into the vid_mode field of linux real-mode kernel header, this > vid_mode will be handled by linux/x86/boot/video.c in linux kernel to > select vesa graphics mode, and only in this mode can vesafb be > registered(in vesafb_probe()). > So, if we decide to launch linux directly from qemu command line as > "qemu -kernel ... -initrd... -append "..." ", (use qemu bootloader) > and use vesafb as framebuffer driver, this patch to qemu is required, > otherwise, the screen should just blank since the vesafb fails to > register itself. FWIW, I agree we do need this - see also: https://bugzilla.redhat.com/501935 qemu-kvm -kernel should parse "vga=" cmdline option Cheers, Mark.