On 03/07/2011 04:10 AM, Daniel P. Berrange wrote:
On Mon, Mar 07, 2011 at 11:36:48AM +0800, Wen Congyang wrote:
> Signed-off-by: Wen Congyang <wency(a)cn.fujitsu.com>
>
> ---
> src/qemu/qemu_driver.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index f4e52b1..2892dfe 100644
> --- a/src/qemu/qemu_driver.c
> +++ b/src/qemu/qemu_driver.c
> @@ -4282,6 +4282,8 @@ static int qemudDomainDetachDevice(virDomainPtr dom,
> }
> else if (dev->data.disk->bus == VIR_DOMAIN_DISK_BUS_SCSI) {
> ret = qemuDomainDetachDiskDevice(driver, vm, dev, qemuCaps);
> + } else if (dev->data.disk->bus == VIR_DOMAIN_DISK_BUS_USB) {
> + ret = qemuDomainDetachDiskDevice(driver, vm, dev, qemuCaps);
> }
> else {
> qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
ACK
I've pushed the series.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org