From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgpj1-0001pZ-4k for qemu-devel@nongnu.org; Mon, 05 Sep 2016 04:57:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bgpix-0000cH-35 for qemu-devel@nongnu.org; Mon, 05 Sep 2016 04:57:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bgpiw-0000cB-UH for qemu-devel@nongnu.org; Mon, 05 Sep 2016 04:57:51 -0400 Message-ID: <1473065867.9260.5.camel@redhat.com> From: Gerd Hoffmann Date: Mon, 05 Sep 2016 10:57:47 +0200 In-Reply-To: <8ADDA2EB7601DA429B6B2A43EF4620A531F79551@szxeml556-mbs.china.huawei.com> References: <8ADDA2EB7601DA429B6B2A43EF4620A531F79551@szxeml556-mbs.china.huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] question with usb stick host pass-through do ejection in guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "wangxin (U)" Cc: "qemu-devel@nongnu.org" , "fuweiwei (C)" , "Gonglei (Arei)" Hi, > It appears that "eject" the stick in the guest may also actually eject it= on > the host, Yes, that is the case. > which however, is not rational. Why? I see the same behavior on physical machines. If I want to use a usb stick after ejecting it I have to unplug and re-plug it. > Could you tell me the root cause > of the problem and some proposals to evade the scenario=EF=BC=9F Thanks. Well, the guest owns the device. When the guest sends a eject command it will be forwarded to the device like any other request issued by the guest ... cheers, Gerd