kvm: qemu: dynamic drive/drive_opt index allocation
commit9aea55c2029b478c9f14836f2c4971c574480a89
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Mar 2008 20:11:57 +0000 (11 17:11 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 16 Mar 2008 12:03:50 +0000 (16 14:03 +0200)
tree0e6f002396671536ca113896f8ffbdc77d1eee15
parent01a3e7df25bffddb5f6c7f58602af1fcfa5357c4
kvm: qemu: dynamic drive/drive_opt index allocation

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

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/sysemu.h
qemu/vl.c