From: Julien Grall <julien.grall@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Wei Liu <wei.liu2@citrix.com>,
Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
IanJackson <Ian.Jackson@eu.citrix.com>,
Ian Campbell <Ian.Campbell@eu.citrix.com>,
Tiejun Chen <tiejun.chen@intel.com>,
xen-devel <xen-devel@lists.xenproject.org>,
MalcolmCrossley <malcolm.crossley@citrix.com>,
Keir Fraser <keir@xen.org>
Subject: Re: [PATCH 3/4 RFC] x86/p2m: use large pages for MMIO mappings
Date: Wed, 30 Sep 2015 11:15:07 +0100 [thread overview]
Message-ID: <560BB62B.4070402@citrix.com> (raw)
In-Reply-To: <560AADE302000078000A6AE6@prv-mh.provo.novell.com>
Hi Jan,
On 29/09/15 14:27, Jan Beulich wrote:
>>>> On 29.09.15 at 15:06, <julien.grall@citrix.com> wrote:
>> On 29/09/15 14:00, Jan Beulich wrote:
>>>>>> On 29.09.15 at 14:52, <julien.grall@citrix.com> wrote:
>>>> On 29/09/15 13:46, Jan Beulich wrote:
>>>>> Again, make map_mmio_regions() a wrapper around an ARM-specific
>>>>> function with the extra argument. No need to alter common or x86
>>>>> code.
>>>>
>>>> TBH, extending the mapp_mmio_region is the best solution.
>>>>
>>>> The name map_mmio_region is very generic and there is no reason we can't
>>>> use it in the hypervisor. Adding yet another wrapper will confuse people
>>>> and it will be hard for both the reviewer and the developer to know
>>>> which one to use.
>>>
>>> I disagree - the function was originally meant to exclusively support
>>> the respective domctl. The fact that ARM gained (many) more uses
>>> should not impact common code or x86.
>>
>> The expectation you described is neither documented nor explicit from
>> the name...
>
> From history only, agreed.
>
>> As the interface is not set in stone, we could decide to extend the
>> usage of the function to make a coherent interface and not adding new
>> wrapper because we don't want to touch x86...
>
> One more thing - what meaning would you expect the new parameter
> to carry? Number of frames mapped? Number of iterations done? In
> the former case, the goal aimed at here won't be achievable. In the
> latter case, would you mean to pass -1UL for it for the ARM callers
> wanting the operation to run to completion?
None of the both. I was thinking to add a boolean which indicate if the
function is preemptible or not. A bit like p2m_pod_set_cache_target.
Although, if I had to choose between your two suggestions, I would lean
toward the later.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2015-09-30 10:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <55F70C9A02000078000A2A58@prv-mh.provo.novell.com>
2015-09-15 7:13 ` [PATCH 0/4] x86/p2m: use large pages for MMIO mappings Jan Beulich
2015-09-15 7:30 ` [PATCH 1/4] x86/EPT: always return proper order value from ept_get_entry() Jan Beulich
2015-09-16 7:15 ` Tian, Kevin
2015-09-17 16:13 ` Andrew Cooper
2015-09-15 7:31 ` [PATCH 2/4] x86/NPT: always return proper order value from p2m_pt_get_entry() Jan Beulich
2015-09-15 7:35 ` Jan Beulich
2015-09-15 7:32 ` Jan Beulich
2015-09-17 16:14 ` Andrew Cooper
2015-09-15 7:34 ` [PATCH 3/4 RFC] x86/p2m: use large pages for MMIO mappings Jan Beulich
2015-09-16 10:02 ` Julien Grall
2015-09-17 16:37 ` Andrew Cooper
2015-09-17 17:59 ` Jan Beulich
2015-09-22 8:32 ` Jan Beulich
2015-09-29 11:33 ` Julien Grall
2015-09-29 11:44 ` Jan Beulich
2015-09-29 12:16 ` Julien Grall
2015-09-29 12:46 ` Jan Beulich
2015-09-29 12:52 ` Julien Grall
2015-09-29 13:00 ` Jan Beulich
2015-09-29 13:06 ` Julien Grall
2015-09-29 13:27 ` Jan Beulich
2015-09-30 10:15 ` Julien Grall [this message]
2015-09-15 7:37 ` [PATCH 4/4] x86/PoD: shorten certain operations on higher order ranges Jan Beulich
2015-09-23 17:10 ` George Dunlap
2015-09-23 17:16 ` George Dunlap
2015-09-24 8:42 ` Jan Beulich
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=560BB62B.4070402@citrix.com \
--to=julien.grall@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=Ian.Campbell@eu.citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=keir@xen.org \
--cc=malcolm.crossley@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tiejun.chen@intel.com \
--cc=wei.liu2@citrix.com \
--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.