]> git.proxmox.com Git - qemu.git/commit - device-hotplug.c
kill drives_table
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 22 Jul 2009 14:42:57 +0000 (16:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 27 Jul 2009 19:08:23 +0000 (14:08 -0500)
commit751c6a17042b5d011013d6963c0505d671cf708e
tree61a769ed1a1c16ebdfc1397ce9d775222dfa8e57
parent8a14daa5a1ae22fcfc317f4727a88d6c15c39aae
kill drives_table

First step cleaning up the drives handling.  This one does nothing but
removing drives_table[], still it became seriously big.

drive_get_index() is gone and is replaced by drives_get() which hands
out DriveInfo pointers instead of a table index.  This needs adaption in
*tons* of places all over.

The drives are now maintained as linked list.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
36 files changed:
hw/device-hotplug.c
hw/etraxfs.c
hw/gumstix.c
hw/mainstone.c
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_r4k.c
hw/musicpal.c
hw/nand.c
hw/omap1.c
hw/omap2.c
hw/omap_sx1.c
hw/onenand.c
hw/pc.c
hw/pci-hotplug.c
hw/petalogix_s3adsp1800_mmu.c
hw/ppc405_boards.c
hw/ppc440_bamboo.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/ppce500_mpc8544ds.c
hw/pxa2xx.c
hw/qdev.c
hw/r2d.c
hw/spitz.c
hw/sun4m.c
hw/sun4u.c
hw/tosa.c
hw/xen_disk.c
hw/xen_machine_pv.c
monitor.c
qemu-char.c
savevm.c
sysemu.h
vl.c