From: Mukesh Rathor <mukesh.rathor@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "Xen-devel@lists.xensource.com" <Xen-devel@lists.xensource.com>,
Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [RFC PATCH 8/8]: PVH: privcmd changes
Date: Wed, 12 Sep 2012 11:00:03 -0700 [thread overview]
Message-ID: <20120912110003.4d694761@mantra.us.oracle.com> (raw)
In-Reply-To: <1347435419.10570.107.camel@dagon.hellion.org.uk>
On Wed, 12 Sep 2012 08:36:59 +0100
Ian Campbell <Ian.Campbell@citrix.com> wrote:
> On Wed, 2012-09-12 at 02:32 +0100, Mukesh Rathor wrote:
> > On Tue, 11 Sep 2012 15:10:23 +0100
> > Ian Campbell <Ian.Campbell@citrix.com> wrote:
> >
> > > On Thu, 2012-08-16 at 02:07 +0100, Mukesh Rathor wrote:
> > > > ---
> > > > drivers/xen/privcmd.c | 68
> > > > + if (rc != 0) {
> > > > + pr_warn("%s Could not alloc %d pfns rc:%d\n",
> > > > __FUNCTION__,
> > > > + numpgs, rc);
> > > > + kfree(savp->sp_paga);
> > > > + kfree(savp);
> > > > + return -ENOMEM;
> > > > + }
> > >
> > > I've just been building on this patch to make proper mmap foreign
> > > support on ARM and I was looking for the place which freed this,
> > > both the pages back to the balloon and then the array itself.
> > > There is code in privcmd_close which unmaps the P2M, but I can't
> > > find the code which frees things back to the balloon. Have I
> > > missed something?
> >
> > You are right, I missed the free. Let me revisit it and make some
> > changes.
>
> Thanks.
>
> Any comments on the rest of my mail? We need to agree what the
> interface between the generic and the per-arch code is going to look
> like here.
>
> Ian.
Right, I am paging it all in the brain right now, as I made the changes
a while ago :). I will attempt to change the code according to
your email, to come up with generic interface. Also I am going to come
up with xen_unmap_domain_mfn_range. Mostly agree with your email. More
soon.
thanks,
Mukesh
next prev parent reply other threads:[~2012-09-12 18:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 1:07 [RFC PATCH 8/8]: PVH: privcmd changes Mukesh Rathor
2012-08-17 10:01 ` Ian Campbell
2012-09-11 14:10 ` Ian Campbell
2012-09-12 1:32 ` Mukesh Rathor
2012-09-12 7:36 ` Ian Campbell
2012-09-12 18:00 ` Mukesh Rathor [this message]
2012-09-13 1:19 ` Mukesh Rathor
2012-09-13 11:37 ` Ian Campbell
2012-09-13 18:27 ` Mukesh Rathor
2012-09-13 19:01 ` Ian Campbell
2012-09-13 19:05 ` Konrad Rzeszutek Wilk
2012-09-14 0:34 ` Mukesh Rathor
2012-09-17 23:50 ` Mukesh Rathor
2012-09-18 7:32 ` 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=20120912110003.4d694761@mantra.us.oracle.com \
--to=mukesh.rathor@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=Xen-devel@lists.xensource.com \
--cc=konrad.wilk@oracle.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).