Skip to contentSkip to conversation

[6594] qemu: dynamic drive/drive_opt index allocation (Marcelo Tosatti)

Qemu-devel Anthony Liguori 1 participant 1 message Feb 11, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6594

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6594
Author:   aliguori
Date:     2009-02-11 15:19:58 +0000 (Wed, 11 Feb 2009)

Log Message:
-----------
qemu: dynamic drive/drive_opt index allocation (Marcelo Tosatti)

Dynamically allocate drive options and drive table index, to reuse indexes when devices are removed.

Modified Paths:
--------------
trunk/sysemu.h
trunk/vl.c

Modified: trunk/sysemu.h
===================================================================

sysemu.h +1 -0
@@ -134,6 +134,7 @@
     BlockInterfaceType type;
     int bus;
     int unit;
+    int used;
     BlockInterfaceErrorAction onerror;
     char serial[21];
 } DriveInfo;

Modified: trunk/vl.c
===================================================================

vl.c +43 -11

98 lines not on this page · raw message