Received: from eggs.gnu.org ([2001:4830:134:3::10]:43958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQd0u-0002Qs-Mq for qemu-devel@nongnu.org; Tue, 02 Feb 2016 10:37:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQd0q-00065v-8u for qemu-devel@nongnu.org; Tue, 02 Feb 2016 10:37:08 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQd0q-00065r-3T for qemu-devel@nongnu.org; Tue, 02 Feb 2016 10:37:04 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 8ACFA8E678 for ; Tue, 2 Feb 2016 15:37:03 +0000 (UTC) From: Markus Armbruster References: <1453804885-15544-1-git-send-email-kraxel@redhat.com> <1453804885-15544-3-git-send-email-kraxel@redhat.com> <87zivjkzjm.fsf@blackfin.pond.sub.org> <1454423153.9300.100.camel@redhat.com> Date: Tue, 02 Feb 2016 16:37:00 +0100 In-Reply-To: <1454423153.9300.100.camel@redhat.com> (Gerd Hoffmann's message of "Tue, 02 Feb 2016 15:25:53 +0100") Message-ID: <87k2mngm3n.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/4] usb: add attached property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Gerd Hoffmann writes: > Hi, > >> > USB devices in attached state are visible to the guest. >> >> If I read the code correctly: >> >> * ->attached is true between usb_device_attach() and usb_device_detach() >> >> * Attach and detach is automatic on realize and unrealize, but a device >> can choose to suppress attach on realize, by unsetting ->auto_attach, >> and manage attach/detach itself. >> >> * A detached device is wired up normally in QOM, but the USB core treats >> it as not plugged into its USB port. >> >> Correct? > > Yes. Preferrably with the commit message improved along the line of my suggestions: Reviewed-by: Markus Armbruster