[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] set vidmode in linux kernel header when boot x8
From: |
Mark McLoughlin |
Subject: |
Re: [Qemu-devel] [PATCH] set vidmode in linux kernel header when boot x86 using qemu bootloader |
Date: |
Tue, 26 May 2009 15:26:48 +0100 |
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.