From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33025 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P89Vm-0005X4-PT for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:34:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P89Ve-0004nB-Gl for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:33:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P89Ve-0004n6-9t for qemu-devel@nongnu.org; Tue, 19 Oct 2010 06:33:34 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9JAXX7f031058 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Oct 2010 06:33:33 -0400 Received: from playa.tlv.redhat.com (dhcp-2-227.tlv.redhat.com [10.35.2.227]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9JAXW5o010122 for ; Tue, 19 Oct 2010 06:33:32 -0400 From: Alon Levy Date: Tue, 19 Oct 2010 12:33:28 +0200 Message-Id: <1287484411-13611-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 0/3] add usb_detach and usb_attach (v2) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This patchset uses id like device_del for attaching/detaching usb devices. The first two patches ready the way: 1. makes qdev_find_recursive non static and in qdev.h 2. adds a usb_device_by_id which goes over the usb buses calling qdev_find_recursive 3. adds the commands that use usb_device_by_id Alon Levy (3): qdev: make qdev_find_recursive public usb: add public usb_device_by_id monitor: add usb_attach and usb_detach hmp-commands.hx | 34 ++++++++++++++++++++++++++++++++++ hw/qdev.c | 2 +- hw/qdev.h | 1 + hw/usb-bus.c | 16 ++++++++++++++++ hw/usb.h | 1 + sysemu.h | 2 ++ vl.c | 31 +++++++++++++++++++++++++++++++ 7 files changed, 86 insertions(+), 1 deletions(-) -- 1.7.3.1