From: Julien Grall <julien.grall@linaro.org>
To: Mukesh Rathor <mukesh.rathor@oracle.com>
Cc: Xen-devel@lists.xensource.com,
Ian Campbell <ian.campbell@citrix.com>,
george.dunlap@eu.citrix.com, tim@xen.org, keir.xen@gmail.com,
Jan Beulich <jbeulich@suse.com>,
dgdegra@tycho.nsa.gov
Subject: Re: [V7 PATCH 5/7] pvh: change xsm_add_to_physmap
Date: Thu, 20 Feb 2014 13:49:58 +0000 [thread overview]
Message-ID: <53060806.7040903@linaro.org> (raw)
In-Reply-To: <20140219182227.6a37a33c@mantra.us.oracle.com>
On 02/20/2014 02:22 AM, Mukesh Rathor wrote:
> On Wed, 12 Feb 2014 16:47:54 +0000
> Julien Grall <julien.grall@linaro.org> wrote:
>
>> Hi Mukesh,
>>
>> On 12/17/2013 02:38 AM, Mukesh Rathor wrote:
>>> In preparation for the next patch, we update xsm_add_to_physmap to
>>> allow for checking of foreign domain. Thus, the current domain must
>>> have the right to update the mappings of target domain with pages
>>> from foreign domain.
>>>
>>> Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
>>
>> While I was playing with XSM on ARM, I have noticed that Daniel De
>> Graff has added xsm_map_gfmn_foreign few months ago (see commit
>> 0b201e6).
>>
>> Would it be suitable to use this XSM instead of extending
>> xsm_add_to_physmap?
>>
>> Regards,
>>
>
> Not the same thing. add to physmap could be adding to a domain's
> physmap pages from a foreign domain.
Let assume you don't modify xsm_add_to_physmap, in this case:
- xsm_add_to_physmap checks if the current domain is allowed to
modify the p2m of a given domain
- xsm_map_gfmn_foreign checks if the given domain is allowed to have
foreign mapping from the foreign domain
Both XSM are distinct and should be used together. You don't care that
the current domain can modify a given P2M domain to add foreign mapping.
You only want to know if a given domain is able to have foreign mapping
from a specific foreign domain.
IHMO, your solution to modify xsm_add_to_physmap will complexify the
policy because you need to explicitly say:
- my domain A is able to modify P2M of domain B which is able to have
foreign map from domain C
- my domain D is able to modify P2M of domain B which is able to have
foreign map from domain C
The last part is redundant.
Cheers,
--
Julien Grall
next prev parent reply other threads:[~2014-02-20 13:49 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 2:38 [V7 PATCH 0/7]: PVH dom0 Mukesh Rathor
2013-12-17 2:38 ` [V7 PATCH 1/7] pvh dom0: move some pv specific code to static functions Mukesh Rathor
2013-12-17 2:38 ` [V7 PATCH 2/7] pvh dom0: construct_dom0 changes Mukesh Rathor
2013-12-17 2:38 ` [V7 PATCH 3/7] pvh dom0: implement XENMEM_add_to_physmap_range for x86 Mukesh Rathor
2013-12-17 13:07 ` Jan Beulich
2013-12-17 13:59 ` Ian Campbell
2013-12-17 14:36 ` Jan Beulich
2013-12-17 14:40 ` Ian Campbell
2013-12-17 15:11 ` Jan Beulich
2013-12-17 15:34 ` Ian Campbell
2013-12-18 7:55 ` Jan Beulich
2013-12-18 10:07 ` Ian Campbell
2013-12-18 10:34 ` Jan Beulich
2013-12-18 10:41 ` Ian Campbell
2013-12-18 10:55 ` Jan Beulich
2013-12-17 23:57 ` Mukesh Rathor
2013-12-18 10:00 ` Ian Campbell
2013-12-17 16:56 ` Jan Beulich
2013-12-17 2:38 ` [V7 PATCH 4/7] pvh dom0: Introduce p2m_map_foreign Mukesh Rathor
2013-12-17 2:38 ` [V7 PATCH 5/7] pvh: change xsm_add_to_physmap Mukesh Rathor
2013-12-17 8:32 ` Jan Beulich
2013-12-18 0:19 ` Mukesh Rathor
2013-12-18 8:07 ` Jan Beulich
2013-12-19 15:50 ` Daniel De Graaf
2013-12-19 19:55 ` Mukesh Rathor
2014-01-28 1:55 ` Mukesh Rathor
2014-01-28 10:31 ` Jan Beulich
2014-01-29 2:08 ` Mukesh Rathor
2014-01-29 10:40 ` Ian Campbell
2014-01-29 11:38 ` Tim Deegan
2014-01-29 11:41 ` Ian Campbell
2014-01-29 11:48 ` Tim Deegan
2014-01-29 11:51 ` Ian Campbell
2014-01-30 1:33 ` Mukesh Rathor
2014-02-09 16:51 ` Julien Grall
2014-02-10 13:42 ` Ian Campbell
2014-02-10 15:16 ` Julien Grall
2014-02-10 15:27 ` Ian Campbell
2014-02-10 15:33 ` Julien Grall
2014-02-10 15:37 ` Ian Campbell
2014-02-20 2:37 ` Mukesh Rathor
2014-02-20 8:31 ` Jan Beulich
2014-02-12 16:47 ` Julien Grall
2014-02-20 2:22 ` Mukesh Rathor
2014-02-20 13:49 ` Julien Grall [this message]
2014-02-21 1:22 ` Mukesh Rathor
2014-02-21 23:53 ` Mukesh Rathor
2014-02-22 0:20 ` Julien Grall
2013-12-17 2:38 ` [V7 PATCH 6/7] pvh dom0: Add and remove foreign pages Mukesh Rathor
2013-12-17 2:38 ` [V7 PATCH 7/7] pvh dom0: add opt_dom0pvh to setup.c Mukesh Rathor
2013-12-17 14:46 ` [V7 PATCH 0/7]: PVH dom0 Konrad Rzeszutek Wilk
2013-12-18 0:14 ` 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=53060806.7040903@linaro.org \
--to=julien.grall@linaro.org \
--cc=Xen-devel@lists.xensource.com \
--cc=dgdegra@tycho.nsa.gov \
--cc=george.dunlap@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=jbeulich@suse.com \
--cc=keir.xen@gmail.com \
--cc=mukesh.rathor@oracle.com \
--cc=tim@xen.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).