All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@citrix.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Sengul Thomas <thomas.sengul@gmail.com>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
	"Tim (Xen.org)" <tim@xen.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: [PATCH 1/4] arm: remove incorrect dcache flush at start of day.
Date: Mon, 22 Apr 2013 18:43:52 +0100	[thread overview]
Message-ID: <517576D8.6090304@citrix.com> (raw)
In-Reply-To: <1366648985-26435-1-git-send-email-ian.campbell@citrix.com>

On 04/22/2013 05:43 PM, Ian Campbell wrote:

> flush_xen_dcache flushes by virtual address and at this point boot_ttbr
> contains a physical address.

I think this part of the comment is wrong. flush_xen_dcache will flush
the address of boot_ttbr, not the one contains in the variable.

> The actual virtual address of the root pagetable is within the region flushed
> by the following flush of the _start to _end range.
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> ---
>  xen/arch/arm/mm.c |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
> index ba3140d..0801239 100644
> --- a/xen/arch/arm/mm.c
> +++ b/xen/arch/arm/mm.c
> @@ -306,7 +306,6 @@ void __init setup_pagetables(unsigned long boot_phys_offset, paddr_t xen_paddr)
>  
>      /* Change pagetables to the copy in the relocated Xen */
>      boot_ttbr = (uintptr_t) xen_pgtable + phys_offset;
> -    flush_xen_dcache(boot_ttbr);
>      flush_xen_dcache_va_range((void*)dest_va, _end - _start);
>      flush_xen_text_tlb();
>  

  reply	other threads:[~2013-04-22 17:43 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 16:42 [PATCH 0/4] arm: per-PCPU pagetables Ian Campbell
2013-04-22 16:43 ` [PATCH 1/4] arm: remove incorrect dcache flush at start of day Ian Campbell
2013-04-22 17:43   ` Julien Grall [this message]
2013-04-23  8:42     ` Ian Campbell
2013-04-23  8:57       ` Tim Deegan
2013-04-23  9:35         ` Ian Campbell
2013-04-22 16:43 ` [PATCH 2/4] xen: arm: rename xen_pgtable to boot_pgtable Ian Campbell
2013-04-22 16:43 ` [PATCH 3/4] arm: parenthesise argument to *_linear_offset macros Ian Campbell
2013-04-22 16:43 ` [PATCH 4/4] arm: allocate per-PCPU domheap pagetable pages Ian Campbell
2013-04-22 18:16   ` Stefano Stabellini
2013-04-23  9:48     ` Ian Campbell
2013-04-23 10:12       ` Stefano Stabellini
2013-04-23 10:14         ` Ian Campbell
2013-04-22 23:42 ` [PATCH 0/4] arm: per-PCPU pagetables Sengul Thomas
2013-04-23 10:01   ` Sengul Thomas
2013-04-23 10:04     ` 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=517576D8.6090304@citrix.com \
    --to=julien.grall@citrix.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=thomas.sengul@gmail.com \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.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 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.