ia64/xen-unstable

changeset 6230:c983f822a39b

Allocate_empty_lowmem_regions available to non-priv domains
and to modules. From Ross Mcilroy.
author kaf24@firebug.cl.cam.ac.uk
date Wed Aug 17 13:33:55 2005 +0000 (2005-08-17)
parents 18f04796ea89
children 69f00d6ab5dc
files linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c linux-2.6-xen-sparse/include/asm-xen/hypervisor.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c	Wed Aug 17 12:30:04 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c	Wed Aug 17 13:33:55 2005 +0000
     1.3 @@ -35,6 +35,7 @@
     1.4  #include <asm/pgtable.h>
     1.5  #include <asm-xen/hypervisor.h>
     1.6  #include <asm-xen/balloon.h>
     1.7 +#include <linux/module.h>
     1.8  #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
     1.9  #include <linux/percpu.h>
    1.10  #include <asm/tlbflush.h>
    1.11 @@ -352,7 +353,6 @@ void xen_destroy_contiguous_region(unsig
    1.12      balloon_unlock(flags);
    1.13  }
    1.14  
    1.15 -#ifdef CONFIG_XEN_PHYSDEV_ACCESS
    1.16  
    1.17  unsigned long allocate_empty_lowmem_region(unsigned long pages)
    1.18  {
    1.19 @@ -401,4 +401,4 @@ unsigned long allocate_empty_lowmem_regi
    1.20      return vstart;
    1.21  }
    1.22  
    1.23 -#endif /* CONFIG_XEN_PHYSDEV_ACCESS */
    1.24 +EXPORT_SYMBOL(allocate_empty_lowmem_region);
     2.1 --- a/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h	Wed Aug 17 12:30:04 2005 +0000
     2.2 +++ b/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h	Wed Aug 17 13:33:55 2005 +0000
     2.3 @@ -137,10 +137,8 @@ void xen_invlpg_mask(cpumask_t *mask, un
     2.4  void xen_create_contiguous_region(unsigned long vstart, unsigned int order);
     2.5  void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order);
     2.6  
     2.7 -#ifdef CONFIG_XEN_PHYSDEV_ACCESS
     2.8  /* Allocate a contiguous empty region of low memory. Return virtual start. */
     2.9  unsigned long allocate_empty_lowmem_region(unsigned long pages);
    2.10 -#endif
    2.11  
    2.12  #include <asm/hypercall.h>
    2.13