From: "Daniel P. Berrange" <berrange@redhat.com>
To: "David Z. Dai" <zdai@linux.vnet.ibm.com>
Cc: qemu-devel@nongnu.org, amit.shah@redhat.com, zdai@us.ibm.com,
mdroth@linux.vnet.ibm.com, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH 1/1] Migration: libvirt live migration over RDMA of ipv6 addr failed
Date: Wed, 25 Jan 2017 17:52:14 +0000 [thread overview]
Message-ID: <20170125175214.GH29006@redhat.com> (raw)
In-Reply-To: <1485366465.1515.19.camel@oc5348122405>
On Wed, Jan 25, 2017 at 11:47:45AM -0600, David Z. Dai wrote:
> In Previous test, I changed libvirtd code in src/util/viruri.c file,
> virURIParse() routine to block
> "virStringStripIPv6Brackets(ret->server);" call. It caused ssh ipv6
> authentication failure.
>
> You said libvirt needs to be changed to pass correct data to QEMU.
>
> As one of the solution on libvirt side: if I add this condition in
> virURIParse() routine:
> + if (strcmp(ret->scheme, "rdma")) {
> /* Strip square bracket from an IPv6 address.
> * The function modifies the string in-place. Even after such
> * modification, it is OK to free the URI with xmlFreeURI. */
> virStringStripIPv6Brackets(ret->server);
> + }
>
> Now both the virsh live migration with tcp and rdma via ipv6 address
> work fine.
>
> Do you think this is the acceptable solution?
No, the viruri code is a general purpose URI parsing API and should
not be hacked with QEMU specific knowledge in this way.
You need to modify the QEMU driver code in libvirt to adding [] when
calling the QEMU migrate monitor command, and when creating the
-incoming CLI arg. eg modify various places in the src/qemu/qemu_*.c
files
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
next prev parent reply other threads:[~2017-01-25 17:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 15:44 [Qemu-devel] [PATCH 1/1] Migration: libvirt live migration over RDMA of ipv6 addr failed David Dai
2017-01-24 17:36 ` Daniel P. Berrange
2017-01-24 20:13 ` Michael Roth
2017-01-25 17:47 ` David Z. Dai
2017-01-25 17:52 ` Daniel P. Berrange [this message]
2017-01-24 17:36 ` Dr. David Alan Gilbert
2017-01-24 18:24 ` David Z. Dai
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=20170125175214.GH29006@redhat.com \
--to=berrange@redhat.com \
--cc=amit.shah@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=zdai@linux.vnet.ibm.com \
--cc=zdai@us.ibm.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.