From: Wei Liu <wei.liu2@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
Julien Grall <julien.grall@arm.com>,
Wei Liu <wei.liu2@citrix.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH for-4.9 4/4] docs: Clarify the expected behaviour of zero-content records
Date: Thu, 6 Apr 2017 10:35:41 +0100 [thread overview]
Message-ID: <20170406093541.zgcs7fmpl6yfefkv@citrix.com> (raw)
In-Reply-To: <58DE268D020000780014B094@prv-mh.provo.novell.com>
On Fri, Mar 31, 2017 at 01:51:09AM -0600, Jan Beulich wrote:
> >>> On 30.03.17 at 18:32, <andrew.cooper3@citrix.com> wrote:
> > @@ -631,6 +631,11 @@ The set of valid records depends on the guest architecture and type. No
> > assumptions should be made about the ordering or interleaving of
> > independent records. Record dependencies are noted below.
> >
> > +Some records are used for signalling, and explicitly have zero length. All
> > +other records contain data relevent to the migration. Data records with no
>
> relevant?
>
> > +content should be elided on the source side, as they their presence serves no
>
> Stray "they"?
>
> > +purpose, but result in extra work for the restore side.
>
> results?
>
> > @@ -719,3 +724,12 @@ restored.
> > The image header may only be extended by _appending_ additional
> > fields. In particular, the `marker`, `id` and `version` fields must
> > never change size or location.
> > +
> > +
> > +Errata
> > +======
> > +
> > +1. For compatibility with older code, the receving side of a stream should
> > + tolerate and ignore variable sized records with zero content. Xen releases
> > + between 4.6 and 4.8 could end up generating valid HVM\_PARAMS or
> > + X86\_PV\_VCPU\_{EXTENDED,XSAVE,MSRS} records with 0 content.
>
> Also elsewhere in the series you use expressions similar to this "0
> content", but especially here (with no code next to it) it is rather
> ambiguous: Do you mean zero-length content, or non-zero-length
> content being all zero, or both?
>
IIRC it is the former, zero-length content. I will fix that up while
committing.
Andrew if you think that's wrong, submit a patch to fix it.
Wei.
> Jan
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next prev parent reply other threads:[~2017-04-06 9:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-30 16:32 [PATCH for-4.9 0/4] Fix migration of PV guests on modern AMD hardware Andrew Cooper
2017-03-30 16:32 ` [PATCH for-4.9 1/4] tools/libxc: Tolerate specific zero-content records in migration v2 streams Andrew Cooper
2017-03-30 16:32 ` [PATCH for-4.9 2/4] tools/libxc: Avoid generating inappropriate zero-content records Andrew Cooper
2017-03-31 7:46 ` Jan Beulich
2017-04-05 11:55 ` Wei Liu
2017-03-30 16:32 ` [PATCH for-4.9 3/4] tools/python: Adjust migration v2 library to warn about " Andrew Cooper
2017-03-30 16:32 ` [PATCH for-4.9 4/4] docs: Clarify the expected behaviour of " Andrew Cooper
2017-03-31 7:51 ` Jan Beulich
2017-04-06 9:35 ` Wei Liu [this message]
2017-04-05 11:55 ` Wei Liu
2017-04-05 11:23 ` [PATCH for-4.9 0/4] Fix migration of PV guests on modern AMD hardware Julien Grall
2017-04-05 11:25 ` Wei Liu
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=20170406093541.zgcs7fmpl6yfefkv@citrix.com \
--to=wei.liu2@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=julien.grall@arm.com \
--cc=xen-devel@lists.xen.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;
as well as URLs for NNTP newsgroup(s).