From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, julien.grall@linaro.org,
tim@xen.org, xen-devel@lists.xen.org,
David Vrabel <david.vrabel@citrix.com>,
xen-devel@lists.xenproject.org,
Boris Ostrovsky <boris.ostrovsky@oracle.com>
Subject: Re: [PATCH LINUX RFC] xen: privcmd: implement IOCTL_PRIVCMD_MMAPBATCH_V2_UNCACHED
Date: Fri, 20 Dec 2013 09:38:04 -0500 [thread overview]
Message-ID: <20131220143804.GA29778@phenom.dumpdata.com> (raw)
In-Reply-To: <1387549128.17289.87.camel@kazak.uk.xensource.com>
On Fri, Dec 20, 2013 at 02:18:48PM +0000, Ian Campbell wrote:
> On Fri, 2013-12-20 at 09:13 -0500, Konrad Rzeszutek Wilk wrote:
> > On Fri, Dec 20, 2013 at 09:19:13AM +0000, Ian Campbell wrote:
> > > On Wed, 2013-12-18 at 16:16 -0500, Konrad Rzeszutek Wilk wrote:
> > > > On Wed, Dec 18, 2013 at 05:30:37PM +0000, Ian Campbell wrote:
> > > > > On ARM we want to use uncached foreign mappings while building the domain
> > > > > because the guests start with MMU and caches disabled.
> > > > >
> > > >
> > > > Why introduce a new ioctl? Could we piggyback on the old one and on ARM
> > > > do the uncached.
> > >
> > > Because there are (going to be) other circumstances where we do want a
> > > cached foreign mapping, specifically migration.
> >
> > Why not then just expand the existing ioctl with a flag? ARM after all
> > is still experimental so you could do that.
>
> Well, ARM just uses the same ioctl as on x86, so we wouldn't be
> expanding, but duplicating, which didn't seem worth it.
>
> And secondly, unlike hypercalls, the ioctls are part of Linux's
> interface, so I'm not sure how changing them would go down.
You wouldn't break - expanding the structure still preserves the ABI.
Only more recent toolstacks would know how to use it.
But I get your point - you are hesistant to modify it the existing one.
How about making this new more flexible - perhaps have a 'flag' and
'version' or even 'size' to account for changes? And call it IOCTL_.._V3
which would allows us to add more things in the future (depending on the
version size)? That way if something else likes this pops up we have
a nice escape vehicle ready.
>
> Ian.
>
next prev parent reply other threads:[~2013-12-20 14:39 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 17:28 [PATCH RFC] xen: arm: use uncached foreign mappings when building guests Ian Campbell
2013-12-18 17:30 ` [PATCH LINUX RFC] xen: privcmd: implement IOCTL_PRIVCMD_MMAPBATCH_V2_UNCACHED Ian Campbell
2013-12-18 19:24 ` Stefano Stabellini
2013-12-18 21:16 ` Konrad Rzeszutek Wilk
2013-12-20 9:19 ` Ian Campbell
2013-12-20 14:13 ` Konrad Rzeszutek Wilk
2013-12-20 14:18 ` Ian Campbell
2013-12-20 14:38 ` Konrad Rzeszutek Wilk [this message]
2013-12-20 14:44 ` Ian Campbell
2013-12-18 17:30 ` [PATCH XEN RFC] libxc: use an uncached mapping of guest ram in domain builder Ian Campbell
2013-12-18 21:14 ` Konrad Rzeszutek Wilk
2013-12-20 9:19 ` Ian Campbell
2013-12-18 18:41 ` [PATCH RFC] xen: arm: use uncached foreign mappings when building guests David Vrabel
2013-12-19 10:10 ` Ian Campbell
2013-12-19 11:23 ` Stefano Stabellini
2013-12-19 11:29 ` Ian Campbell
2014-01-02 15:10 ` David Vrabel
2014-01-06 10:05 ` Ian Campbell
2013-12-19 4:16 ` Julien Grall
2013-12-19 4:26 ` Julien Grall
2013-12-19 14:30 ` Ian Campbell
2014-01-06 12:10 ` 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=20131220143804.GA29778@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--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.