Ian/Keir, this patch fixes X86_64 Xorg Xfree86 issues. -Xin Signed-off-by: Xin Li <xin.b.li@intel.com> diff -r d3e7327954db linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h --- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sat Aug 6 15:47:20 2005 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sun Aug 7 10:31:00 2005 @@ -511,11 +511,11 @@ unsigned long size, mmu_update_t *v); -#define io_remap_page_range(vma, vaddr, paddr, size, prot) \ - remap_pfn_range(vma, vaddr, (paddr) >> PAGE_SHIFT, size, prot) - -#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \ - remap_pfn_range(vma, vaddr, pfn, size, prot) +#define io_remap_page_range(vma,from,phys,size,prot) \ +direct_remap_area_pages(vma->vm_mm,from,phys,size,prot,DOMID_IO) + +#define io_remap_pfn_range(vma,from,pfn,size,prot) \ +direct_remap_area_pages(vma->vm_mm,from,pfn<<PAGE_SHIFT,size,prot,DOMID _IO) #define MK_IOSPACE_PFN(space, pfn) (pfn) #define GET_IOSPACE(pfn) 0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com lists.xensource.com/xen-devel
Resend as a attachment. -Xin>-----Original Message----- >From: xen-devel-bounces@lists.xensource.com >[mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Li, Xin B >Sent: 2005年8月7日 11:44 >To: Ian Pratt; Keir Fraser >Cc: xen-devel@lists.xensource.com; David_Wolinsky@Dell.com >Subject: [Xen-devel] [PATCH] Fix X86_64 Xorg Xfree86 issues > >Ian/Keir, >this patch fixes X86_64 Xorg Xfree86 issues. >-Xin > >Signed-off-by: Xin Li <xin.b.li@intel.com> > >diff -r d3e7327954db >linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h >--- a/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sat Aug >6 15:47:20 2005 >+++ b/linux-2.6-xen-sparse/include/asm-xen/asm-x86_64/pgtable.h Sun Aug >7 10:31:00 2005 >@@ -511,11 +511,11 @@ > unsigned long size, > mmu_update_t *v); > >-#define io_remap_page_range(vma, vaddr, paddr, size, prot) >\ >- remap_pfn_range(vma, vaddr, (paddr) >> >PAGE_SHIFT, size, >prot) >- >-#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) >\ >- remap_pfn_range(vma, vaddr, pfn, size, prot) >+#define io_remap_page_range(vma,from,phys,size,prot) \ >+direct_remap_area_pages(vma->vm_mm,from,phys,size,prot,DOMID_IO) >+ >+#define io_remap_pfn_range(vma,from,pfn,size,prot) \ >+direct_remap_area_pages(vma->vm_mm,from,pfn<<PAGE_SHIFT,size,p >rot,DOMID >_IO) > > #define MK_IOSPACE_PFN(space, pfn) (pfn) > #define GET_IOSPACE(pfn) 0 > >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >lists.xensource.com/xen-devel >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com lists.xensource.com/xen-devel