Received: from [140.186.70.92] (port=35936 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8sqo-0000us-Nv for qemu-devel@nongnu.org; Thu, 21 Oct 2010 06:58:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8sqn-0007rH-Jt for qemu-devel@nongnu.org; Thu, 21 Oct 2010 06:58:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8sqn-0007r1-D4 for qemu-devel@nongnu.org; Thu, 21 Oct 2010 06:58:25 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9LAwONT023575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Oct 2010 06:58:24 -0400 Date: Thu, 21 Oct 2010 12:58:20 +0200 From: Alon Levy Subject: Re: [Qemu-devel] [PATCH 3/3] monitor: add usb_attach and usb_detach Message-ID: <20101021105820.GA22958@playa.tlv.redhat.com> References: <1287484411-13611-1-git-send-email-alevy@redhat.com> <1287484411-13611-4-git-send-email-alevy@redhat.com> <4CBD9E85.50908@redhat.com> <20101020142420.675fb9d3@doriath> <4CC00F2C.2090302@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4CC00F2C.2090302@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Luiz Capitulino On Thu, Oct 21, 2010 at 12:00:12PM +0200, Gerd Hoffmann wrote: > On 10/20/10 18:24, Luiz Capitulino wrote: > >On Tue, 19 Oct 2010 15:35:01 +0200 > >Gerd Hoffmann wrote: > > > >> Hi, > >> > >>>+ .help = "attach USB device 'bus.addr'", > >> > >>>+@item usb_attach @var{devname} > >> > >>/me sees a mismatch here. > >> > >>There is still the use case question. Also note that this might have > >>unwanted side effects when drivers automagically attach/detach devices > >>like usb-host. > > > >Alon, did you check this? I hope it doesn't blowup. > > > >>Having this purely for debugging/troubleshooting purposes would be fine > >>with me, but the documentation should clearly say so. > > > >Is this useful in production or only in the development of new devices? > > I'd say more a development tool. > > >If > >it's the letter, then I would even prefer enabling them only when DEBUG > >is enabled. > > Makes sense indeed. I've sent a third version with fixes for the args_type you pointed out and the suggested default disabled behavior (I also added a flag to enable just this command, but made sure --enable-debug enables it too). > > cheers, > Gerd