From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
"Keir (Xen.org)" <keir@xen.org>,
Ian Campbell <Ian.Campbell@citrix.com>,
"Tim (Xen.org)" <tim@xen.org>,
"ijackson@chiark.greenend.org.uk"
<ijackson@chiark.greenend.org.uk>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH v4 1/6] xen: improve changes to xen_add_to_physmap
Date: Fri, 14 Sep 2012 16:09:18 -0700 [thread overview]
Message-ID: <20120914160918.7e61d1d0@mantra.us.oracle.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1209141652440.29232@kaball.uk.xensource.com>
On Fri, 14 Sep 2012 16:54:06 +0100
Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:
> On Fri, 14 Sep 2012, Ian Campbell wrote:
> > On Fri, 2012-09-14 at 16:44 +0100, Stefano Stabellini wrote:
> > > On Fri, 14 Sep 2012, Jan Beulich wrote:
> > > > >>> On 14.09.12 at 15:56, Ian Campbell
> > > > >>> <Ian.Campbell@citrix.com> wrote:
> > > > >> > > Might we prefer to have a batched version of this call?
> > > > >> > > I don't think we can shoehorn the necessary fields into
> > > > >> > > xen_add_to_physmap_t though.
> > > > >> >
> > > > >> > Actually, talking about this we Stefano we think we can.
> > > > >> > Since both idx and gpfn are unsigned longs they can become
> > > > >> > unions with a GUEST_HANDLE without changing the ABI on
> > > > >> > x86_32 or x86_64.
> > > > >
> > > > > Except we need both foreign_domid and size, which currently
> > > > > overlap, and there's no other spare bits. Damn.
> > > > >
> > > > > Looks like XENMEM_add_to_physmap_range is the only option :-(
> > > >
> > > > You could use the first entry in each array to specify the
> > > > counts, which would at once allow mixed granularity on each
> > > > list (should that ever turn out useful); initially you would
> > > > certainly want both counts to match.
> > >
> > > I think it would be better from the interface point of view to
> > > have idx become the number of frames, and gpfn a pointer (a
> > > GUEST_HANDLE) to a struct that contains both arrays.
> >
> > We'd need to slip in enough info to allow continuations too. Perhaps
> > that can be done by manipulating the size and the handle to keep
> > track of progress. Or maybe we can get away with just just frobbing
> > the size if we process the array backwards.
> >
> > Which is all sounding pretty gross. I'm very temped to add
> > add_to_physmap2...
>
> Yeah, I am OK with that.
Agree, pmap2.
next prev parent reply other threads:[~2012-09-14 23:09 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 11:07 [PATCH v4 0/6] ARM hypercall ABI: 64 bit ready Stefano Stabellini
2012-08-22 11:08 ` [PATCH v4 1/6] xen: improve changes to xen_add_to_physmap Stefano Stabellini
2012-09-14 12:59 ` Ian Campbell
2012-09-14 13:17 ` Ian Campbell
2012-09-14 13:47 ` Ian Campbell
2012-09-14 13:56 ` Ian Campbell
2012-09-14 14:27 ` Jan Beulich
2012-09-14 15:44 ` Stefano Stabellini
2012-09-14 15:52 ` Ian Campbell
2012-09-14 15:54 ` Stefano Stabellini
2012-09-14 23:09 ` Mukesh Rathor [this message]
2012-09-14 23:07 ` Mukesh Rathor
2012-09-17 10:54 ` Stefano Stabellini
2012-09-19 13:03 ` Ian Campbell
2012-09-19 13:09 ` Ian Campbell
2012-09-19 13:20 ` Stefano Stabellini
2012-09-19 13:50 ` Ian Campbell
2012-09-19 13:17 ` Stefano Stabellini
2012-09-19 13:55 ` Ian Campbell
2012-08-22 11:08 ` [PATCH v4 2/6] xen: xen_ulong_t substitution Stefano Stabellini
2012-08-22 11:08 ` [PATCH v4 3/6] xen: change the limit of nr_extents to UINT_MAX >> MEMOP_EXTENT_SHIFT Stefano Stabellini
2012-08-22 11:08 ` [PATCH v4 4/6] xen: introduce XEN_GUEST_HANDLE_PARAM Stefano Stabellini
2012-10-03 13:35 ` Ian Campbell
2012-10-05 9:13 ` Ian Campbell
2012-10-09 14:10 ` Stefano Stabellini
2012-08-22 11:08 ` [PATCH v4 5/6] xen: replace XEN_GUEST_HANDLE with XEN_GUEST_HANDLE_PARAM when appropriate Stefano Stabellini
2012-08-22 11:08 ` [PATCH v4 6/6] xen: more substitutions Stefano Stabellini
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=20120914160918.7e61d1d0@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=ijackson@chiark.greenend.org.uk \
--cc=keir@xen.org \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xensource.com \
/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).