qemu-patch-raspberry4/include
John Snow d8f94e1bb2 ide: Update ide_drive_get to be HBA agnostic
Instead of duplicating the logic for the if_ide
(bus,unit) mappings, rely on the blockdev layer
for managing those mappings for us, and use the
drive_get_by_index call instead.

This allows ide_drive_get to work for AHCI HBAs
as well, and can be used in the Q35 initialization.

Lastly, change the nature of the argument to
ide_drive_get so that represents the number of
total drives we can support, and not the total
number of buses. This will prevent array overflows
if the units-per-default-bus property ever needs
to be adjusted for compatibility reasons.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1412187569-23452-5-git-send-email-jsnow@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-10-03 10:30:33 +01:00
..
block async: aio_context_new(): Handle event_notifier_init failure 2014-09-22 11:39:48 +01:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec - Memory: improve error reporting and avoid crashes on hotplug 2014-09-12 16:55:49 +01:00
fpu fpu: softfloat: drop INLINE macro 2014-06-23 11:00:12 -04:00
hw pc/vl: Add units-per-default-bus property 2014-10-03 10:30:33 +01:00
libdecnumber Fix new typos in comments (found by codespell) 2014-07-18 17:45:36 +04:00
migration vmstate: Add preallocation for migrating arrays (VMS_ALLOC flag) 2014-06-27 13:48:27 +02:00
monitor monitor: fix use after free 2014-08-18 14:39:10 -04:00
net net: move queue number into NICPeers 2014-06-27 11:19:31 +02:00
qapi qemu-socket: Eliminate silly QERR_ macros 2014-09-26 13:37:06 -04:00
qemu This update brings dataplane to virtio-scsi (NOT 2014-09-30 16:45:35 +01:00
qom qom: Add cpu_exec_interrupt hook 2014-09-25 18:54:21 +01:00
sysemu ide: Update ide_drive_get to be HBA agnostic 2014-10-03 10:30:33 +01:00
ui console: add graphic_console_set_hwops 2014-09-29 10:20:09 +02:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h tcg-sparc: Use ADDXC in addsub2_i64 2014-09-29 14:55:27 -04:00
glib-compat.h glib-compat.h: add new thread API emulation on top of pre-2.31 API 2014-06-10 07:44:01 +02:00
qemu-common.h cpu: init vmstate for ticks and clock offset 2014-09-11 12:20:32 +02:00
qemu-io.h qemu-io: Fix warnings from static code analysis 2014-03-13 14:42:24 +01:00
trace-tcg.h trace: [tcg] Generate TCG tracing routines 2014-08-12 14:26:12 +01:00
trace.h trace: [tcg] Include event definitions in "trace.h" 2014-08-12 14:26:12 +01:00