From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQbu3-0001QH-1K for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:25:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQbtz-0006M2-PH for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:25:58 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQbtz-0006Ly-KQ for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:25:55 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 31A1029AD7 for ; Tue, 2 Feb 2016 14:25:55 +0000 (UTC) Message-ID: <1454423153.9300.100.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 02 Feb 2016 15:25:53 +0100 In-Reply-To: <87zivjkzjm.fsf@blackfin.pond.sub.org> 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 2/4] usb: add attached property List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org Hi, > > USB devices in attached state are visible to the guest. >=20 > If I read the code correctly: >=20 > * ->attached is true between usb_device_attach() and usb_device_detach() >=20 > * 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. >=20 > * A detached device is wired up normally in QOM, but the USB core treats > it as not plugged into its USB port. >=20 > Correct? Yes. cheers, Gerd