From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: qemu-devel@nongnu.org, bala24@linux.vnet.ibm.com,
peterx@redhat.com, quintela@redhat.com
Subject: Re: [Qemu-devel] [PATCH v2] migration: update docs
Date: Fri, 27 Apr 2018 20:06:30 +0100 [thread overview]
Message-ID: <20180427190629.GQ2608@work-vm> (raw)
In-Reply-To: <bd81d081-e7ca-95af-7922-ae5f149e6edf@redhat.com>
* Eric Blake (eblake@redhat.com) wrote:
> On 04/27/2018 12:34 PM, Dr. David Alan Gilbert (git) wrote:
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> >
> > Update the migration docs:
> >
> > Among other changes:
> > * Added a general list of advice for device authors
> > * Reordered the section on conditional state (subsections etc)
> > into the order we prefer.
> > * Add a note about firmware
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> > ---
> > docs/devel/migration.rst | 531 +++++++++++++++++++++++++++------------
> > 1 file changed, 375 insertions(+), 156 deletions(-)
>
> > +
> > +General advice for device developers
> > +------------------------------------
> > +
> > +- The migration state saved should reflect the device being modelled rather
> > + than the way your implementation works. That way if you change the implementation
>
> Three spaces between sentences is unusual.
>
Fixed.
> > +
> > +- The migration might happen at an inconvenient point,
> > + e.g. right in the middle of the guest reprogramming the device, during
> > + guest reboot or shutdown or while the device is waiting for external IO.
> > + It's strongly preferred that migrations do not fail in this situation,
> > + since in the cloud environment migrations might happen automatically to
> > + VMs that the administrator doesn't directly control.
>
> Not for this patch, but is there any mechanism for a device to request
> that migration be delayed just long enough for the device to have a
> chance to get out of that inconsistent state, rather than having to
> migrate the inconvenient state?
Not generally no; for an iterative device you can lie and say you've
still got data to migrate but it gets very messy.
For a non-iterative device it's too late, the CPU is already paused and
you're expected to stream the device state.
> > +When we migrate a device, we save/load the state as a series
> > +of fields. Some times, due to bugs or new functionality, we need to
>
> Sometimes
Done.
>
> > @@ -328,9 +329,12 @@ Sometimes members of the VMState are no longer needed:
> >
> > - removing them will break migration compatibility
> >
> > - - making them version dependent and bumping the version will break backwards migration compatibility.
> > + - making them version dependent and bumping the version will break backward migration compatibility.
>
> Is it worth worrying about long lines?
I'm not too bothered, but I've wrapped this one.
Dave
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc. +1-919-301-3266
> Virtualization: qemu.org | libvirt.org
>
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2018-04-27 19:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 17:34 [Qemu-devel] [PATCH v2] migration: update docs Dr. David Alan Gilbert (git)
2018-04-27 18:14 ` Eric Blake
2018-04-27 19:06 ` Dr. David Alan Gilbert [this message]
2018-04-28 2:26 ` Peter Xu
2018-04-29 14:37 ` Balamuruhan S
2018-05-03 17:50 ` 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=20180427190629.GQ2608@work-vm \
--to=dgilbert@redhat.com \
--cc=bala24@linux.vnet.ibm.com \
--cc=eblake@redhat.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 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).