qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: "Tarun Gupta (SW-GPU)" <targupta@nvidia.com>
Cc: kevin.tian@intel.com, cjia@nvidia.com, quintela@redhat.com,
	qemu-devel@nongnu.org, Kirti Wankhede <kwankhede@nvidia.com>,
	dgilbert@redhat.com, yan.y.zhao@intel.com, lushenming@huawei.com,
	alex.williamson@redhat.com, dnigam@nvidia.com,
	berrange@redhat.com, philmd@redhat.com
Subject: Re: [PATCH v2 1/1] docs/devel: Add VFIO device migration documentation
Date: Thu, 18 Mar 2021 13:28:40 +0100	[thread overview]
Message-ID: <20210318132840.22c8a6ef.cohuck@redhat.com> (raw)
In-Reply-To: <c01589ee-d007-77da-83d1-fb6096f6f144@nvidia.com>

On Tue, 16 Mar 2021 21:48:38 +0530
"Tarun Gupta (SW-GPU)" <targupta@nvidia.com> wrote:

> On 3/15/2021 10:52 PM, Cornelia Huck wrote:
> > 
> > On Thu, 11 Mar 2021 00:50:09 +0530
> > Tarun Gupta <targupta@nvidia.com> wrote:
> >   
> >> Document interfaces used for VFIO device migration. Added flow of state changes
> >> during live migration with VFIO device. Tested by building docs with the new
> >> vfio-migration.rst file.
> >>
> >> v2:
> >> - Included the new vfio-migration.rst file in index.rst
> >> - Updated dirty page tracking section, also added details about
> >>    'pre-copy-dirty-page-tracking' opt-out option.
> >> - Incorporated comments around wording of doc.
> >>
> >> Signed-off-by: Tarun Gupta <targupta@nvidia.com>
> >> Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
> >> ---
> >>   MAINTAINERS                   |   1 +
> >>   docs/devel/index.rst          |   1 +
> >>   docs/devel/vfio-migration.rst | 135 ++++++++++++++++++++++++++++++++++
> >>   3 files changed, 137 insertions(+)
> >>   create mode 100644 docs/devel/vfio-migration.rst
> >>  
> > 
> > (...)
> >   
> >> diff --git a/docs/devel/vfio-migration.rst b/docs/devel/vfio-migration.rst
> >> new file mode 100644
> >> index 0000000000..6196fb132c
> >> --- /dev/null
> >> +++ b/docs/devel/vfio-migration.rst
> >> @@ -0,0 +1,135 @@
> >> +=====================
> >> +VFIO device Migration
> >> +=====================  
> > 
> > Maybe add an introductory sentence or two describing the general
> > approach? I.e. we have a general framework, and specific support for
> > devices needs to be hooked up.  
> 
> Ummm, the below paragraph does describe the approach we're using for the 
> migration framework involving pre-copy and stop-and-copy phase.
> Can you help elaborate more on the general approach you'd like to have?

The document dives right in with how vfio devices are using an
iterative approach etc. A quick overview of the general setup (before
you are getting to the different phases) might be helpful, i.e. who
does what. Not sure what we expect a reader of this document to know
already.

> 
> >   
> >> +
> >> +VFIO devices use an iterative approach for migration because certain VFIO
> >> +devices (e.g. GPU) have large amount of data to be transfered. The iterative
> >> +pre-copy phase of migration allows for the guest to continue whilst the VFIO
> >> +device state is transferred to the destination, this helps to reduce the total
> >> +downtime of the VM. VFIO devices can choose to skip the pre-copy phase of
> >> +migration by returning pending_bytes as zero during the pre-copy phase.  
> > 
> > What about something like:
> > 
> > "Migration of VFIO devices consists of two phases: the optional
> > pre-copy phase, and the stop-and-copy phase. The pre-copy phase is
> > iterative and allows to accommodate VFIO devices that have a large
> > amount of data that needs to be transferred. The iterative pre-copy
> > phase..."
> >   
> 
> Thanks, this looks better. I'll update it in next version incorporating 
> the other comments too below.



      reply	other threads:[~2021-03-18 12:30 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-10 19:20 [PATCH v2 1/1] docs/devel: Add VFIO device migration documentation Tarun Gupta
2021-03-11  9:40 ` Daniel P. Berrangé
2021-03-11 19:41   ` Dr. David Alan Gilbert
2021-03-12  2:30     ` Tian, Kevin
2021-03-16 15:46       ` Dr. David Alan Gilbert
2021-03-17  1:44         ` Tian, Kevin
2021-03-12  3:13 ` Tian, Kevin
2021-03-16 13:34   ` Tarun Gupta (SW-GPU)
2021-03-17  1:51     ` Tian, Kevin
2021-03-15 17:22 ` Cornelia Huck
2021-03-16 16:18   ` Tarun Gupta (SW-GPU)
2021-03-18 12:28     ` Cornelia Huck [this message]

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=20210318132840.22c8a6ef.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=alex.williamson@redhat.com \
    --cc=berrange@redhat.com \
    --cc=cjia@nvidia.com \
    --cc=dgilbert@redhat.com \
    --cc=dnigam@nvidia.com \
    --cc=kevin.tian@intel.com \
    --cc=kwankhede@nvidia.com \
    --cc=lushenming@huawei.com \
    --cc=philmd@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=targupta@nvidia.com \
    --cc=yan.y.zhao@intel.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).