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-ppc-devel

Re: [XenPPC] One more fix for the forward port

To: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>
Subject: Re: [XenPPC] One more fix for the forward port
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Thu, 05 Jul 2007 13:07:07 -0500
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 05 Jul 2007 11:05:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <467A82DC.1040302@xxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <4677C2DE.8040703@xxxxxxxxxxxxxxxxxx> <1182280864.9062.71.camel@basalt> <467A82DC.1040302@xxxxxxxxxxxxxxxxxx>
Reply-to: Hollis Blanchard <hollisb@xxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-06-21 at 15:53 +0200, Christian Ehrhardt wrote:
> diff -r 1bf85f927393 include/asm-powerpc/io.h
> --- a/include/asm-powerpc/io.h  Thu Jun 21 08:04:49 2007 +0200
> +++ b/include/asm-powerpc/io.h  Thu Jun 21 10:31:39 2007 +0200
> @@ -248,11 +248,13 @@ static inline void * phys_to_virt(unsign
>  {
>         return (void *)__va(address);
>  }
> +#define bus_to_virt phys_to_virt
> 
>  /*
>   * Change "struct page" to physical address.
>   */
>  #define page_to_phys(page)     (page_to_pfn(page) << PAGE_SHIFT)
> +#define page_to_bus page_to_phys
> 
>  /* We do NOT want virtual merging, it would put too much pressure on
>   * our iommu allocator. Instead, we want drivers to be smart enough
> diff -r 1bf85f927393 include/asm-powerpc/xen/asm/hypercall.h
> --- a/include/asm-powerpc/xen/asm/hypercall.h   Thu Jun 21 08:04:49 2007 +0200
> +++ b/include/asm-powerpc/xen/asm/hypercall.h   Thu Jun 21 09:56:55 2007 +0200
> @@ -72,6 +72,9 @@ static inline unsigned long HYPERVISOR_h
>         return -ENOSYS;
>  }
> 
> +/* to compile gnttab_copy_grant_page() in drivers/xen/core/gnttab.c */
> +#define HYPERVISOR_mmu_update(req, count, success_count, domid) ({BUG();0;})
> +
>  struct privcmd_hypercall;
>  extern int privcmd_hypercall(struct privcmd_hypercall *hypercall);
> 
> diff -r 1bf85f927393 include/asm-powerpc/xen/asm/hypervisor.h
> --- a/include/asm-powerpc/xen/asm/hypervisor.h  Thu Jun 21 08:04:49 2007 +0200
> +++ b/include/asm-powerpc/xen/asm/hypervisor.h  Thu Jun 21 08:26:48 2007 +0200
> @@ -131,6 +131,7 @@ int direct_remap_pfn_range(struct vm_are
>  #define        pfn_to_mfn(x)   (x)
>  #define        mfn_to_pfn(x)   (x)
>  #define phys_to_machine(phys) ((maddr_t)(phys))
> +#define phys_to_machine_mapping_valid(pfn) (1)
> 
>  /* VIRT <-> MACHINE conversion */
>  #define virt_to_machine(v)     (phys_to_machine(__pa(v)))
> @@ -239,6 +240,7 @@ static inline void set_phys_to_machine(u
>  #define pfn_pte_ma(pfn, prot)  __pte(((pfn) << PAGE_SHIFT) | 
> pgprot_val(prot))
> 
>  typedef unsigned long maddr_t;
> +typedef unsigned long paddr_t;
> 
>  #ifdef CONFIG_XEN_SCRUB_PAGES 

Hi Christian, as far as I can see the vast majority of this patch is not
needed; the only part that's required is
phys_to_machine_mapping_valid().

Also, I can't find any changeset with the hash 1bf85f927393 . Maybe that
was a local MQ changeset?

-- 
Hollis Blanchard
IBM Linux Technology Center


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

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