All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Kevin Tian <kevin.tian@intel.com>, Wei Liu <wei.liu2@citrix.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>, Tim Deegan <tim@xen.org>,
	Jun Nakajima <jun.nakajima@intel.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Keir Fraser <keir@xen.org>
Subject: Re: [PATCH v3] x86/p2m: use large pages for MMIO mappings
Date: Mon, 18 Jan 2016 16:32:01 +0000	[thread overview]
Message-ID: <1453134721.6020.180.camel@citrix.com> (raw)
In-Reply-To: <569CAC5502000078000C7CB2@prv-mh.provo.novell.com>

On Mon, 2016-01-18 at 01:11 -0700, Jan Beulich wrote:
> > > > On 15.01.16 at 15:55, <ian.campbell@citrix.com> wrote:
> > On Fri, 2016-01-15 at 07:39 -0700, Jan Beulich wrote:
> > > I don't think I agree - there are two models. The meaning of
> > > -E2BIG for the caller to retry with a smaller amount doesn't exist in
> > > the new model anymore, and hence libxc wouldn't need to deal
> > > with that case anymore if the ARM side got updated too.
> > 
> > If ARM still has this behaviour then it is still part of the interface
> > IMHO, whether or not x86 chooses to use this particular possibility or
> > not.
> 
> Okay, that's a valid perspective.
> 
> > >  Whereas
> > > positive return values don't exist in the present (prior to the
> > > patch)
> > > model.
> > 
> > If there were two models in the way you suggest then there would surely
> > be
> > an ifdef somewhere in libxc. The fact that the two behaviours can
> > coexist
> > means to me that they are two halves of the same model (irrespective of
> > arch code opting in to different halves, and irrespective if having
> > updated
> > ARM there are then fewer possible error cases and a follow up
> > simplification to libxc).
> 
> Same here.
> 
> > Anyway, the current three-bullet point description of the new ABI in
> > the
> > commit message is clearly insufficient for the complexity whether we
> > want
> > to split hairs about how many models there are here or not.
> > 
> > At the very least the interface (_all_ aspects of it) should be
> > thoroughly
> > described in domctl.h next to XEN_DOMCTL_memory_mapping (which I just
> > noticed describes E2BIG and isn't changed here at all).
> 
> I can certainly do that, but I'd like to avoid doing this for the current
> model before having taken a decision on whether to instead use the
> alternative described in the post-commit message issue list. In fact,
> the more I think about it, the more I'm convinced that the alternative
> provides the more consistent interface, no matter that it leaves more
> of the (cleanup) work to the caller.

I must confess I'm not entirely following what the various proposals are,
but FWIW I have no in-principal problem with the caller (by which I think
you mean the tools?) having to cleanup partial success in order to allow
incremental attempts to set things up with smaller and smaller page sizes.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2016-01-18 16:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-14 10:04 [PATCH v3] x86/p2m: use large pages for MMIO mappings Jan Beulich
2016-01-15 10:09 ` Ian Campbell
2016-01-15 10:47   ` Jan Beulich
2016-01-15 13:57     ` Ian Campbell
2016-01-15 14:39       ` Jan Beulich
2016-01-15 14:55         ` Ian Campbell
2016-01-18  8:11           ` Jan Beulich
2016-01-18 16:32             ` Ian Campbell [this message]
2016-01-18 16:51               ` Jan Beulich
2016-01-18 17:00                 ` Ian Campbell

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=1453134721.6020.180.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=jun.nakajima@intel.com \
    --cc=keir@xen.org \
    --cc=kevin.tian@intel.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --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 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.