[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] how use qemu device_add and drive_add
From: |
Dale R. Worley |
Subject: |
Re: [Qemu-discuss] how use qemu device_add and drive_add |
Date: |
Thu, 3 Jul 2014 11:23:34 -0400 |
> From: "liang" <address@hidden>
> add device use:
> 1 drive_add 0 file=hotplug.raw,if=none,id=usb_disk1
> 2 device_add usb-storage,drive=usb_disk1,id=usb_disk11,removable=on
>
> and del device use:
> 3 drive_del usb_disk1
> 4 device_del usb_disk11
>
> but when command 4 the qemu allways "assertion failed: (obj->ref ==
> 0)" receive SIGABRT.
I expect that you must perform commands 3 and 4 in the reverse order:
device_del usb_disk11
drive_del usb_disk1
because the existence of usb_disk11 requires the existence of
usb_disk1.
I expect that if you attempt to delete usb_disk1 while usb_disk11
exists, then either (a) both usb_disk1 and usb_disk11 are deleted, or
(b) the attempt to delete usb_disk1 fails because usb_disk1 is "in
use".
But I am a novice with Qemu.
Dale