From: "Jan Beulich" <JBeulich@suse.com>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: George.Dunlap@eu.citrix.com, tim@xen.org, eddie.dong@intel.com,
keir.xen@gmail.com, jun.nakajima@intel.com,
xen-devel@lists.xenproject.org
Subject: Re: [V11 PATCH 3/4] pvh dom0: Add and remove foreign pages
Date: Wed, 07 May 2014 08:27:08 +0100 [thread overview]
Message-ID: <5369FC6C020000780000FAE2@mail.emea.novell.com> (raw)
In-Reply-To: <20140506181254.6a0699ba@mantra.us.oracle.com>
>>> On 07.05.14 at 03:12, <mukesh.rathor@oracle.com> wrote:
> On Tue, 06 May 2014 08:51:24 +0100
> "Jan Beulich" <JBeulich@suse.com> wrote:
>
>> >>> On 06.05.14 at 03:21, <mukesh.rathor@oracle.com> wrote:
>> > "Jan Beulich" <JBeulich@suse.com> wrote:
>> >> >>> On 02.05.14 at 03:55, <mukesh.rathor@oracle.com> wrote:
>> >> > @@ -444,6 +451,10 @@ int p2m_alloc_table(struct p2m_domain *p2m)
>> >> > return rc;
>> >> > }
>> >> >
>> >> > +/*
>> >> > + * pvh fixme: when adding support for pvh non-hardware domains,
>> >> > this path must
>> >> > + * cleanup any foreign p2m types (release refcnts on them).
>> >> > + */
>> >>
>> >> And I wonder whether you shouldn't enforce this by disallowing non-
>> >> hardware domains to create foreign mappings.
>> >
>> > Hmm... Tim wanted the enforcement. That will ensure the cleanup is
>> > implemented without falling thru the cracks.
>>
>> I'm confused - aren't you stating that Tim requested the same I did?
>> Or else, what "enforcement" are you referring to?
>
> Yes, Tim requested enforcement which I added in p2m_add_foreign():
>
> + /*
> + * pvh fixme: until support is added to p2m teardown code to cleanup any
> + * foreign entries, limit this to hardware domain only.
> + */
> + if ( !is_hardware_domain(tdom) )
> + return -EPERM;
>
> Thus, non-hardware domains can't map foreign types. Not sure if there's
> anything worth enforcing in p2m_teardown with above.
I must have overlooked this - this is exactly what I was after. Sorry
for the noise.
Jan
next prev parent reply other threads:[~2014-05-07 7:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 1:55 [V11 PATCH 0/4] pvh dom0 patches Mukesh Rathor
2014-05-02 1:55 ` [V11 PATCH 1/4] pvh dom0: construct_dom0 changes Mukesh Rathor
2014-05-08 12:05 ` Tim Deegan
2014-05-02 1:55 ` [V11 PATCH 2/4] pvh dom0: Add checks and restrictions for p2m_is_foreign Mukesh Rathor
2014-05-02 1:55 ` [V11 PATCH 3/4] pvh dom0: Add and remove foreign pages Mukesh Rathor
2014-05-05 10:56 ` Jan Beulich
2014-05-06 1:21 ` Mukesh Rathor
2014-05-06 7:51 ` Jan Beulich
2014-05-07 1:12 ` Mukesh Rathor
2014-05-07 7:27 ` Jan Beulich [this message]
2014-05-07 15:36 ` Roger Pau Monné
2014-05-02 1:55 ` [V11 PATCH 4/4] dom0: add opt_dom0pvh to setup.c Mukesh Rathor
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=5369FC6C020000780000FAE2@mail.emea.novell.com \
--to=jbeulich@suse.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=eddie.dong@intel.com \
--cc=jun.nakajima@intel.com \
--cc=keir.xen@gmail.com \
--cc=mukesh.rathor@oracle.com \
--cc=tim@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 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).