Received: from [140.186.70.92] (port=48929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oq4Qx-0001JS-Ix for qemu-devel@nongnu.org; Mon, 30 Aug 2010 09:30:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oq4Qw-0004UU-9z for qemu-devel@nongnu.org; Mon, 30 Aug 2010 09:29:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16502) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq4Qw-0004UL-1j for qemu-devel@nongnu.org; Mon, 30 Aug 2010 09:29:58 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] Re: [PATCH v3] Do not try loading option ROM for hotplug PCI device in pc-0.11 compat mode References: <1283156160-4278-1-git-send-email-Jes.Sorensen@redhat.com> <4C7BAB85.10604@codemonkey.ws> Date: Mon, 30 Aug 2010 15:29:54 +0200 In-Reply-To: <4C7BAB85.10604@codemonkey.ws> (Anthony Liguori's message of "Mon, 30 Aug 2010 08:00:53 -0500") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Jes.Sorensen@redhat.com, qemu-devel@nongnu.org Anthony Liguori writes: > On 08/30/2010 03:16 AM, Jes.Sorensen@redhat.com wrote: >> From: Jes Sorensen >> >> pc-0.11 and older uses fw_cfg to provide option ROMs. As fw_cfg is setup >> at init time, it is not possible to load an option ROM for a hotplug >> device when running in compat mode. >> >> v2: Alex Williamson pointed out that one can get to qdev directly from >> pci_dev, so no need to pass it down. >> >> v3: Braces >> > > What's the specific bug? The devices themselves have a check for > hotplug which inhibits rom addition during hotplug so either there's a > device missing this check or if we're going to go this route, we ought > to remove those checks in the other devices. Quoting my reply to v1[*]: Example: $ qemu -M pc-0.11 -S -monitor stdio QEMU 0.12.50 monitor - type 'help' for more information (qemu) device_add e1000 qemu: hardware error: ROM images must be loaded at startup [...] Aborted (core dumped) The fix silently omits the option ROM when we can't load it. Works for me. [*] http://lists.nongnu.org/archive/html/qemu-devel/2010-07/msg01397.html