All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: linzhecheng <linzhecheng@huawei.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 11:04:48 +0100	[thread overview]
Message-ID: <20181126100448.3haw7ofvvhd4ns4m@sirius.home.kraxel.org> (raw)
In-Reply-To: <D9DE8DBB19F2A24080482022C1DE758302D336E2@DGGEMM529-MBX.china.huawei.com>

On Mon, Nov 26, 2018 at 09:07:32AM +0000, linzhecheng wrote:
> 
> 
> > -----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?

It has the option to do that if needed, which can simplify the software
design.

> I think inflight usb Packets have already been tracked by redir-usb in
> live migration. What's more do we have to do?

spice client also knows the live migration state, specifically whenever
the guest is still running on the source machine (usb replies should be
sent to source then) or whenever it is already stopped for the final
live migration stage (usb replies must be queued up then and wait until
the guest starts running on the target machine).  That information
travels over the main channel though, not the usb-redir channel.

cheers,
  Gerd

      reply	other threads:[~2018-11-26 10:05 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
2018-11-26 10:04         ` Gerd Hoffmann [this message]

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=20181126100448.3haw7ofvvhd4ns4m@sirius.home.kraxel.org \
    --to=kraxel@redhat.com \
    --cc=jianjay.zhou@huawei.com \
    --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.