Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1210353

Re: [Xen-devel] [PATCH v3 04/20] xen/grant: Introduce helpers to split a page into grant

From David Vrabel <david.vrabel@citrix.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH v3 04/20] xen/grant: Introduce helpers to split a page into grant
Date 2015-08-20 12:00 +0200
Message-ID <pZuNA-1gR-7@gated-at.bofh.it> (permalink)
References <pUT0e-5e5-15@gated-at.bofh.it> <pUT0e-5e5-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 07/08/15 17:46, Julien Grall wrote:
> Currently, a grant is always based on the Xen page granularity (i.e
> 4KB). When Linux is using a different page granularity, a single page
> will be split between multiple grants.
> 
> The new helpers will be in charge to split the Linux page into grants and
> call a function given by the caller on each grant.
> 
> Also provide an helper to count the number of grants within a given
> contiguous region.
> 
> Note that the x86/include/asm/xen/page.h is now including
> xen/interface/grant_table.h rather than xen/grant_table.h. It's
> necessary because xen/grant_table.h depends on asm/xen/page.h and will
> break the compilation. Furthermore, only definition in
> interface/grant_table.h was required.

Reviewed-by: David Vrabel <david.vrabel@citrix.com>

But...

> +/* Helper to get to call fn only on the first "grant chunk" */
> +static inline void gnttab_one_grant(struct page *page, unsigned int offset,
> +				    unsigned len, xen_grant_fn_t fn,
> +				    void *data)

...call this gnttab_for_one_grant().

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 04/20] xen/grant: Introduce helpers to split a page into grant Julien Grall <julien.grall@citrix.com> - 2015-08-07 18:50 +0200
  Re: [PATCH v3 04/20] xen/grant: Introduce helpers to split a page  into grant Stefano Stabellini <stefano.stabellini@eu.citrix.com> - 2015-08-10 12:50 +0200
  Re: [Xen-devel] [PATCH v3 04/20] xen/grant: Introduce helpers to  split a page into grant David Vrabel <david.vrabel@citrix.com> - 2015-08-20 12:00 +0200
    Re: [Xen-devel] [PATCH v3 04/20] xen/grant: Introduce helpers to  split a page into grant Julien Grall <julien.grall@citrix.com> - 2015-08-28 16:40 +0200

csiph-web