All of lore.kernel.org
 help / color / mirror / Atom feed
From: linzhecheng <linzhecheng@huawei.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"wangxin (U)" <wangxinxin.wang@huawei.com>,
	"Zhoujian (jay)" <jianjay.zhou@huawei.com>
Subject: Re: [Qemu-devel] [question] live migration about redir-usb
Date: Mon, 26 Nov 2018 09:07:32 +0000	[thread overview]
Message-ID: <D9DE8DBB19F2A24080482022C1DE758302D336E2@DGGEMM529-MBX.china.huawei.com> (raw)
In-Reply-To: <20181126084933.jdlxzj6l7lq5kubg@sirius.home.kraxel.org>



> -----Original Message-----
> From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> Sent: Monday, November 26, 2018 4:50 PM
> To: linzhecheng <linzhecheng@huawei.com>
> Cc: qemu-devel@nongnu.org; wangxin (U) <wangxinxin.wang@huawei.com>;
> Zhoujian (jay) <jianjay.zhou@huawei.com>
> Subject: Re: [Qemu-devel] [question] live migration about redir-usb
> 
> On Mon, Nov 26, 2018 at 06:53:23AM +0000, linzhecheng wrote:
> >
> >
> > > -----Original Message-----
> > > From: Gerd Hoffmann [mailto:kraxel@redhat.com]
> > > Sent: Monday, November 26, 2018 2:46 PM
> > > To: linzhecheng <linzhecheng@huawei.com>
> > > Cc: qemu-devel@nongnu.org; wangxin (U)
> <wangxinxin.wang@huawei.com>;
> > > Zhoujian (jay) <jianjay.zhou@huawei.com>
> > > Subject: Re: [Qemu-devel] [question] live migration about redir-usb
> > >
> > > On Mon, Nov 26, 2018 at 02:29:12AM +0000, linzhecheng wrote:
> > > > Hi, Gerd
> > > > I have read this discussion thread about live migration in tcp mode.
> > > > https://bugzilla.redhat.com/show_bug.cgi?id=1254971
> > > > Only spice redirection supports live migration not, but why not tcp mode?
> > > > Does usbredirserver not support it or qemu?
> > >
> > > usbredirserver.
> > >
> > > spice client holds a connection to both source and target host for a
> > > seamless connection handover, and usb-redir needs that too to hand
> > > over the usb device without interruption.
> > >
> > > usbredirserver can't do that.
> 
> > So if we realize the handover between src and dst chardev of qemu, we
> > can do live migration in tcp mode.
> 
> > Is it similar with openvswtich who both accept the connection of src and dst
> qemu?
> 
> It is more complicated than just accepting two connections.  Network can just
> throw away packages if needed, typicaly they will be resent by the guest.  That
> doesn't work with usb, you must properly keep track of every in-flight usb
> transfer.
Why will network throw away packets? I think inflight usb
 Packets have already been tracked by redir-usb in live migration. What's more do we have to do?

> 
> What exactly do you want do?
Realize live migration for redir-usb in tcp mode.
> 
> Maybe it will be simpler to build a stripped-down spice client with only the usb
> redir code, which doesn't require a UI and which you can start from the
> command line like usbredirserver?  Most spice client code is actually in shared
> libraries, so it should not be too much work.
> 
> cheers,
>   Gerd

  reply	other threads:[~2018-11-26  9:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-26  2:29 [Qemu-devel] [question] live migration about redir-usb linzhecheng
2018-11-26  6:46 ` Gerd Hoffmann
2018-11-26  6:53   ` linzhecheng
2018-11-26  8:49     ` Gerd Hoffmann
2018-11-26  9:07       ` linzhecheng [this message]
2018-11-26 10:04         ` Gerd Hoffmann

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=D9DE8DBB19F2A24080482022C1DE758302D336E2@DGGEMM529-MBX.china.huawei.com \
    --to=linzhecheng@huawei.com \
    --cc=jianjay.zhou@huawei.com \
    --cc=kraxel@redhat.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.