Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1OA5ki-0002dt-8W for qemu-devel@nongnu.org; Thu, 06 May 2010 14:24:52 -0400 Received: from [140.186.70.92] (port=60729 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OA5kb-0002Yg-TU for qemu-devel@nongnu.org; Thu, 06 May 2010 14:24:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OA5ka-00075e-5W for qemu-devel@nongnu.org; Thu, 06 May 2010 14:24:45 -0400 Received: from mail.gmx.net ([213.165.64.20]:40002) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OA5kZ-00075M-MF for qemu-devel@nongnu.org; Thu, 06 May 2010 14:24:44 -0400 Message-ID: <7126C73A8A96421F9E6076C5E2C3566E@FSCPC> From: "Sebastian Herbszt" References: <4BE174CD.9030606@redhat.com><20100506100337.GA12064@valinux.co.jp> <4BE2A339.5000108@redhat.com> In-Reply-To: <4BE2A339.5000108@redhat.com> Date: Thu, 6 May 2010 20:23:42 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: vgabios + qemu: issues and plans. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , Isaku Yamahata Cc: info@vruppert.de, qemu-devel@nongnu.org Gerd Hoffmann wrote: >>> 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. AFAIK it does not, but you can put multiple PCI option roms (concatenated) on the BAR (see "6.3.1. PCI Expansion ROM Contents"). >> 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 ;) Bochs and qemu use 0x1234:0x1111. Sebastian >> Are you meaning to follow bochs way? > > Yes. > > cheers, > Gerd > > > >