From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Tamas Lengyel <tlengyel@novetta.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Razvan Cojocaru <rcojocaru@bitdefender.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <george.dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Ian Jackson <ian.jackson@eu.citrix.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>,
xen-devel@lists.xenproject.org, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v2 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access
Date: Mon, 1 Feb 2016 14:45:22 +0000 [thread overview]
Message-ID: <1454337922.28781.102.camel@citrix.com> (raw)
In-Reply-To: <56ABA5CA02000078000CC820@prv-mh.provo.novell.com>
On Fri, 2016-01-29 at 09:47 -0700, Jan Beulich wrote:
> > > > On 29.01.16 at 17:32, <tlengyel@novetta.com> wrote:
> > On Fri, Jan 29, 2016 at 9:19 AM, Jan Beulich <JBeulich@suse.com> wrote:
> > > > > > On 29.01.16 at 17:12, <tlengyel@novetta.com> wrote:
> > > > On Fri, Jan 29, 2016 at 4:03 AM, Jan Beulich <JBeulich@suse.com>
> > > > wrote:
> > > > > > > > On 28.01.16 at 21:58, <tlengyel@novetta.com> wrote:
> > > > > > --- a/xen/include/public/memory.h
> > > > > > +++ b/xen/include/public/memory.h
> > > > > > @@ -423,11 +423,14 @@ struct xen_mem_access_op {
> > > > > > /* xenmem_access_t */
> > > > > > uint8_t access;
> > > > > > domid_t domid;
> > > > > > + uint16_t altp2m_idx;
> > > > > > + uint16_t _pad;
> > > > > > /*
> > > > > > * Number of pages for set op
> > > > > > * Ignored on setting default access and other ops
> > > > > > */
> > > > > > uint32_t nr;
> > > > > > + uint32_t _pad2;
> > > > >
> > > > > Repeating what I had said on v1: So this is a tools only
> > > > > interface,
> > > > > yes. But it's not versioned (other than e.g. domctl and sysctl),
> > > > > so
> > > > > altering the interface structure is at least fragile.
> > > >
> > > > Not sure what I can do to address this.
> > >
> > > Deprecate the old interface and introduce a new one. But other
> > > maintainers' opinions would be welcome.
> >
> > That seems like a very heavy handed solution to me.
>
> I understand that - hence the request for others' opinions.
It's unfortunate that we've found ourselves here, but I think rather than
deprecating the current and adding a new op alongside we should just accept
the one-time fragility this time around, add the version field as part of
this set of changes and try and remember to include a version number for
next time we add a tools only interface. I don't think xenaccess is yet
widely used outside of Tamas and the Bitdfender folks, who I would assume
can cope with such a change.
I could accept changing the op number would make sense, but I don't think
we should deprecate the old one (which implies continuing to support it in
parallel), if we go this route we should just retire the old number to
straight away to return -ENOSYS (or maybe -EACCESS, which is what a version
mismatch would have resulted in).
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-02-01 14:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-28 20:58 [PATCH v2 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access Tamas K Lengyel
2016-01-28 20:58 ` [PATCH v2 2/2] altp2m: Implement p2m_get_mem_access for altp2m views Tamas K Lengyel
2016-01-29 11:03 ` [PATCH v2 1/2] altp2m: Merge p2m_set_altp2m_mem_access and p2m_set_mem_access Jan Beulich
2016-01-29 16:12 ` Lengyel, Tamas
2016-01-29 16:19 ` Jan Beulich
2016-01-29 16:32 ` Lengyel, Tamas
2016-01-29 16:47 ` Jan Beulich
2016-02-01 14:45 ` Ian Campbell [this message]
2016-02-01 15:22 ` Ian Jackson
2016-02-01 16:39 ` Jan Beulich
2016-02-01 16:58 ` Ian Jackson
2016-02-01 17:03 ` Jan Beulich
2016-02-01 16:21 ` Jan Beulich
2016-02-01 16:30 ` Ian Campbell
2016-02-01 16:35 ` Lengyel, Tamas
2016-02-01 16:41 ` Jan Beulich
2016-02-01 16:36 ` Jan Beulich
2016-02-01 16:36 ` Lengyel, Tamas
2016-02-01 11:02 ` 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=1454337922.28781.102.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=keir@xen.org \
--cc=rcojocaru@bitdefender.com \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tlengyel@novetta.com \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xenproject.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).