DPDK patches and discussions
 help / color / mirror / Atom feed
From: Chaoyong He <chaoyong.he@corigine.com>
To: Maxime Coquelin <maxime.coquelin@redhat.com>,
	"dev@dpdk.org" <dev@dpdk.org>
Cc: oss-drivers <oss-drivers@corigine.com>,
	Xinying Yu <xinying.yu@nephogine.com>,
	Long Wu <Long.Wu@nephogine.com>,
	Nole Zhang <peng.zhang@corigine.com>
Subject: RE: [PATCH 05/10] vdpa/nfp: add the live migration logic
Date: Fri, 14 Jun 2024 02:32:49 +0000	[thread overview]
Message-ID: <SJ0PR13MB554509061600AA5CB617FD0A9EC22@SJ0PR13MB5545.namprd13.prod.outlook.com> (raw)
In-Reply-To: <9d7b4d17-233d-4ade-a6dc-1528b34a6f65@redhat.com>

> On 4/26/24 09:48, Chaoyong He wrote:
> > From: Xinying Yu <xinying.yu@corigine.com>
> >
> > Add the basic logic of software live migration.
> >
> > Unset the ring notify area to stop the direct IO datapath if the
> > device support, then we can setup the vring relay to help the live
> > migration.
> >
> > Signed-off-by: Xinying Yu <xinying.yu@corigine.com>
> > Reviewed-by: Chaoyong He <chaoyong.he@corigine.com>
> > Reviewed-by: Long Wu <long.wu@corigine.com>
> > Reviewed-by: Peng Zhang <peng.zhang@corigine.com>
> > ---
> >   drivers/vdpa/nfp/nfp_vdpa.c      | 66
> +++++++++++++++++++++++++++++++-
> >   drivers/vdpa/nfp/nfp_vdpa_core.c |  3 ++
> >   drivers/vdpa/nfp/nfp_vdpa_core.h |  4 ++
> >   3 files changed, 71 insertions(+), 2 deletions(-)
> >
> >
> > diff --git a/drivers/vdpa/nfp/nfp_vdpa_core.c
> > b/drivers/vdpa/nfp/nfp_vdpa_core.c
> > index 79ecd2b4fc..82a323a6d0 100644
> > --- a/drivers/vdpa/nfp/nfp_vdpa_core.c
> > +++ b/drivers/vdpa/nfp/nfp_vdpa_core.c
> > @@ -91,8 +91,11 @@ nfp_vdpa_hw_init(struct nfp_vdpa_hw *vdpa_hw,
> >   	tx_bar = (uint8_t *)pci_dev->mem_resource[2].addr + tx_bar_off;
> >   	hw->qcp_cfg = tx_bar + NFP_QCP_QUEUE_ADDR_SZ;
> >
> > +	vdpa_hw->sw_lm = true;
> > +
> >   	vdpa_hw->features = (1ULL << VIRTIO_F_VERSION_1) |
> >   			(1ULL << VIRTIO_F_IN_ORDER) |
> > +			(1ULL << VHOST_F_LOG_ALL) |
> >   			(1ULL << VHOST_USER_F_PROTOCOL_FEATURES);
> 
> Is the live-migration works if we stop at patch 5?
> If not, I would suggest to enable the feature only at the end of the series.
> 

The live-migration not work if we stop at patch 5.
We will modify just as your advice in the v2 patch, and thanks for your review.

> >
> >   	return 0;
> > diff --git a/drivers/vdpa/nfp/nfp_vdpa_core.h
> > b/drivers/vdpa/nfp/nfp_vdpa_core.h
> > index a8e0d6dd70..0f880fc0c6 100644
> > --- a/drivers/vdpa/nfp/nfp_vdpa_core.h
> > +++ b/drivers/vdpa/nfp/nfp_vdpa_core.h
> > @@ -36,6 +36,10 @@ struct nfp_vdpa_hw {
> >   	uint8_t mac_addr[RTE_ETHER_ADDR_LEN];
> >   	uint8_t notify_region;
> >   	uint8_t nr_vring;
> > +
> > +	/** Software Live Migration */
> > +	bool sw_lm;
> > +	bool sw_fallback_running;
> >   };
> >
> >   int nfp_vdpa_hw_init(struct nfp_vdpa_hw *vdpa_hw, struct
> > rte_pci_device *dev);


  reply	other threads:[~2024-06-14  2:32 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-26  7:48 [PATCH 00/10] support software live migration Chaoyong He
2024-04-26  7:48 ` [PATCH 01/10] mailmap: add new contributor Chaoyong He
2024-04-26  7:48 ` [PATCH 02/10] vdpa/nfp: fix logic in hardware init Chaoyong He
2024-06-13 11:41   ` Maxime Coquelin
2024-04-26  7:48 ` [PATCH 03/10] vdpa/nfp: fix the logic of reconfiguration Chaoyong He
2024-06-13 11:43   ` Maxime Coquelin
2024-06-14  2:30     ` Chaoyong He
2024-04-26  7:48 ` [PATCH 04/10] vdpa/nfp: refactor the logic of datapath update Chaoyong He
2024-06-13 11:45   ` Maxime Coquelin
2024-04-26  7:48 ` [PATCH 05/10] vdpa/nfp: add the live migration logic Chaoyong He
2024-06-13 11:49   ` Maxime Coquelin
2024-06-14  2:32     ` Chaoyong He [this message]
2024-04-26  7:48 ` [PATCH 06/10] vdpa/nfp: add the interrupt logic of vring relay Chaoyong He
2024-06-13 11:52   ` Maxime Coquelin
2024-04-26  7:48 ` [PATCH 07/10] vdpa/nfp: setup the VF configure Chaoyong He
2024-06-13 11:58   ` Maxime Coquelin
2024-06-14  2:33     ` Chaoyong He
2024-04-26  7:48 ` [PATCH 08/10] vdpa/nfp: recover the ring index on new host Chaoyong He
2024-06-13 12:00   ` Maxime Coquelin
2024-06-14  6:40     ` Chaoyong He
2024-04-26  7:48 ` [PATCH 09/10] vdpa/nfp: setup vring relay thread Chaoyong He
2024-06-13 12:03   ` Maxime Coquelin
2024-04-26  7:48 ` [PATCH 10/10] doc: update nfp document Chaoyong He
2024-04-26 21:31   ` Patrick Robb
2024-06-13 12:03   ` Maxime Coquelin
2024-05-30  8:51 ` [PATCH 00/10] support software live migration Chaoyong He
2024-06-14  7:01 ` [PATCH v2 00/11] " Chaoyong He
2024-06-14  7:01   ` [PATCH v2 01/11] mailmap: add new contributor Chaoyong He
2024-06-14  7:01   ` [PATCH v2 02/11] vdpa/nfp: fix logic in hardware init Chaoyong He
2024-06-14  7:01   ` [PATCH v2 03/11] vdpa/nfp: fix the logic of reconfiguration Chaoyong He
2024-06-14  7:01   ` [PATCH v2 04/11] vdpa/nfp: refactor the logic of datapath update Chaoyong He
2024-06-14  7:01   ` [PATCH v2 05/11] vdpa/nfp: add the live migration logic Chaoyong He
2024-06-14  7:01   ` [PATCH v2 06/11] vdpa/nfp: add the interrupt logic of vring relay Chaoyong He
2024-06-14  7:01   ` [PATCH v2 07/11] vdpa/nfp: setup the VF configure Chaoyong He
2024-06-14  7:01   ` [PATCH v2 08/11] vdpa/nfp: recover the ring index on new host Chaoyong He
2024-06-14  7:01   ` [PATCH v2 09/11] vdpa/nfp: setup vring relay thread Chaoyong He
2024-06-14  7:01   ` [PATCH v2 10/11] vdpa/nfp: enable feature bits of live migration Chaoyong He
2024-06-14  7:01   ` [PATCH v2 11/11] doc: update nfp document Chaoyong He
2024-06-17  6:26   ` [PATCH v3 00/11] support software live migration Chaoyong He
2024-06-17  6:26     ` [PATCH v3 01/11] mailmap: add new contributor Chaoyong He
2024-06-18  7:43       ` Maxime Coquelin
2024-06-17  6:26     ` [PATCH v3 02/11] vdpa/nfp: fix logic in hardware init Chaoyong He
2024-06-18  7:50       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 03/11] vdpa/nfp: fix the logic of reconfiguration Chaoyong He
2024-06-18  7:51       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 04/11] vdpa/nfp: refactor the logic of datapath update Chaoyong He
2024-06-18  8:12       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 05/11] vdpa/nfp: add the live migration logic Chaoyong He
2024-06-18  8:12       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 06/11] vdpa/nfp: add the interrupt logic of vring relay Chaoyong He
2024-06-18  8:14       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 07/11] vdpa/nfp: setup the VF configure Chaoyong He
2024-06-18  8:19       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 08/11] vdpa/nfp: recover the ring index on new host Chaoyong He
2024-06-18  8:20       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 09/11] vdpa/nfp: setup vring relay thread Chaoyong He
2024-06-18  8:25       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 10/11] vdpa/nfp: enable feature bits of live migration Chaoyong He
2024-06-18  8:25       ` Maxime Coquelin
2024-06-17  6:27     ` [PATCH v3 11/11] doc: update nfp document Chaoyong He
2024-06-18  8:25       ` Maxime Coquelin
2024-06-18  7:45     ` [PATCH v3 00/11] support software live migration Maxime Coquelin
2024-06-18  7:48       ` Chaoyong He
2024-08-05  2:12     ` [PATCH v4 " Chaoyong He
2024-08-05  2:12       ` [PATCH v4 01/11] mailmap: add new contributor Chaoyong He
2024-08-05  2:12       ` [PATCH v4 02/11] vdpa/nfp: fix logic in hardware init Chaoyong He
2024-08-05  2:12       ` [PATCH v4 03/11] vdpa/nfp: fix the logic of reconfiguration Chaoyong He
2024-08-05  2:12       ` [PATCH v4 04/11] vdpa/nfp: refactor the logic of datapath update Chaoyong He
2024-08-05  2:12       ` [PATCH v4 05/11] vdpa/nfp: add the live migration logic Chaoyong He
2024-08-05  2:12       ` [PATCH v4 06/11] vdpa/nfp: add the interrupt logic of vring relay Chaoyong He
2024-08-05  2:12       ` [PATCH v4 07/11] vdpa/nfp: setup the VF configure Chaoyong He
2024-08-05  2:12       ` [PATCH v4 08/11] vdpa/nfp: recover the ring index on new host Chaoyong He
2024-08-05  2:12       ` [PATCH v4 09/11] vdpa/nfp: setup vring relay thread Chaoyong He
2024-08-05  2:12       ` [PATCH v4 10/11] vdpa/nfp: enable feature bits of live migration Chaoyong He
2024-08-05  2:12       ` [PATCH v4 11/11] doc: update nfp document Chaoyong He
2024-09-19 12:05       ` [PATCH v4 00/11] support software live migration Maxime Coquelin

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=SJ0PR13MB554509061600AA5CB617FD0A9EC22@SJ0PR13MB5545.namprd13.prod.outlook.com \
    --to=chaoyong.he@corigine.com \
    --cc=Long.Wu@nephogine.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --cc=oss-drivers@corigine.com \
    --cc=peng.zhang@corigine.com \
    --cc=xinying.yu@nephogine.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).