qemu/hw/ide
Markus Armbruster 28fa7133b8 ide: Fix bootindex for bus_id > 9
We identify devices by their Open Firmware device paths.  The encoding
of bus numbers is incorrect: idebus_get_fw_dev_path() formats them in
decimal, while SeaBIOS uses hexadecimal.  With bus number > 9, SeaBIOS
will miss the bootindex (lucky case), or apply it to another device
(unlucky case).

Bug can't bite right now: ich9-ahci has six ports, and the sysbus-ahci
created by Calxeda Highbank has just one.

Fix it anyway, by changing %d to %x.

I couldn't find an Open Firmware spec covering this.  For what it's
worth, OVMF agrees with SeaBIOS.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-08-29 10:46:57 +01:00
..
ahci.c block: Use g_new() & friends where that makes obvious sense 2014-08-20 11:51:28 +02:00
ahci.h ahci: remove duplicate PORT_IRQ_* constants 2014-08-15 18:03:12 +01:00
atapi.c ide: make all commands go through cmd_done 2014-08-15 18:03:12 +01:00
cmd646.c SCSI changes that enable sending vendor-specific commands via virtio-scsi. 2014-08-19 13:00:57 +01:00
core.c ide: only constrain read/write requests to drive size, not other types 2014-08-15 18:03:14 +01:00
ich.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
internal.h ide: make all commands go through cmd_done 2014-08-15 18:03:12 +01:00
isa.c savevm: Remove all the unneeded version_minimum_id_old (x86) 2014-06-16 04:55:26 +02:00
macio.c ide: fold add_status callback into set_inactive 2014-08-15 18:03:12 +01:00
Makefile.objs hw: make all of hw/ide/ configurable via default-configs/ 2013-04-08 18:13:12 +02:00
microdrive.c block: Drop some superfluous casts from void * 2014-08-20 11:51:28 +02:00
mmio.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
pci.c ide: move retry constants out of BM_STATUS_* namespace 2014-08-15 18:03:12 +01:00
pci.h ide: move BM_STATUS bits to pci.[ch] 2014-08-15 18:03:12 +01:00
piix.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00
qdev.c ide: Fix bootindex for bus_id > 9 2014-08-29 10:46:57 +01:00
via.c memory: remove memory_region_destroy 2014-08-18 12:06:21 +02:00