WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

RE: [Xen-ia64-devel] Build fixes for blkback on ia64

To: "Horms" <horms@xxxxxxxxxxxx>, <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-ia64-devel] Build fixes for blkback on ia64
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Fri, 9 Dec 2005 15:15:09 +0800
Delivery-date: Fri, 09 Dec 2005 07:15:52 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcX8hS9jX7siTrfuQwOTQZ9Vw1HJjwACsZow
Thread-topic: [Xen-ia64-devel] Build fixes for blkback on ia64
Hi, Horms,
        Welcome. Seems Dan just sent out a similar patch as yours earlier today 
to xen-devel, as:
http://lists.xensource.com/archives/html/xen-devel/2005-12/msg00325.html 

        You may take a look and see any incremental patch still required in 
your side and repost to the list. ;-)

Thanks,
Kevin

>-----Original Message-----
>From: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
>[mailto:xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Horms
>Sent: 2005年12月9日 13:52
>To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>Subject: [Xen-ia64-devel] Build fixes for blkback on ia64
>
>Build fixes for blkback on ia64
>
>After 8308:6f62ad959f6b, blkback does not seem to compile on ia64
>I'm not sure if the patch below is correct, especially the first
>fragment, but here is what it does:
>
>* Call vaddr_pagenr() with valid agruments
>
>The rest of the changes are trivial
>
>* Removes duplicate = in assignment of pending_vaddrs[]
>
>* Remove unused variable struct page *page
>
>* Declare lock_vm_area() and unlock_vm_area() in
>  include/asm-xen/driver_util.h
>
>Signed-Off-By: Horms <horms@xxxxxxxxxxxx>
>
>--- a/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
>+++ b/linux-2.6-xen-sparse/drivers/xen/blkback/blkback.c
>@@ -412,8 +412,8 @@
>
>               pending_handle(pending_req, i) = map[i].handle;
> #ifdef __ia64__
>-              pending_vaddrs[vaddr_pagenr(req, seg)] =
>-                      = gnttab_map_vaddr(map[i]);
>+              pending_vaddrs[vaddr_pagenr(pending_req, i)] =
>+                      (unsigned long) gnttab_map_vaddr(map[i]);
> #else
>               set_phys_to_machine(__pa(vaddr(
>                       pending_req, i)) >> PAGE_SHIFT,
>@@ -526,7 +526,6 @@
>
> static int __init blkif_init(void)
> {
>-      struct page *page;
>       int i;
>
>       if (xen_init() < 0)
>@@ -547,8 +546,6 @@
>       blkif_interface_init();
>
> #ifdef __ia64__
>-      extern unsigned long alloc_empty_foreign_map_page_range(
>-              unsigned long pages);
>       mmap_vstart = (unsigned long)
>               alloc_empty_foreign_map_page_range(mmap_pages);
> #else /* ! ia64 */
>--- a/linux-2.6-xen-sparse/include/asm-xen/driver_util.h
>+++ b/linux-2.6-xen-sparse/include/asm-xen/driver_util.h
>@@ -13,6 +13,9 @@
> extern void lock_vm_area(struct vm_struct *area);
> extern void unlock_vm_area(struct vm_struct *area);
>
>+int xen_init(void);
>+unsigned long alloc_empty_foreign_map_page_range(unsigned long pages);
>+
> #endif /* __ASM_XEN_DRIVER_UTIL_H__ */
>
> /*
>
>
>_______________________________________________
>Xen-ia64-devel mailing list
>Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
>http://lists.xensource.com/xen-ia64-devel

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>