All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Gurtovoy <mgurtovoy@nvidia.com>
To: "virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>,
	Jason Wang <jasowang@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"cohuck@redhat.com" <cohuck@redhat.com>
Cc: Parav Pandit <parav@nvidia.com>,
	Shahaf Shuler <shahafs@nvidia.com>, Ariel Adam <aadam@redhat.com>,
	Amnon Ilan <ailan@redhat.com>, Bodong Wang <bodong@nvidia.com>,
	Jason Gunthorpe <jgg@nvidia.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Eugenio Perez Martin <eperezma@redhat.com>,
	Liran Liss <liranl@nvidia.com>, Oren Duer <oren@nvidia.com>
Subject: Live Migration of Virtio Virtual Function
Date: Thu, 12 Aug 2021 12:08:41 +0000	[thread overview]
Message-ID: <DM4PR12MB504062CEF6BEDABE6F76DEC2DEF99@DM4PR12MB5040.namprd12.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1880 bytes --]

Hi all,
Live migration is one of the most important features of virtualization and virtio devices are oftenly found in virtual environments.

The migration process is managed by a migration SW that is running on the hypervisor and the VM is not aware of the process at all.

Unlike the vDPA case, a real pci Virtual Function state resides in the HW.

In our vision, in order to fulfil the Live migration requirements for virtual functions, each physical function device must implement migration operations. Using these operations, it will be able to master the migration process for the virtual function devices. Each capable physical function device has a supervisor permissions to change the virtual function operational states, save/restore its internal state and start/stop dirty pages tracking.

An example of this approach can be seen in the way NVIDIA performs live migration of a ConnectX NIC function:
https://github.com/jgunthorpe/linux/commits/mlx5_vfio_pci

NVIDIAs SNAP technology enables hardware-accelerated software defined PCIe devices. virtio-blk/virtio-net/virtio-fs SNAP used for storage and networking solutions. The host OS/hypervisor uses its standard drivers that are implemented according to a well-known VIRTIO specifications.

In order to implement Live Migration for these virtual function devices, that use a standard drivers as mentioned, the specification should define how HW vendor should build their devices and for SW developers to adjust the drivers.
This will enable specification compliant vendor agnostic solution.

This is exactly how we built the migration driver for ConnectX (internal HW design doc) and I guess that this is the way other vendors work.

For that, I would like to know if the approach of "PF that controls the VF live migration process" is acceptable by the VIRTIO technical group ?

Cheers,
-Max.

[-- Attachment #2: Type: text/html, Size: 4357 bytes --]

             reply	other threads:[~2021-08-12 12:08 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 12:08 Max Gurtovoy [this message]
2021-08-17  8:51 ` [virtio-comment] Live Migration of Virtio Virtual Function Jason Wang
2021-08-17  9:11   ` Max Gurtovoy
2021-08-17  9:44     ` Jason Wang
2021-08-18  9:15       ` Max Gurtovoy
2021-08-18 10:46         ` Jason Wang
2021-08-18 11:45           ` Max Gurtovoy
2021-08-19  2:44             ` Jason Wang
2021-08-19 14:58               ` Michael S. Tsirkin
2021-08-20  2:17                 ` Jason Wang
2021-08-20  7:03                   ` Michael S. Tsirkin
2021-08-20  7:49                     ` Jason Wang
2021-08-20 11:06                       ` Michael S. Tsirkin
2021-08-23  3:20                         ` Jason Wang
2021-08-23 12:08                   ` Dr. David Alan Gilbert
2021-08-24  3:00                     ` Jason Wang
2021-08-19 11:12             ` Dr. David Alan Gilbert
2021-08-19 14:16               ` Max Gurtovoy
2021-08-19 14:24                 ` Dr. David Alan Gilbert
2021-08-19 15:20                   ` Max Gurtovoy
2021-08-20  2:24                     ` Jason Wang
2021-08-20 10:26                       ` Max Gurtovoy
2021-08-20 11:16                         ` Jason Wang
2021-08-22 10:05                           ` Max Gurtovoy
2021-08-23  3:10                             ` Jason Wang
2021-08-23  8:55                               ` Max Gurtovoy
2021-08-24  2:41                                 ` Jason Wang
2021-08-24 13:10                                   ` Jason Gunthorpe
2021-08-25  4:58                                     ` Jason Wang
2021-08-25 18:13                                       ` Jason Gunthorpe
2021-08-26  3:15                                         ` Jason Wang
2021-08-26 12:27                                           ` Jason Gunthorpe
2021-08-23 12:18                     ` Dr. David Alan Gilbert

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=DM4PR12MB504062CEF6BEDABE6F76DEC2DEF99@DM4PR12MB5040.namprd12.prod.outlook.com \
    --to=mgurtovoy@nvidia.com \
    --cc=aadam@redhat.com \
    --cc=ailan@redhat.com \
    --cc=bodong@nvidia.com \
    --cc=cohuck@redhat.com \
    --cc=eperezma@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=jgg@nvidia.com \
    --cc=liranl@nvidia.com \
    --cc=mst@redhat.com \
    --cc=oren@nvidia.com \
    --cc=parav@nvidia.com \
    --cc=shahafs@nvidia.com \
    --cc=stefanha@redhat.com \
    --cc=virtio-comment@lists.oasis-open.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 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.