diff options
Diffstat (limited to 'drivers/xen/gntdev-common.h')
| -rw-r--r-- | drivers/xen/gntdev-common.h | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/xen/gntdev-common.h b/drivers/xen/gntdev-common.h index 20d7d059dadb..40ef379c28ab 100644 --- a/drivers/xen/gntdev-common.h +++ b/drivers/xen/gntdev-common.h @@ -16,6 +16,7 @@  #include <linux/mmu_notifier.h>  #include <linux/types.h>  #include <xen/interface/event_channel.h> +#include <xen/grant_table.h>  struct gntdev_dmabuf_priv; @@ -56,6 +57,7 @@ struct gntdev_grant_map {  	struct gnttab_unmap_grant_ref *unmap_ops;  	struct gnttab_map_grant_ref   *kmap_ops;  	struct gnttab_unmap_grant_ref *kunmap_ops; +	bool *being_removed;  	struct page **pages;  	unsigned long pages_vm_start; @@ -73,6 +75,11 @@ struct gntdev_grant_map {  	/* Needed to avoid allocation in gnttab_dma_free_pages(). */  	xen_pfn_t *frames;  #endif + +	/* Number of live grants */ +	atomic_t live_grants; +	/* Needed to avoid allocation in __unmap_grant_pages */ +	struct gntab_unmap_queue_data unmap_data;  };  struct gntdev_grant_map *gntdev_alloc_map(struct gntdev_priv *priv, int count,  | 
