From: liulongfang <liulongfang@huawei.com>
To: <alex.williamson@redhar.com>
Cc: <cohuck@redhat.com>, <linux-kernel@vger.kernel.org>,
<linuxarm@openeuler.org>
Subject: Re: [RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver
Date: Tue, 13 Apr 2021 09:17:26 +0800 [thread overview]
Message-ID: <6bab97f7-c7ed-5837-4b7c-e49770fb9029@huawei.com> (raw)
In-Reply-To: <1618217596-13621-1-git-send-email-liulongfang@huawei.com>
On 2021/4/12 16:53, Longfang Liu wrote:
> The live migration solution relies on the vfio_device_migration_info protocol.
> The structure vfio_device_migration_info is placed at the 0th offset of
> the VFIO_REGION_SUBTYPE_MIGRATION region to get and set VFIO device related
> migration information. Field accesses from this structure are only supported
> at their native width and alignment. Otherwise, the result is undefined and
> vendor drivers should return an error.
>
> (1).The driver framework is based on vfio_pci_register_dev_region() of vfio-pci,
> and then a new live migration region is added, and the live migration is
> realized through the ops of this region.
>
> (2).In order to ensure the compatibility of the devices before and after the
> migration, the device compatibility information check will be performed in
> the Pre-copy stage. If the check fails, an error will be returned and the
> source VM will exit the migration function.
>
> (3).After the compatibility check is passed, it will enter the Stop-and-copy
> stage. At this time, all the live migration data will be copied, and then
> saved to the VF device of the destination, and then the VF device of the
> destination will be started and the VM of the source will be exited.
>
> Longfang Liu (3):
> vfio/hisilicon: add acc live migration driver
> vfio/hisilicon: register the driver to vfio
> vfio/hisilicom: add debugfs for driver
>
> drivers/vfio/pci/Kconfig | 9 +
> drivers/vfio/pci/Makefile | 3 +-
> drivers/vfio/pci/hisilicon/acc_vf_migration.c | 1357 +++++++++++++++++++++++++
> drivers/vfio/pci/hisilicon/acc_vf_migration.h | 172 ++++
> drivers/vfio/pci/vfio_pci.c | 11 +
> drivers/vfio/pci/vfio_pci_private.h | 10 +
> 6 files changed, 1561 insertions(+), 1 deletion(-)
> create mode 100644 drivers/vfio/pci/hisilicon/acc_vf_migration.c
> create mode 100644 drivers/vfio/pci/hisilicon/acc_vf_migration.h
>
Sorry, Please ignore this patchset due to
the wrong email address, I will resend it.
Thanks
Longfang
next prev parent reply other threads:[~2021-04-13 1:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 8:53 Longfang Liu
2021-04-12 8:53 ` [RFC PATCH 1/3] " Longfang Liu
2021-04-12 8:53 ` [RFC PATCH 2/3] vfio/hisilicon: register the driver to vfio Longfang Liu
2021-04-12 8:53 ` [RFC PATCH 3/3] vfio/hisilicom: add debugfs for driver Longfang Liu
2021-04-13 1:17 ` liulongfang [this message]
2021-04-13 1:20 [RFC PATCH v3 0/3] vfio/hisilicon: add acc live migration driver Longfang Liu
2021-04-13 2:57 ` liulongfang
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=6bab97f7-c7ed-5837-4b7c-e49770fb9029@huawei.com \
--to=liulongfang@huawei.com \
--cc=alex.williamson@redhar.com \
--cc=cohuck@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@openeuler.org \
/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
all inboxes | Powered by JetHome®