From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=34284 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7mer-0001Jv-U9 for qemu-devel@nongnu.org; Mon, 18 Oct 2010 06:09:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7mep-0004cF-Gv for qemu-devel@nongnu.org; Mon, 18 Oct 2010 06:09:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:13131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7mep-0004c4-A4 for qemu-devel@nongnu.org; Mon, 18 Oct 2010 06:09:31 -0400 Message-ID: <4CBC1CD3.1040904@redhat.com> Date: Mon, 18 Oct 2010 12:09:23 +0200 From: Gerd Hoffmann MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 1/2] pci: Automatically patch PCI device id in PCI ROM References: <1287175867-7757-1-git-send-email-weil@mail.berlios.de> <4CB8C20A.70706@codemonkey.ws> In-Reply-To: <4CB8C20A.70706@codemonkey.ws> 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: Anthony Liguori Cc: Kevin Wolf , "Michael S. Tsirkin" , seabios@seabios.org, QEMU Developers , Markus Armbruster On 10/15/10 23:05, Anthony Liguori wrote: > On 10/15/2010 03:51 PM, Stefan Weil wrote: >> PCI device with different device ids sometimes share >> the same rom code. Only the device id and the checksum >> differ in a boot rom for such devices. > > BTW, SeaBIOS doesn't reject ROMs when they're loaded via rombar, only > when they're loaded via romfile. SeaBIOS rejects them when loaded from the rom bar and doesn't reject them when loaded via fw_cfg. Using the rom bar is the prefered way though, fw_cfg is only there for compatibility with older versions. > Maybe it's better to use fw_cfg to explicitly tell SeaBIOS to ignore the > PCI device id in the rom header for a certain device? Patching the rom is fine IMHO. Why create + use a separate communication path when we can use a much simpler approach? cheers, Gerd