From: Anthony Liguori <anthony@codemonkey.ws>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Bruce Rogers <brogers@novell.com>
Subject: Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm
Date: Mon, 03 May 2010 13:24:02 -0500 [thread overview]
Message-ID: <4BDF14C2.1030404@codemonkey.ws> (raw)
In-Reply-To: <4BCD5796.1030502@redhat.com>
On 04/20/2010 02:28 AM, Gerd Hoffmann wrote:
> Hi,
>
>> Not much traffic on this thread ;-)
>
> Indeed ;)
>
>> 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?
>
> Yes, that is the major one. I think it is much saner to just have a
> init_late() and collect everything there instead of creating a new
> hook each time you figure you need one.
>
> I think this also allows to make the ide changes less intrusive as all
> the cmos setup logic stays local to pc.c. pc.c can simply keep a
> pointer to the DeviceState structs of the ide interface(s) created in
> pc_init1(). pc_init_late() then can check which drives are plugged in
> and update cmos accordingly.
I'd personally prefer to see some sort of registration mechanism.
Something notifier based.
Regards,
Anthony Liguori
> cheers,
> Gerd
>
>
>
>
prev parent reply other threads:[~2010-05-03 18:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-13 20:41 [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm Bruce Rogers
2010-04-14 7:24 ` Gerd Hoffmann
2010-04-19 20:04 ` Bruce Rogers
2010-04-20 7:28 ` Gerd Hoffmann
2010-05-03 18:24 ` Anthony Liguori [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BDF14C2.1030404@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=brogers@novell.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).