summaryrefslogtreecommitdiff
path: root/hw/ide.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-06-24 19:58:20 +0200
committerKevin Wolf <kwolf@redhat.com>2010-07-02 13:18:02 +0200
commit6c1fd59aa3d7cc6ca22cf5f69dc05d542dd4685e (patch)
treee9476e69b210a42620ea84a8b2e24983ce521398 /hw/ide.h
parentf0b746938188ab939a47ef7297088cc4f6703ecb (diff)
downloadqemu-6c1fd59aa3d7cc6ca22cf5f69dc05d542dd4685e.tar.gz
qemu-6c1fd59aa3d7cc6ca22cf5f69dc05d542dd4685e.tar.bz2
qemu-6c1fd59aa3d7cc6ca22cf5f69dc05d542dd4685e.zip
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>
Diffstat (limited to 'hw/ide.h')
-rw-r--r--hw/ide.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/ide.h b/hw/ide.h
index 82b3c11283..2b5ae7c39e 100644
--- a/hw/ide.h
+++ b/hw/ide.h
@@ -24,4 +24,6 @@ void mmio_ide_init (target_phys_addr_t membase, target_phys_addr_t membase2,
qemu_irq irq, int shift,
DriveInfo *hd0, DriveInfo *hd1);
+void ide_get_bs(BlockDriverState *bs[], BusState *qbus);
+
#endif /* HW_IDE_H */