qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -dev


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v2] Write cmos hd data for ide drives using -device parm
Date: Wed, 14 Apr 2010 09:24:10 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc12 Thunderbird/3.0.4

  Hi,

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.

Hmm.

With -device and thus alot of device setup happening after QEMUMachine->init() I think it would be very useful to have QEMUMachine->init_late(). There are a bunch of machine specific jobs which need to be done after all devices have been plugged into the machine.

Setting up cmos is one of them.

i440fx_init_memory_mappings() could be moved there, which would allow to add vga cards via -device.

And I'm pretty sure there are more use cases.  fw_cfg maybe?

Comments?

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]