xen-devel
[Xen-devel] Re: Where do we stand with the Xen patches?
To: |
ijc@xxxxxxxxxxxxxx |
Subject: |
[Xen-devel] Re: Where do we stand with the Xen patches? |
From: |
FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> |
Date: |
Thu, 21 May 2009 19:39:00 +0900 |
Cc: |
jeremy@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, beckyb@xxxxxxxxxxxxxxxxxxx, okir@xxxxxxx, x86@xxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, fujita.tomonori@xxxxxxxxxxxxx, mingo@xxxxxxx, gregkh@xxxxxxx |
Delivery-date: |
Thu, 21 May 2009 03:41:08 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<1242901733.22654.138.camel@xxxxxxxxxxxxxxxxxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
References: |
<20090521175436L.fujita.tomonori@xxxxxxxxxxxxx> <1242901630.22654.135.camel@xxxxxxxxxxxxxxxxxxxxxx> <1242901733.22654.138.camel@xxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Thu, 21 May 2009 11:28:53 +0100
Ian Campbell <ijc@xxxxxxxxxxxxxx> wrote:
> On Thu, 2009-05-21 at 11:27 +0100, Ian Campbell wrote:
> > The corresponding the Xen updates will...
> ...follow.
>
> Subject:swiotlb/xen: add implementation of swiotlb_range_needs_mapping hook
>
> This function is now implemented via asm/dma-mapping.h rather than as
> a weak hook in swiotlb.c
>
> Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
>
> diff --git a/arch/x86/include/asm/dma-mapping.h
> b/arch/x86/include/asm/dma-mapping.h
> index a80139a..ed51bd1 100644
> --- a/arch/x86/include/asm/dma-mapping.h
> +++ b/arch/x86/include/asm/dma-mapping.h
> @@ -315,9 +315,15 @@ static inline int is_buffer_dma_capable(struct device
> *dev, u64 mask,
> return addr + size <= mask;
> }
>
> +#ifdef CONFIG_PCI_XEN
> +extern int xen_range_needs_mapping(phys_addr_t paddr, size_t size);
> +#else
> +static inline int xen_range_needs_mapping(phys_addr_t paddr, size_t size) {
> return 0; }
> +#endif
I know Xen can do something like this but you think that this is
clean?
In addition, you also the similar hack in
arch/ia64/include/asm/dma-mapping.h for ia64's dom0 support, I think.
IMO, your patch just moves the ugly hacks from lib/swiotlb.c to
arch/{x86|ia64}/include/asm/dma-mapping.h.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: Where do we stand with the Xen patches?, (continued)
- [Xen-devel] Re: Where do we stand with the Xen patches?, Jeremy Fitzhardinge
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ingo Molnar
- [Xen-devel] Re: Where do we stand with the Xen patches?, FUJITA Tomonori
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ingo Molnar
- [Xen-devel] Re: Where do we stand with the Xen patches?, FUJITA Tomonori
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- [Xen-devel] Re: Where do we stand with the Xen patches?, Jeremy Fitzhardinge
- [Xen-devel] Re: Where do we stand with the Xen patches?, FUJITA Tomonori
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- [Xen-devel] Re: Where do we stand with the Xen patches?,
FUJITA Tomonori <=
- Re: [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- Re: [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- Re: [Xen-devel] Re: Where do we stand with the Xen patches?, FUJITA Tomonori
- Re: [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
- Message not available
- [Xen-devel] Re: swiotlb: remove __weak hooks in favour of architecture-specific functions, Ian Campbell
- Re: [Xen-devel] Re: Where do we stand with the Xen patches?, FUJITA Tomonori
- [Xen-devel] Re: Where do we stand with the Xen patches?, Ian Campbell
|
|
|