From: Julien Grall <julien.grall@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: ian.campbell@citrix.com, patches@linaro.org, tim@xen.org,
george.dunlap@citrix.com, stefano.stabellini@citrix.com,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH] xen/arm: p2m: Don't create new table when the mapping is removed
Date: Wed, 18 Dec 2013 19:29:42 +0000 [thread overview]
Message-ID: <52B1F7A6.7010803@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1312181927320.8667@kaball.uk.xensource.com>
On 12/18/2013 07:28 PM, Stefano Stabellini wrote:
> On Wed, 18 Dec 2013, Julien Grall wrote:
>> When Xen is removing/relinquishing mapping, it will create second/third tables
>> if they don't exist.
>>
>> Non-existent table means the address range was never mapped, so Xen can safely
>> skip them.
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>>
>> ---
>> Release: This is an improvement for Xen 4.4. It will save time during
>> relinquish phase and avoid dummy allocation.
>> The downside is the patch is modifying p2m loop which is used everywhere.
>> ---
>> xen/arch/arm/p2m.c | 22 ++++++++++++++++++++--
>> 1 file changed, 20 insertions(+), 2 deletions(-)
>>
>> diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c
>> index d24a6fc..9ef8819 100644
>> --- a/xen/arch/arm/p2m.c
>> +++ b/xen/arch/arm/p2m.c
>> @@ -246,10 +246,12 @@ static int create_p2m_entries(struct domain *d,
>> cur_first_offset = ~0,
>> cur_second_offset = ~0;
>> unsigned long count = 0;
>> + bool_t populate = (op == INSERT || op == ALLOCATE);
>
> why don't you just check for op == REMOVE?
Because you also need to check op == RELINQUISH (added by my patch
series on foreign mapping).
--
Julien Grall
next prev parent reply other threads:[~2013-12-18 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 17:31 [PATCH] xen/arm: p2m: Don't create new table when the mapping is removed Julien Grall
2013-12-18 19:28 ` Stefano Stabellini
2013-12-18 19:29 ` Julien Grall [this message]
2013-12-18 19:31 ` Stefano Stabellini
2013-12-19 9:38 ` Ian Campbell
2013-12-19 15:28 ` Julien Grall
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=52B1F7A6.7010803@linaro.org \
--to=julien.grall@linaro.org \
--cc=george.dunlap@citrix.com \
--cc=ian.campbell@citrix.com \
--cc=patches@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.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 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.