From: Julien Grall <julien.grall@linaro.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: Stefano.Stabellini@eu.citrix.com, keir@xen.org,
ian.campbell@citrix.com, patches@linaro.org,
xen-devel@lists.xen.org
Subject: Re: [PATCH V3 10/41] xen/mm: Align virtual address on PAGE_SIZE in iounmap
Date: Fri, 10 May 2013 13:40:18 +0100 [thread overview]
Message-ID: <518CEAB2.40306@linaro.org> (raw)
In-Reply-To: <518CCA9302000078000D501E@nat28.tlf.novell.com>
On 05/10/2013 09:23 AM, Jan Beulich wrote:
>>>> On 10.05.13 at 04:17, Julien Grall <julien.grall@linaro.org> wrote:
>> ioremap function can unlikely return an unaligned virtual address if
>> the physical address itself is unaligned on a page size.
>>
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>
> If you used "unsigned long" instead of "vaddr_t" (I don't think this
> would build on x86 without doing so, as vaddr-t appear to be ARM
> specific):
Right. I will fix it.
> Acked-by: Jan Beulich <jbeulich@suse.com>
>
>> --- a/xen/include/xen/vmap.h
>> +++ b/xen/include/xen/vmap.h
>> @@ -15,7 +15,9 @@ void __iomem *ioremap(paddr_t, size_t);
>>
>> static inline void iounmap(void __iomem *va)
>> {
>> - vunmap((void __force *)va);
>> + vaddr_t addr = (vaddr_t)(void __force *)va;
>> +
>> + vunmap((void *)(addr & PAGE_MASK));
>> }
>>
>> void vm_init(void);
>
>
--
Julien
next prev parent reply other threads:[~2013-05-10 12:40 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-10 2:17 [PATCH V3 00/41] Support multiple ARM platform in Xen Julien Grall
2013-05-10 2:17 ` [PATCH V3 01/41] xen/arm: lr must be included in range [0-nr_lr( Julien Grall
2013-05-10 2:17 ` [PATCH V3 02/41] xen/arm: Don't allow dom0 to access to vpl011 UART0 memory range Julien Grall
2013-05-10 2:17 ` [PATCH V3 03/41] xen/arm: Remove duplicated GICD_ICPIDR2 definition Julien Grall
2013-05-10 2:17 ` [PATCH V3 04/41] xen/arm: Bump early printk internal buffer to 512 Julien Grall
2013-05-10 2:17 ` [PATCH V3 05/41] xen/arm: Fix early_panic when EARLY_PRINTK is disabled Julien Grall
2013-05-10 2:17 ` [PATCH V3 06/41] xen/arm: Load dtb after dom0 kernel Julien Grall
2013-05-10 2:17 ` [PATCH V3 07/41] xen/arm: Switch to SYS_STATE_boot right after console setup Julien Grall
2013-05-10 8:40 ` Ian Campbell
2013-05-10 2:17 ` [PATCH V3 08/41] xen/arm: Export early_vprintk Julien Grall
2013-05-10 8:46 ` Ian Campbell
2013-05-10 2:17 ` [PATCH V3 09/41] xen/arm: Extend create_xen_entries prototype to take mapping attribute Julien Grall
2013-05-10 9:08 ` Ian Campbell
2013-05-10 2:17 ` [PATCH V3 10/41] xen/mm: Align virtual address on PAGE_SIZE in iounmap Julien Grall
2013-05-10 8:23 ` Jan Beulich
2013-05-10 12:40 ` Julien Grall [this message]
2013-05-10 2:17 ` [PATCH V3 11/41] xen/arm: Introduce ioremap_attr Julien Grall
2013-05-10 9:13 ` Ian Campbell
2013-05-10 12:00 ` Julien Grall
2013-05-10 12:07 ` Ian Campbell
2013-05-10 12:38 ` Julien Grall
2013-05-10 9:17 ` Ian Campbell
2013-05-10 17:06 ` Stefano Stabellini
2013-05-10 2:17 ` [PATCH V3 12/41] xen/arm: Add helpers ioreadl/iowritel Julien Grall
2013-05-10 2:17 ` [PATCH V3 13/41] xen/arm: Remove early_ioremap Julien Grall
2013-05-10 9:21 ` Ian Campbell
2013-05-10 12:35 ` Julien Grall
2013-05-10 2:18 ` [PATCH V3 14/41] xen/arm: Create a hierarchical device tree Julien Grall
2013-05-10 8:54 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 15/41] xen/arm: Add helpers to use the " Julien Grall
2013-05-10 8:54 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 16/41] xen/arm: Add helpers to retrieve an address from " Julien Grall
2013-05-10 2:18 ` [PATCH V3 17/41] xen/arm: Add helpers to retrieve an interrupt description " Julien Grall
2013-05-10 2:18 ` [PATCH V3 18/41] xen/arm: Introduce gic_route_dt_irq Julien Grall
2013-05-10 2:18 ` [PATCH V3 19/41] xen/arm: Introduce gic_irq_xlate Julien Grall
2013-05-10 2:18 ` [PATCH V3 20/41] xen/arm: Introduce setup_dt_irq Julien Grall
2013-05-10 2:18 ` [PATCH V3 21/41] xen/arm: Introduce request_dt_irq Julien Grall
2013-05-10 2:18 ` [PATCH V3 22/41] xen/arm: Use hierarchical device tree to retrieve GIC information Julien Grall
2013-05-10 9:23 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 23/41] xen/arm: Retrieve timer interrupts from the device tree Julien Grall
2013-05-10 9:23 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 24/41] xen/arm: Don't hardcode VGIC informations Julien Grall
2013-05-10 2:18 ` [PATCH V3 25/41] xen/arm: Don't hardcode virtual timer IRQs Julien Grall
2013-05-10 9:25 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 26/41] xen/arm: Introduce a generic way to use a device from the device tree Julien Grall
2013-05-10 2:18 ` [PATCH V3 27/41] xen/arm: New callback in uart_driver to get device tree interrupt structure Julien Grall
2013-05-10 2:18 ` [PATCH V3 28/41] xen/arm: Add generic UART to get the device in the device tree Julien Grall
2013-05-10 9:32 ` Ian Campbell
2013-05-10 12:47 ` Julien Grall
2013-05-10 2:18 ` [PATCH V3 29/41] xen/arm: Use device tree API in pl011 UART driver Julien Grall
2013-05-10 9:35 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 30/41] xen/arm: Use the device tree to map the address range and IRQ to dom0 Julien Grall
2013-05-10 9:37 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 31/41] xen/arm: Allow Xen to run on multiple platform without recompilation Julien Grall
2013-05-10 9:41 ` Ian Campbell
2013-05-10 14:47 ` Julien Grall
2013-05-10 2:18 ` [PATCH V3 32/41] xen/arm: WORKAROUND 1:1 memory mapping for dom0 Julien Grall
2013-05-10 2:18 ` [PATCH V3 33/41] xen/arm: Add versatile express platform Julien Grall
2013-05-10 9:44 ` Ian Campbell
2013-05-10 14:00 ` Julien Grall
2013-05-10 14:06 ` Ian Campbell
2013-05-10 14:10 ` Julien Grall
2013-05-10 14:19 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 34/41] xen/arm: Remove request_irq Julien Grall
2013-05-10 2:18 ` [PATCH V3 35/41] xen/arm: Remove setup_irq Julien Grall
2013-05-10 2:18 ` [PATCH V3 36/41] xen/arm: Don't use pl011 UART by default for early printk Julien Grall
2013-05-10 9:46 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 37/41] xen/arm: Add exynos 4210 UART support Julien Grall
2013-05-10 9:49 ` Ian Campbell
2013-05-10 13:00 ` Julien Grall
2013-05-10 2:18 ` [PATCH V3 38/41] xen/arm: Add Exynos 4210 UART support for early printk Julien Grall
2013-05-10 9:49 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 39/41] xen/arm: Add platform specific code for the exynos5 Julien Grall
2013-05-10 9:50 ` Ian Campbell
2013-05-10 2:18 ` [PATCH V3 40/41] xen/arm: WORKAROUND Support kick cpus and switch to hypervisor " Julien Grall
2013-05-10 2:18 ` [PATCH V3 41/41] xen/arm64: Remove hardcoded value for gic in assembly code Julien Grall
2013-05-10 9:48 ` [PATCH V3 00/41] Support multiple ARM platform in Xen George Dunlap
2013-05-10 12:50 ` Julien Grall
2013-05-10 13:34 ` 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=518CEAB2.40306@linaro.org \
--to=julien.grall@linaro.org \
--cc=JBeulich@suse.com \
--cc=Stefano.Stabellini@eu.citrix.com \
--cc=ian.campbell@citrix.com \
--cc=keir@xen.org \
--cc=patches@linaro.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.