From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>,
Wei Liu <wei.liu2@citrix.com>,
Christian Lindig <christian.lindig@citrix.com>,
Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 2/2] xen: Drop DOMCTL_getmemlist and xc_get_pfn_list()
Date: Mon, 22 Jan 2018 13:29:31 +0000 [thread overview]
Message-ID: <7d6bbfac-9d26-0792-d63b-6da30e7f71ee@citrix.com> (raw)
In-Reply-To: <5A65EEAF02000078001A1168@prv-mh.provo.novell.com>
On 22/01/18 13:01, Jan Beulich wrote:
>>>> On 22.01.18 at 13:52, <andrew.cooper3@citrix.com> wrote:
>> On 22/01/18 12:41, Jan Beulich wrote:
>>>>>> On 19.01.18 at 20:19, <andrew.cooper3@citrix.com> wrote:
>>>> --- a/xen/include/public/domctl.h
>>>> +++ b/xen/include/public/domctl.h
>>>> @@ -1117,7 +1117,7 @@ struct xen_domctl {
>>>> #define XEN_DOMCTL_pausedomain 3
>>>> #define XEN_DOMCTL_unpausedomain 4
>>>> #define XEN_DOMCTL_getdomaininfo 5
>>>> -#define XEN_DOMCTL_getmemlist 6
>>>> +/* #define XEN_DOMCTL_getmemlist 6 Obsolete */
>>>> /* #define XEN_DOMCTL_getpageframeinfo 7 Obsolete - use
>> getpageframeinfo3 */
>>>> /* #define XEN_DOMCTL_getpageframeinfo2 8 Obsolete - use
>> getpageframeinfo3 */
>>>> #define XEN_DOMCTL_setvcpuaffinity 9
>>> Just like mentioned upon someone else's recent submission to
>>> remove a domctl sub-op: You want to bump the interface version
>>> (remember that the bump done for the shim doesn't count as long
>>> as there is a possible plan to make that other recent commit part
>>> of a 4.10.x stable release).
>> There has already been a version bump for 4.11.
> I know, hence the longer explanation, which I had given also
> when the shim series was first posted: If that domctl change is
> to be backported to 4.10, interface version 0xf will be burnt
> for _just that change_. That other bump is sufficient only when
> there is no plan whatsoever to backport the earlier change.
If that change is backported to 4.10, that is the time to burn another
interface version. Not in this patch.
Also, this demonstrates the inherent problems with the interface
version. This trick can only ever be played on the most recently
released branch. It is a dire trainwreck in terms of versioning, and
serves only to make it almost impossible to make changes to an installed
system.
>
>>> Plus I again question whether
>>> "Obsolete" is an appropriate description for something that's no
>>> longer part of the interface (rather than just being suggested to
>>> no longer be used). Is there any point in keeping the old sub-op
>>> as a comment in the first place?
>> To avoid the number being reused. It also serves as a marker to locate
>> the change which removed the hypercall if anyone is doing archaeology in
>> the future.
> The number getting re-used with a higher interface version is no
> problem at all, afaics.
Yes it is. do_domctl() (which inserts the domctl version) is remote
from the choice of op to use, so reusing numbers means that the language
subs around libxc can issue completely erroneous hypercalls without
suffering a build or version failure. (Again, see trainwreck of a
versioning scheme.)
~Andrew
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel
next prev parent reply other threads:[~2018-01-22 13:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-19 19:19 [PATCH 1/2] tools/ocaml: Drop coredump infrastructure Andrew Cooper
2018-01-19 19:19 ` [PATCH 2/2] xen: Drop DOMCTL_getmemlist and xc_get_pfn_list() Andrew Cooper
2018-01-22 12:41 ` Jan Beulich
2018-01-22 12:52 ` Andrew Cooper
2018-01-22 13:01 ` Jan Beulich
2018-01-22 13:29 ` Andrew Cooper [this message]
2018-01-22 13:43 ` Jan Beulich
2018-01-25 19:33 ` [PING] " Andrew Cooper
2018-01-26 14:29 ` Wei Liu
2018-01-25 19:32 ` [PING] Re: [PATCH 1/2] tools/ocaml: Drop coredump infrastructure Andrew Cooper
2018-01-25 19:47 ` Christian Lindig
2018-01-25 19:50 ` Andrew Cooper
2018-01-25 20:02 ` Christian Lindig
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=7d6bbfac-9d26-0792-d63b-6da30e7f71ee@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=christian.lindig@citrix.com \
--cc=wei.liu2@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 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).