From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O9yzZ-0006Jv-Qg for qemu-devel@nongnu.org; Thu, 06 May 2010 07:11:45 -0400 Received: from [140.186.70.92] (port=42075 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O9yzY-0006Jn-Ez for qemu-devel@nongnu.org; Thu, 06 May 2010 07:11:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O9yzW-0002vS-VQ for qemu-devel@nongnu.org; Thu, 06 May 2010 07:11:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21222) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O9yzW-0002vG-OC for qemu-devel@nongnu.org; Thu, 06 May 2010 07:11:42 -0400 Message-ID: <4BE2A339.5000108@redhat.com> Date: Thu, 06 May 2010 13:08:41 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] vgabios + qemu: issues and plans. References: <4BE174CD.9030606@redhat.com> <20100506100337.GA12064@valinux.co.jp> In-Reply-To: <20100506100337.GA12064@valinux.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Isaku Yamahata Cc: info@vruppert.de, "qemu-devel@nongnu.org" >> First, I'd like to be able to load the vgabios via PCI ROM bar on all >> pci vga cards (stdvga, vmware, soon qxl). The PCI ID in the bios has to >> match the PCI ID of the card, so we'll need a bunch of vga bios >> binaries, all identical except for the PCI ID. Or we need some kind of >> binary patching. Otherwise seabios will not load them from the PCI ROM >> bar. > > Make vga bios aware of all ids? Would work for the code doing the lfb address lookup. But I don't think the PCI option rom header allows multiple entries. > I also want to eliminate the magic number. > Boch vga bios is paravirtualized to get VBE address dynamically via a new > pci device with special pci device of device id 0x1234. 0x1234 happens to be the vendor id the qemu stdvga has. Probably the same is true for bochs. So this code actually looks up the emulated vga card ;) > Are you meaning to follow bochs way? Yes. cheers, Gerd