All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: "wangxin (U)" <wangxinxin.wang@huawei.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"fuweiwei (C)" <fuweiwei2@huawei.com>,
	"Gonglei (Arei)" <arei.gonglei@huawei.com>
Subject: Re: [Qemu-devel] question with usb stick host pass-through do ejection in guest
Date: Mon, 05 Sep 2016 10:57:47 +0200	[thread overview]
Message-ID: <1473065867.9260.5.camel@redhat.com> (raw)
In-Reply-To: <8ADDA2EB7601DA429B6B2A43EF4620A531F79551@szxeml556-mbs.china.huawei.com>

  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? 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

  reply	other threads:[~2016-09-05  8:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-30 12:36 [Qemu-devel] question with usb stick host pass-through do ejection in guest wangxin (U)
2016-09-05  8:57 ` Gerd Hoffmann [this message]
2016-09-05  9:38   ` Gonglei (Arei)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1473065867.9260.5.camel@redhat.com \
    --to=kraxel@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=fuweiwei2@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wangxinxin.wang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.