[6594] qemu: dynamic drive/drive_opt index allocation (Marcelo Tosatti)
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.
Signed-off-by Marcelo Tosatti <[email protected]>
Signed-off-by Anthony Liguori <[email protected]>
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