ia64/xen-unstable

changeset 15235:1f7a6456c330

[XEN] gnttab: Add new op unmap_and_replace

The operation unmap_and_replace is an extension of unmap_grant_ref.
A new argument in the form of a virtual address (for PV) is given.
Instead of modifying the PTE for the mapped grant table entry to
null, we change it to the PTE for the new address. In turn we
point the new address to null.

As it stands grant table entries once mapped cannot be
remapped by the guest OS (it can however perform a new
mapping on the same entry but that is within our control).
Therefore it's safe to manipulate the mapped PTE entry to
redirect it to a normal page where we've copied the contents.

It's intended to be used as follows:

1) map_grant_ref to v1
2) ...
3) alloc page at v2
4) copy the page at v1 to v2
5) unmap_and_replace v1 with v2

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Added compat integration (PAE-on-64).

Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed May 30 10:45:44 2007 +0100 (2007-05-30)
parents 152dc0d812b2
children 45f939d0c724
files linux-2.6-xen-sparse/include/xen/gnttab.h xen/arch/ia64/xen/mm.c xen/arch/powerpc/mm.c xen/arch/x86/mm.c xen/common/compat/grant_table.c xen/common/grant_table.c xen/include/asm-ia64/grant_table.h xen/include/asm-powerpc/grant_table.h xen/include/asm-x86/grant_table.h xen/include/public/grant_table.h xen/include/xlat.lst
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/xen/gnttab.h	Wed May 30 10:06:23 2007 +0100
     1.2 +++ b/linux-2.6-xen-sparse/include/xen/gnttab.h	Wed May 30 10:45:44 2007 +0100
     1.3 @@ -135,4 +135,19 @@ gnttab_set_unmap_op(struct gnttab_unmap_
     1.4  	unmap->dev_bus_addr = 0;
     1.5  }
     1.6  
     1.7 +static inline void
     1.8 +gnttab_set_replace_op(struct gnttab_unmap_and_replace *unmap, maddr_t addr,
     1.9 +		      maddr_t new_addr, grant_handle_t handle)
    1.10 +{
    1.11 +	if (xen_feature(XENFEAT_auto_translated_physmap)) {
    1.12 +		unmap->host_addr = __pa(addr);
    1.13 +		unmap->new_addr = __pa(new_addr);
    1.14 +	} else {
    1.15 +		unmap->host_addr = addr;
    1.16 +		unmap->new_addr = new_addr;
    1.17 +	}
    1.18 +
    1.19 +	unmap->handle = handle;
    1.20 +}
    1.21 +
    1.22  #endif /* __ASM_GNTTAB_H__ */
     2.1 --- a/xen/arch/ia64/xen/mm.c	Wed May 30 10:06:23 2007 +0100
     2.2 +++ b/xen/arch/ia64/xen/mm.c	Wed May 30 10:45:44 2007 +0100
     2.3 @@ -63,7 +63,7 @@
     2.4   *     assign_domain_page_replace()
     2.5   *   - cmpxchg p2m entry
     2.6   *     assign_domain_page_cmpxchg_rel()
     2.7 - *     destroy_grant_host_mapping()
     2.8 + *     replace_grant_host_mapping()
     2.9   *     steal_page()
    2.10   *     zap_domain_page_one()
    2.11   *   - read p2m entry
    2.12 @@ -133,7 +133,7 @@
    2.13   * - races between p2m entry update and tlb insert
    2.14   *   This is a race between reading/writing the p2m entry.
    2.15   *   reader: vcpu_itc_i(), vcpu_itc_d(), ia64_do_page_fault(), vcpu_fc()
    2.16 - *   writer: assign_domain_page_cmpxchg_rel(), destroy_grant_host_mapping(), 
    2.17 + *   writer: assign_domain_page_cmpxchg_rel(), replace_grant_host_mapping(), 
    2.18   *           steal_page(), zap_domain_page_one()
    2.19   * 
    2.20   *   For example, vcpu_itc_i() is about to insert tlb by calling
    2.21 @@ -151,7 +151,7 @@
    2.22   *   This is a race between reading/writing the p2m entry.
    2.23   *   reader: vcpu_get_domain_bundle(), vmx_get_domain_bundle(),
    2.24   *           efi_emulate_get_time()
    2.25 - *   writer: assign_domain_page_cmpxchg_rel(), destroy_grant_host_mapping(), 
    2.26 + *   writer: assign_domain_page_cmpxchg_rel(), replace_grant_host_mapping(), 
    2.27   *           steal_page(), zap_domain_page_one()
    2.28   * 
    2.29   *   A page which assigned to a domain can be de-assigned by another vcpu.
    2.30 @@ -1512,8 +1512,8 @@ create_grant_host_mapping(unsigned long 
    2.31  
    2.32  // grant table host unmapping
    2.33  int
    2.34 -destroy_grant_host_mapping(unsigned long gpaddr,
    2.35 -               unsigned long mfn, unsigned int flags)
    2.36 +replace_grant_host_mapping(unsigned long gpaddr,
    2.37 +	       unsigned long mfn, unsigned long new_gpaddr, unsigned int flags)
    2.38  {
    2.39      struct domain* d = current->domain;
    2.40      unsigned long gpfn = gpaddr >> PAGE_SHIFT;
    2.41 @@ -1524,6 +1524,11 @@ destroy_grant_host_mapping(unsigned long
    2.42      pte_t old_pte;
    2.43      struct page_info* page = mfn_to_page(mfn);
    2.44  
    2.45 +    if (new_gpaddr) {
    2.46 +        gdprintk(XENLOG_INFO, "%s: new_gpaddr 0x%lx\n", __func__, new_gpaddr);
    2.47 +    	return GNTST_general_error;
    2.48 +    }
    2.49 +
    2.50      if (flags & (GNTMAP_application_map | GNTMAP_contains_pte)) {
    2.51          gdprintk(XENLOG_INFO, "%s: flags 0x%x\n", __func__, flags);
    2.52          return GNTST_general_error;
    2.53 @@ -1571,7 +1576,7 @@ destroy_grant_host_mapping(unsigned long
    2.54      BUG_ON(pte_pgc_allocated(old_pte));
    2.55      domain_page_flush_and_put(d, gpaddr, pte, old_pte, page);
    2.56  
    2.57 -    perfc_incr(destroy_grant_host_mapping);
    2.58 +    perfc_incr(replace_grant_host_mapping);
    2.59      return GNTST_okay;
    2.60  }
    2.61  
     3.1 --- a/xen/arch/powerpc/mm.c	Wed May 30 10:06:23 2007 +0100
     3.2 +++ b/xen/arch/powerpc/mm.c	Wed May 30 10:45:44 2007 +0100
     3.3 @@ -183,9 +183,16 @@ int create_grant_host_mapping(
     3.4      return create_grant_va_mapping(addr, frame, current);
     3.5  }
     3.6  
     3.7 -int destroy_grant_host_mapping(
     3.8 -    unsigned long addr, unsigned long frame, unsigned int flags)
     3.9 +int replace_grant_host_mapping(
    3.10 +    unsigned long addr, unsigned long frame, unsigned long new_addr,
    3.11 +    unsigned int flags)
    3.12  {
    3.13 +    if (new_addr)
    3.14 +        printk("%s: new_addr not supported\n", __func__);
    3.15 +        BUG();
    3.16 +        return GNTST_general_error;
    3.17 +    }
    3.18 +
    3.19      if (flags & GNTMAP_contains_pte) {
    3.20          printk("%s: GNTMAP_contains_pte not supported\n", __func__);
    3.21          BUG();
     4.1 --- a/xen/arch/x86/mm.c	Wed May 30 10:06:23 2007 +0100
     4.2 +++ b/xen/arch/x86/mm.c	Wed May 30 10:45:44 2007 +0100
     4.3 @@ -2621,8 +2621,8 @@ static int create_grant_va_mapping(
     4.4      return GNTST_okay;
     4.5  }
     4.6  
     4.7 -static int destroy_grant_va_mapping(
     4.8 -    unsigned long addr, unsigned long frame, struct vcpu *v)
     4.9 +static int replace_grant_va_mapping(
    4.10 +    unsigned long addr, unsigned long frame, l1_pgentry_t nl1e, struct vcpu *v)
    4.11  {
    4.12      l1_pgentry_t *pl1e, ol1e;
    4.13      unsigned long gl1mfn;
    4.14 @@ -2646,7 +2646,7 @@ static int destroy_grant_va_mapping(
    4.15      }
    4.16  
    4.17      /* Delete pagetable entry. */
    4.18 -    if ( unlikely(!UPDATE_ENTRY(l1, pl1e, ol1e, l1e_empty(), gl1mfn, v)) )
    4.19 +    if ( unlikely(!UPDATE_ENTRY(l1, pl1e, ol1e, nl1e, gl1mfn, v)) )
    4.20      {
    4.21          MEM_LOG("Cannot delete PTE entry at %p", (unsigned long *)pl1e);
    4.22          rc = GNTST_general_error;
    4.23 @@ -2658,6 +2658,12 @@ static int destroy_grant_va_mapping(
    4.24      return rc;
    4.25  }
    4.26  
    4.27 +static int destroy_grant_va_mapping(
    4.28 +    unsigned long addr, unsigned long frame, struct vcpu *v)
    4.29 +{
    4.30 +    return replace_grant_va_mapping(addr, frame, l1e_empty(), v);
    4.31 +}
    4.32 +
    4.33  int create_grant_host_mapping(
    4.34      uint64_t addr, unsigned long frame, unsigned int flags)
    4.35  {
    4.36 @@ -2673,12 +2679,48 @@ int create_grant_host_mapping(
    4.37      return create_grant_va_mapping(addr, pte, current);
    4.38  }
    4.39  
    4.40 -int destroy_grant_host_mapping(
    4.41 -    uint64_t addr, unsigned long frame, unsigned int flags)
    4.42 +int replace_grant_host_mapping(
    4.43 +    uint64_t addr, unsigned long frame, uint64_t new_addr, unsigned int flags)
    4.44  {
    4.45 +    l1_pgentry_t *pl1e, ol1e;
    4.46 +    unsigned long gl1mfn;
    4.47 +    int rc;
    4.48 +    
    4.49      if ( flags & GNTMAP_contains_pte )
    4.50 -        return destroy_grant_pte_mapping(addr, frame, current->domain);
    4.51 -    return destroy_grant_va_mapping(addr, frame, current);
    4.52 +    {
    4.53 +	if (!new_addr)
    4.54 +	    return destroy_grant_pte_mapping(addr, frame, current->domain);
    4.55 +
    4.56 +	MEM_LOG("Unsupported grant table operation");
    4.57 +	return GNTST_general_error;
    4.58 +    }
    4.59 +
    4.60 +    if (!new_addr)
    4.61 +	return destroy_grant_va_mapping(addr, frame, current);
    4.62 +
    4.63 +    pl1e = guest_map_l1e(current, new_addr, &gl1mfn);
    4.64 +    if ( !pl1e )
    4.65 +    {
    4.66 +        MEM_LOG("Could not find L1 PTE for address %lx",
    4.67 +                (unsigned long)new_addr);
    4.68 +        return GNTST_general_error;
    4.69 +    }
    4.70 +    ol1e = *pl1e;
    4.71 +
    4.72 +    if ( unlikely(!UPDATE_ENTRY(l1, pl1e, ol1e, l1e_empty(), gl1mfn, current)) )
    4.73 +    {
    4.74 +        MEM_LOG("Cannot delete PTE entry at %p", (unsigned long *)pl1e);
    4.75 +        guest_unmap_l1e(current, pl1e);
    4.76 +        return GNTST_general_error;
    4.77 +    }
    4.78 +
    4.79 +    guest_unmap_l1e(current, pl1e);
    4.80 +
    4.81 +    rc = replace_grant_va_mapping(addr, frame, ol1e, current);
    4.82 +    if ( rc && !paging_mode_refcounts(current->domain) )
    4.83 +        put_page_from_l1e(ol1e, current->domain);
    4.84 +
    4.85 +    return rc;
    4.86  }
    4.87  
    4.88  int steal_page(
     5.1 --- a/xen/common/compat/grant_table.c	Wed May 30 10:06:23 2007 +0100
     5.2 +++ b/xen/common/compat/grant_table.c	Wed May 30 10:45:44 2007 +0100
     5.3 @@ -17,6 +17,10 @@ CHECK_gnttab_map_grant_ref;
     5.4  CHECK_gnttab_unmap_grant_ref;
     5.5  #undef xen_gnttab_unmap_grant_ref
     5.6  
     5.7 +#define xen_gnttab_unmap_and_replace gnttab_unmap_and_replace
     5.8 +CHECK_gnttab_unmap_and_replace;
     5.9 +#undef xen_gnttab_unmap_and_replace
    5.10 +
    5.11  DEFINE_XEN_GUEST_HANDLE(gnttab_setup_table_compat_t);
    5.12  DEFINE_XEN_GUEST_HANDLE(gnttab_transfer_compat_t);
    5.13  DEFINE_XEN_GUEST_HANDLE(gnttab_copy_compat_t);
    5.14 @@ -50,6 +54,10 @@ int compat_grant_table_op(unsigned int c
    5.15      CASE(unmap_grant_ref);
    5.16  #endif
    5.17  
    5.18 +#ifndef CHECK_gnttab_unmap_and_replace
    5.19 +    CASE(unmap_and_replace);
    5.20 +#endif
    5.21 +
    5.22  #ifndef CHECK_gnttab_setup_table
    5.23      CASE(setup_table);
    5.24  #endif
     6.1 --- a/xen/common/grant_table.c	Wed May 30 10:06:23 2007 +0100
     6.2 +++ b/xen/common/grant_table.c	Wed May 30 10:45:44 2007 +0100
     6.3 @@ -58,6 +58,16 @@ union grant_combo {
     6.4      } shorts;
     6.5  };
     6.6  
     6.7 +/* Used to share code between unmap_grant_ref and unmap_and_replace. */
     6.8 +struct gnttab_unmap_common {
     6.9 +    uint64_t host_addr;
    6.10 +    uint64_t dev_bus_addr;
    6.11 +    uint64_t new_addr;
    6.12 +    grant_handle_t handle;
    6.13 +
    6.14 +    int16_t status;
    6.15 +};
    6.16 +
    6.17  #define PIN_FAIL(_lbl, _rc, _f, _a...)          \
    6.18      do {                                        \
    6.19          gdprintk(XENLOG_WARNING, _f, ## _a );   \
    6.20 @@ -397,8 +407,8 @@ gnttab_map_grant_ref(
    6.21  }
    6.22  
    6.23  static void
    6.24 -__gnttab_unmap_grant_ref(
    6.25 -    struct gnttab_unmap_grant_ref *op)
    6.26 +__gnttab_unmap_common(
    6.27 +    struct gnttab_unmap_common *op)
    6.28  {
    6.29      domid_t          dom;
    6.30      grant_ref_t      ref;
    6.31 @@ -477,8 +487,8 @@ static void
    6.32  
    6.33      if ( (op->host_addr != 0) && (flags & GNTMAP_host_map) )
    6.34      {
    6.35 -        if ( (rc = destroy_grant_host_mapping(op->host_addr,
    6.36 -                                              frame, flags)) < 0 )
    6.37 +        if ( (rc = replace_grant_host_mapping(op->host_addr,
    6.38 +                                              frame, op->new_addr, flags)) < 0 )
    6.39              goto unmap_out;
    6.40  
    6.41          ASSERT(act->pin & (GNTPIN_hstw_mask | GNTPIN_hstr_mask));
    6.42 @@ -518,6 +528,20 @@ static void
    6.43      rcu_unlock_domain(rd);
    6.44  }
    6.45  
    6.46 +static void
    6.47 +__gnttab_unmap_grant_ref(
    6.48 +    struct gnttab_unmap_grant_ref *op)
    6.49 +{
    6.50 +    struct gnttab_unmap_common common = {
    6.51 +	.host_addr = op->host_addr,
    6.52 +	.dev_bus_addr = op->dev_bus_addr,
    6.53 +	.handle = op->handle,
    6.54 +    };
    6.55 +
    6.56 +    __gnttab_unmap_common(&common);
    6.57 +    op->status = common.status;
    6.58 +}
    6.59 +
    6.60  static long
    6.61  gnttab_unmap_grant_ref(
    6.62      XEN_GUEST_HANDLE(gnttab_unmap_grant_ref_t) uop, unsigned int count)
    6.63 @@ -542,6 +566,44 @@ fault:
    6.64      return -EFAULT;    
    6.65  }
    6.66  
    6.67 +static void
    6.68 +__gnttab_unmap_and_replace(
    6.69 +    struct gnttab_unmap_and_replace *op)
    6.70 +{
    6.71 +    struct gnttab_unmap_common common = {
    6.72 +	.host_addr = op->host_addr,
    6.73 +	.new_addr = op->new_addr,
    6.74 +	.handle = op->handle,
    6.75 +    };
    6.76 +
    6.77 +    __gnttab_unmap_common(&common);
    6.78 +    op->status = common.status;
    6.79 +}
    6.80 +
    6.81 +static long
    6.82 +gnttab_unmap_and_replace(
    6.83 +    XEN_GUEST_HANDLE(gnttab_unmap_and_replace_t) uop, unsigned int count)
    6.84 +{
    6.85 +    int i;
    6.86 +    struct gnttab_unmap_and_replace op;
    6.87 +
    6.88 +    for ( i = 0; i < count; i++ )
    6.89 +    {
    6.90 +        if ( unlikely(__copy_from_guest_offset(&op, uop, i, 1)) )
    6.91 +            goto fault;
    6.92 +        __gnttab_unmap_and_replace(&op);
    6.93 +        if ( unlikely(__copy_to_guest_offset(uop, i, &op, 1)) )
    6.94 +            goto fault;
    6.95 +    }
    6.96 +
    6.97 +    flush_tlb_mask(current->domain->domain_dirty_cpumask);
    6.98 +    return 0;
    6.99 +
   6.100 +fault:
   6.101 +    flush_tlb_mask(current->domain->domain_dirty_cpumask);
   6.102 +    return -EFAULT;    
   6.103 +}
   6.104 +
   6.105  int
   6.106  gnttab_grow_table(struct domain *d, unsigned int req_nr_frames)
   6.107  {
   6.108 @@ -1205,6 +1267,21 @@ do_grant_table_op(
   6.109          rc = gnttab_unmap_grant_ref(unmap, count);
   6.110          break;
   6.111      }
   6.112 +    case GNTTABOP_unmap_and_replace:
   6.113 +    {
   6.114 +        XEN_GUEST_HANDLE(gnttab_unmap_and_replace_t) unmap =
   6.115 +            guest_handle_cast(uop, gnttab_unmap_and_replace_t);
   6.116 +        if ( unlikely(!guest_handle_okay(unmap, count)) )
   6.117 +            goto out;
   6.118 +        rc = -EPERM;
   6.119 +        if ( unlikely(!grant_operation_permitted(d)) )
   6.120 +            goto out;
   6.121 +        rc = -ENOSYS;
   6.122 +        if ( unlikely(!replace_grant_supported()) )
   6.123 +            goto out;
   6.124 +        rc = gnttab_unmap_and_replace(unmap, count);
   6.125 +        break;
   6.126 +    }
   6.127      case GNTTABOP_setup_table:
   6.128      {
   6.129          rc = gnttab_setup_table(
     7.1 --- a/xen/include/asm-ia64/grant_table.h	Wed May 30 10:06:23 2007 +0100
     7.2 +++ b/xen/include/asm-ia64/grant_table.h	Wed May 30 10:45:44 2007 +0100
     7.3 @@ -9,7 +9,7 @@
     7.4  
     7.5  // for grant map/unmap
     7.6  int create_grant_host_mapping(unsigned long gpaddr, unsigned long mfn, unsigned int flags);
     7.7 -int destroy_grant_host_mapping(unsigned long gpaddr, unsigned long mfn, unsigned int flags);
     7.8 +int replace_grant_host_mapping(unsigned long gpaddr, unsigned long mfn, unsigned long new_gpaddr, unsigned int flags);
     7.9  
    7.10  // for grant transfer
    7.11  void guest_physmap_add_page(struct domain *d, unsigned long gpfn, unsigned long mfn);
    7.12 @@ -67,4 +67,9 @@ static inline void gnttab_clear_flag(uns
    7.13  #define gnttab_release_put_page(page)           put_page((page))
    7.14  #define gnttab_release_put_page_and_type(page)  put_page_and_type((page))
    7.15  
    7.16 +static inline int replace_grant_supported(void)
    7.17 +{
    7.18 +    return 0;
    7.19 +}
    7.20 +
    7.21  #endif /* __ASM_GRANT_TABLE_H__ */
     8.1 --- a/xen/include/asm-powerpc/grant_table.h	Wed May 30 10:06:23 2007 +0100
     8.2 +++ b/xen/include/asm-powerpc/grant_table.h	Wed May 30 10:45:44 2007 +0100
     8.3 @@ -35,8 +35,9 @@ extern long pte_remove(ulong flags, ulon
     8.4  
     8.5  int create_grant_host_mapping(
     8.6      unsigned long addr, unsigned long frame, unsigned int flags);
     8.7 -int destroy_grant_host_mapping(
     8.8 -    unsigned long addr, unsigned long frame, unsigned int flags);
     8.9 +int replace_grant_host_mapping(
    8.10 +    unsigned long addr, unsigned long frame, unsigned long new_addr,
    8.11 +    unsigned int flags);
    8.12  
    8.13  #define gnttab_create_shared_page(d, t, i)                               \
    8.14      do {                                                                 \
    8.15 @@ -82,4 +83,8 @@ static inline uint cpu_foreign_map_order
    8.16  #define gnttab_release_put_page_and_type(page)  do { } while (0)
    8.17  #endif
    8.18  
    8.19 +static inline int replace_grant_supported(void)
    8.20 +{
    8.21 +    return 0;
    8.22 +}
    8.23  #endif  /* __ASM_PPC_GRANT_TABLE_H__ */
     9.1 --- a/xen/include/asm-x86/grant_table.h	Wed May 30 10:06:23 2007 +0100
     9.2 +++ b/xen/include/asm-x86/grant_table.h	Wed May 30 10:45:44 2007 +0100
     9.3 @@ -15,8 +15,8 @@
     9.4   */
     9.5  int create_grant_host_mapping(
     9.6      uint64_t addr, unsigned long frame, unsigned int flags);
     9.7 -int destroy_grant_host_mapping(
     9.8 -    uint64_t addr, unsigned long frame, unsigned int flags);
     9.9 +int replace_grant_host_mapping(
    9.10 +    uint64_t addr, unsigned long frame, uint64_t new_addr, unsigned int flags);
    9.11  
    9.12  #define gnttab_create_shared_page(d, t, i)                               \
    9.13      do {                                                                 \
    9.14 @@ -48,4 +48,9 @@ static inline void gnttab_clear_flag(uns
    9.15          /* Done implicitly when page tables are destroyed. */   \
    9.16      } while (0)
    9.17  
    9.18 +static inline int replace_grant_supported(void)
    9.19 +{
    9.20 +    return 1;
    9.21 +}
    9.22 +
    9.23  #endif /* __ASM_GRANT_TABLE_H__ */
    10.1 --- a/xen/include/public/grant_table.h	Wed May 30 10:06:23 2007 +0100
    10.2 +++ b/xen/include/public/grant_table.h	Wed May 30 10:45:44 2007 +0100
    10.3 @@ -328,6 +328,29 @@ struct gnttab_query_size {
    10.4  typedef struct gnttab_query_size gnttab_query_size_t;
    10.5  DEFINE_XEN_GUEST_HANDLE(gnttab_query_size_t);
    10.6  
    10.7 +/*
    10.8 + * GNTTABOP_unmap_and_replace: Destroy one or more grant-reference mappings
    10.9 + * tracked by <handle> but atomically replace the page table entry with one
   10.10 + * pointing to the machine address under <new_addr>.  <new_addr> will be
   10.11 + * redirected to the null entry.
   10.12 + * NOTES:
   10.13 + *  1. The call may fail in an undefined manner if either mapping is not
   10.14 + *     tracked by <handle>.
   10.15 + *  2. After executing a batch of unmaps, it is guaranteed that no stale
   10.16 + *     mappings will remain in the device or host TLBs.
   10.17 + */
   10.18 +#define GNTTABOP_unmap_and_replace    7
   10.19 +struct gnttab_unmap_and_replace {
   10.20 +    /* IN parameters. */
   10.21 +    uint64_t host_addr;
   10.22 +    uint64_t new_addr;
   10.23 +    grant_handle_t handle;
   10.24 +    /* OUT parameters. */
   10.25 +    int16_t  status;              /* GNTST_* */
   10.26 +};
   10.27 +typedef struct gnttab_unmap_and_replace gnttab_unmap_and_replace_t;
   10.28 +DEFINE_XEN_GUEST_HANDLE(gnttab_unmap_and_replace_t);
   10.29 +
   10.30  
   10.31  /*
   10.32   * Bitfield values for update_pin_status.flags.
    11.1 --- a/xen/include/xlat.lst	Wed May 30 10:06:23 2007 +0100
    11.2 +++ b/xen/include/xlat.lst	Wed May 30 10:45:44 2007 +0100
    11.3 @@ -26,6 +26,7 @@
    11.4  !	gnttab_setup_table		grant_table.h
    11.5  !	gnttab_transfer			grant_table.h
    11.6  ?	gnttab_unmap_grant_ref		grant_table.h
    11.7 +?	gnttab_unmap_and_replace	grant_table.h
    11.8  ?	grant_entry			grant_table.h
    11.9  ?	kexec_exec			kexec.h
   11.10  !	kexec_image			kexec.h