Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3xDG-0005KX-TU for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:04:58 -0400 Received: from [140.186.70.92] (port=41615 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3xDF-0005HZ-Hz for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:04:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3xDD-0007or-OW for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:04:57 -0400 Received: from sinclair.provo.novell.com ([137.65.248.137]:48640) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3xDD-0007oH-84 for qemu-devel@nongnu.org; Mon, 19 Apr 2010 16:04:55 -0400 Message-Id: <4BCC63030200004800093962@sinclair.provo.novell.com> Date: Mon, 19 Apr 2010 14:04:51 -0600 From: "Bruce Rogers" Subject: Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm References: <4BC482850200004800092E82@sinclair.provo.novell.com> <4BC56D9A.7010606@redhat.com> In-Reply-To: <4BC56D9A.7010606@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org >>> On 4/14/2010 at 01:24 AM, Gerd Hoffmann = wrote:=20 > Hi, >=20 >> When specifying ide devices using -device, the cmos information >> which the bios depends on is not written. This patch generalizes >> the cmos hd data setting for the existing code path and adds the >> ability to call that code on a per machine, per ide drive basis. >=20 > Hmm. >=20 > With -device and thus alot of device setup happening after=20 > QEMUMachine->init() I think it would be very useful to have=20 > QEMUMachine->init_late(). There are a bunch of machine specific jobs=20 > which need to be done after all devices have been plugged into the = machine. >=20 > Setting up cmos is one of them. >=20 > i440fx_init_memory_mappings() could be moved there, which would allow = to=20 > add vga cards via -device. >=20 > And I'm pretty sure there are more use cases. fw_cfg maybe? >=20 > Comments? >=20 > cheers, > Gerd Not much traffic on this thread ;-) I can see the usefulness of an init_late() to generalize post device setup = issues. I assume then that you didn't have any other issues with my patch, other = than general code structure concerns? Bruce