qemu/hw/ide
Markus Armbruster c0897e0cb9 pc: Fix CMOS info for drives defined with -device
Drives defined with -drive if=ide get get created along with the IDE
controller, inside machine->init().  That's before cmos_init().
Drives defined with -device get created during generic device init.
That's after cmos_init().  Because of that, CMOS has no information on
them (type, geometry, translation).  Older versions of Windows such as
XP reportedly choke on that.

Split off the part of CMOS initialization that needs to know about
-device devices, and turn it into a reset handler, so it runs after
device creation.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2010-07-02 13:18:02 +02:00
..
cmd646.c ide: Split non-qdev code off ide_init2() 2010-06-04 11:43:39 +02:00
core.c block: Fix virtual media change for if=none 2010-07-02 13:18:02 +02:00
internal.h qdev: Decouple qdev_prop_drive from DriveInfo 2010-07-02 13:18:02 +02:00
isa.c ide: Make PIIX and ISA IDE init functions return the qdev 2010-07-02 13:18:02 +02:00
macio.c ide: Split non-qdev code off ide_init2() 2010-06-04 11:43:39 +02:00
microdrive.c ide: Split non-qdev code off ide_init2() 2010-06-04 11:43:39 +02:00
mmio.c ide: Split non-qdev code off ide_init2() 2010-06-04 11:43:39 +02:00
pci.c ide save/restore current transfer fields 2010-01-26 15:42:02 -06:00
pci.h ide: port pci ide to vmstate 2009-10-27 12:28:46 -05:00
piix.c ide: Make PIIX and ISA IDE init functions return the qdev 2010-07-02 13:18:02 +02:00
qdev.c pc: Fix CMOS info for drives defined with -device 2010-07-02 13:18:02 +02:00
via.c MIPS: Initial support of VIA IDE controller used by fulong mini pc 2010-06-29 23:07:52 +02:00