From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Peter Xu <peterx@redhat.com>
Cc: qemu-devel@nongnu.org, quintela@redhat.com,
lizhijian@cn.fujitsu.com, jdenemar@redhat.com
Subject: Re: [PATCH] migration/rdma: Fix return-path case
Date: Tue, 14 Mar 2023 18:03:34 +0000 [thread overview]
Message-ID: <ZBC29kyulA6EWG3P@work-vm> (raw)
In-Reply-To: <ZBC00qARI3Lu7YVw@x1n>
* Peter Xu (peterx@redhat.com) wrote:
> On Tue, Mar 14, 2023 at 05:15:58PM +0000, Dr. David Alan Gilbert (git) wrote:
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> >
> > The RDMA code has return-path handling code, but it's only enabled
> > if postcopy is enabled; if the 'return-path' migration capability
> > is enabled, the return path is NOT setup but the core migration
> > code still tries to use it and breaks.
> >
> > Enable the RDMA return path if either postcopy or the return-path
> > capability is enabled.
> >
> > bz: https://bugzilla.redhat.com/show_bug.cgi?id=2063615
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
>
> Acked-by: Peter Xu <peterx@redhat.com>
>
> > @@ -3373,7 +3373,8 @@ static int qemu_rdma_accept(RDMAContext *rdma)
> > * initialize the RDMAContext for return path for postcopy after first
> > * connection request reached.
> > */
> > - if (migrate_postcopy() && !rdma->is_return_path) {
> > + if ((migrate_postcopy() || migrate_use_return_path())
> > + && !rdma->is_return_path) {
> > rdma_return_path = qemu_rdma_data_init(rdma->host_port, NULL);
> > if (rdma_return_path == NULL) {
> > rdma_ack_cm_event(cm_event);
>
> It's not extremely clear to me yet on when we should use migrate_postcopy()
> and when to use migrate_postcopy_ram(). I think it's because I don't know
> enough on the dirty-bitmaps capability. Do we have some good documentation
> somewhere?
Hmm that's probably a good point.
> Not much I get from the qapi doc..
>
> # @dirty-bitmaps: If enabled, QEMU will migrate named dirty bitmaps.
> # (since 2.12)
I don't know of any good docs; I think this is a blocks mechanism; I'm
not even sure if it needs the return path.
Dave
> Thanks,
>
> --
> Peter Xu
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2023-03-14 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-14 17:15 [PATCH] migration/rdma: Fix return-path case Dr. David Alan Gilbert (git)
2023-03-14 17:54 ` Peter Xu
2023-03-14 18:03 ` Dr. David Alan Gilbert [this message]
2023-03-15 1:52 ` lizhijian
2023-03-16 10:03 ` Juan Quintela
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=ZBC29kyulA6EWG3P@work-vm \
--to=dgilbert@redhat.com \
--cc=jdenemar@redhat.com \
--cc=lizhijian@cn.fujitsu.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.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.