All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>,
	Xen-devel <xen-devel@lists.xen.org>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [PATCH] tools/many: Fix Generation ID restore interface.
Date: Tue, 26 Nov 2013 10:57:28 +0000	[thread overview]
Message-ID: <52947E98.1020105@eu.citrix.com> (raw)
In-Reply-To: <1385412035-6938-1-git-send-email-andrew.cooper3@citrix.com>

On 11/25/2013 08:40 PM, Andrew Cooper wrote:
> The original Generation ID code was submitted before the specification had
> been finalised, and changed completely between the final draft and formal
> release.
>
> Most notably, the size of the Generation ID has doubled to 128 bits, and
> changing it now involves writing a new cryptographically random number in the
> appropriate location, rather than simply incrementing it.
>
> The xc_domain_save() side of the code is fine, but the xc_domain_restore()
> needs substantial changes to be usable.
>
> This patch replaces the old xc_domain_restore() parameters with a new optional
> restore_callback.  If the callback is provided, and an appropriate hunk is
> found in the migration stream, the appropriate piece of guest memory is mapped
> and provided to the callback.
>
> This patch also fixes all the in-tree callers of xc_domain_restore().  All
> callers had the functionality disabled, and never exposed in a public way.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> CC: Ian Campbell <Ian.Campbell@citrix.com>
> CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
> CC: George Dunlap <george.dunlap@eu.citrix.com>
>
> ---
>
> George:
>
>    Despite this being a feature, I am requesting a freeze exemption.  It is
>    functionality which was not used (or indeed useful) before, and remains that
>    way as far as in-tree consumers are concerned.
>
>    However, as there has been once recent xc_domain_restore() API change, it is
>    less disruptive to other users to do another API change before the 4.4
>    release rather than afterwards.

1. What is the value of this feature?

It's not used and not useful, so as far as I can tell, the value is 0. 
xc_domain_restore() is not a stable interface, so changing it isn't a 
consideration.

2. What is the risk of bugs that may slip the release?  That may not be 
found and ship in the release?

It looks fairly straightforward, but the code it's modifying is 
incredibly fragile, and has a lot of potential combinations which are 
hard to test.

0 value + non-zero risk => I don't see a reason to accept it.

  -George

      parent reply	other threads:[~2013-11-26 10:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 20:40 [PATCH] tools/many: Fix Generation ID restore interface Andrew Cooper
2013-11-26 10:11 ` Ian Campbell
2013-11-26 10:41   ` Andrew Cooper
2013-11-26 10:45     ` Ian Campbell
2013-11-26 10:51       ` Andrew Cooper
2013-11-26 10:57 ` George Dunlap [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=52947E98.1020105@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=andrew.cooper3@citrix.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 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.