All of lore.kernel.org
 help / color / mirror / Atom feed
From: gerd hoffmann <kraxel@redhat.com>
To: CheneyLin <linzc@zju.edu.cn>
Cc: linzhecheng <linzhecheng@huawei.com>,
	"wangxin (u)" <wangxinxin.wang@huawei.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Some confusion about live migration of usb device
Date: Fri, 7 Sep 2018 08:23:07 +0200	[thread overview]
Message-ID: <20180907062307.f7dnpvbok37ztkvo@sirius.home.kraxel.org> (raw)
In-Reply-To: <9cc5ff6.583e8.165af44797e.Coremail.linzc@zju.edu.cn>

On Thu, Sep 06, 2018 at 10:23:45PM +0800, CheneyLin wrote:
> 
> 
> 
> > -----原始邮件-----
> > 发件人: "gerd hoffmann" <kraxel@redhat.com>
> > 发送时间: 2018-09-06 21:52:23 (星期四)
> > 收件人: linzhecheng <linzhecheng@huawei.com>
> > 抄送: "wangxin (U)" <wangxinxin.wang@huawei.com>, CheneyLin <linzc@zju.edu.cn>, "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
> > 主题: Re: [Qemu-devel] Some confusion about live migration of usb device
> > 
> > On Thu, Sep 06, 2018 at 12:10:08PM +0000, linzhecheng wrote:
> > > You had said that copying vmstate of usb-host is pointless, so just unpulg and plug it after migration is all right,
> > >  but will other usb devices like usb-storage devices lose pending USBPackets then?  
> > 
> > Ah, emulated usb devices.  The usb host adapters will re-submit any
> > unfinished usb transfers on the target machine.
> You mean target vm usb controllers will re-submit them? 

Yes.

> And what about usb-redir, btw?

Basically the same.  But some extra care is needed to make sure the
physical device will not see requests twice when the target starts
replaying unfinished requests.  All usb requests get a unique tag
(USBPacket->id) so the usbredir server (typically spice client) has a
chance to handle this correctly.

cheers,
  Gerd

  reply	other threads:[~2018-09-07  6:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-06 10:25 [Qemu-devel] Some confusion about live migration of usb device linzhecheng
2018-09-06 12:04 ` gerd hoffmann
2018-09-06 12:10   ` linzhecheng
2018-09-06 13:52     ` gerd hoffmann
2018-09-06 14:23       ` CheneyLin
2018-09-07  6:23         ` gerd hoffmann [this message]
2018-09-07  6:27           ` linzhecheng

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=20180907062307.f7dnpvbok37ztkvo@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=linzc@zju.edu.cn \
    --cc=linzhecheng@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.