Home
last modified time | relevance | path

Searched full:grant (Results 1 – 25 of 715) sorted by relevance

12345678910>>...29

/kernel/linux/linux-6.6/include/xen/interface/
Dgrant_table.h17 * GRANT TABLE REPRESENTATION
20 /* Some rough guidelines on accessing and updating grant-table entries
23 …* http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=blob;f=drivers/xen/grant-table.c;…
28 * Introducing a valid entry into the grant table:
46 * which can set a timeout on the use of a grant entry and take necessary
55 * [*] If GTF_transfer_committed is set then the grant entry is 'committed'.
56 * The guest must /not/ modify the grant entry until the address of the
72 * Reference to a grant entry in a specified domain's grant table.
77 * A grant table comprises a packed array of grant entries in one or more
84 * Version 1 of the grant table entry structure is maintained largely for
[all …]
/kernel/linux/linux-5.10/include/xen/interface/
Dgrant_table.h34 * GRANT TABLE REPRESENTATION
37 /* Some rough guidelines on accessing and updating grant-table entries
44 * Introducing a valid entry into the grant table:
62 * which can set a timeout on the use of a grant entry and take necessary
71 * [*] If GTF_transfer_committed is set then the grant entry is 'committed'.
72 * The guest must /not/ modify the grant entry until the address of the
88 * Reference to a grant entry in a specified domain's grant table.
93 * A grant table comprises a packed array of grant entries in one or more
100 * Version 1 of the grant table entry structure is maintained purely
116 * Type of grant entry.
[all …]
/kernel/linux/linux-6.6/drivers/xen/
Dgrant-dma-ops.c3 * Xen grant DMA-mapping layer - contains special DMA-mapping routines
4 * for providing grant references as DMA addresses to be used by frontends
33 static inline dma_addr_t grant_to_dma(grant_ref_t grant) in grant_to_dma() argument
35 return XEN_GRANT_DMA_ADDR_OFF | ((dma_addr_t)grant << XEN_PAGE_SHIFT); in grant_to_dma()
74 * Such a DMA address is formed by using the grant reference as a frame
85 grant_ref_t grant; in xen_grant_dma_alloc() local
101 if (gnttab_alloc_grant_reference_seq(n_pages, &grant)) { in xen_grant_dma_alloc()
107 gnttab_grant_foreign_access_ref(grant + i, data->backend_domid, in xen_grant_dma_alloc()
111 *dma_handle = grant_to_dma(grant); in xen_grant_dma_alloc()
121 grant_ref_t grant; in xen_grant_dma_free() local
[all …]
Dxen-front-pgdir-shbuf.c26 * that contains grant references to the pages of the shared
53 /* Claim grant references for the pages of the buffer. */
57 /* Map grant references of the buffer. */
60 /* Unmap grant references of the buffer. */
67 * so it can find/fill the grant references to the buffer's
100 /* No need to map own grant references. */ in xen_front_pgdir_shbuf_map()
121 /* No need to unmap own grant references. */ in xen_front_pgdir_shbuf_unmap()
164 * Calculate the number of grant references needed to share the buffer
176 * Calculate the number of grant references needed to share the buffer
194 * Unmap the buffer previously mapped with grant references
[all …]
Dgrant-table.c79 * linked by grant ref, the last element contains GNTTAB_LIST_END. The number
110 /*This is a structure of function pointers for grant table*/
113 * Version of the grant interface.
117 * Grant refs per grant frame.
121 * Mapping a list of frames for storing grant entries. Frames parameter
122 * is used to store grant table address when grant table being setup,
123 * nr_gframes is the number of frames to map grant table. Returning
128 * Release a list of frames which are mapped in map_frames for grant
133 * Introducing a valid entry into the grant table, granting the frame of
134 * this grant entry to domain for accessing. Ref
[all …]
Dgntalloc.c4 * Device for creating grant references (in user-space) that may be shared
20 * Linux userspace programs cannot create grant references.
24 * Y -> mapping the grant from X
27 * 2. X creates an entry in the grant table that says domid(Y) can access P.
28 * This is done without a hypercall unless the grant table needs expansion.
29 * 3. X gives the grant reference identifier, GREF, to Y.
39 * The grant allocation and mmap()ing are, naturally, two separate operations.
43 * WARNING: Since Xen does not allow a guest to forcibly end the use of a grant
44 * reference, this device can be used to consume kernel memory by leaving grant
48 * grant operation.
[all …]
DKconfig137 tristate "userspace grant access device driver"
145 bool "Add support for dma-buf grant access device driver extension"
150 dma-buf implementation. With this extension grant references to
152 use and grant references coming from a foreign domain can be
156 tristate "User-space grant reference allocator driver"
165 bool "Allow allocating DMA capable buffers with grant reference module"
168 Extends grant table module API to allow allocating DMA capable
169 buffers and mapping foreign grant references on top of it.
341 memory regions, including grant maps and foreign pages. This avoids
369 Require virtio for Xen guests to use grant mappings.
Dgrant-dma-iommu.c5 * bindings by Xen grant DMA-mapping layer.
30 { .compatible = "xen,grant-dma" },
66 .name = "grant-dma-iommu",
/kernel/linux/linux-6.6/include/xen/
Dgrant_table.h6 * 2. Accessing others' memory reservations via grant references.
7 * (i.e., mechanisms for both sender and recipient of grant references)
54 * Technically there's no reliably invalid grant reference or grant handle,
94 * End access through the given grant reference, iff the grant entry is no
95 * longer in use. Return 1 if the grant entry was freed, 0 if it is still in
101 * Eventually end access through the given grant reference, and once that
103 * immediately iff the grant entry is not in use, otherwise it will happen
110 * the grant is no longer in use.
118 * End access through the given grant reference, iff the grant entry is
120 * grant reference is deallocated.
[all …]
Dxen-front-pgdir-shbuf.h26 * of grant references for the page directory and the pages
30 * of grant references for the page directory itself as grant
72 * Mode of grant reference sharing: if set then backend will share
73 * grant references to the buffer with the frontend.
/kernel/linux/linux-5.10/include/xen/
Dgrant_table.h6 * 2. Accessing others' memory reservations via grant references.
7 * (i.e., mechanisms for both sender and recipient of grant references)
89 * End access through the given grant reference, iff the grant entry is no
90 * longer in use. Return 1 if the grant entry was freed, 0 if it is still in
96 * Eventually end access through the given grant reference, and once that
98 * immediately iff the grant entry is not in use, otherwise it will happen
105 * the grant is no longer in use.
114 * End access through the given grant reference, iff the grant entry is
116 * grant reference is deallocated.
117 * Return 1 if the grant entry was freed, 0 if it is still in use.
[all …]
Dxen-front-pgdir-shbuf.h26 * of grant references for the page directory and the pages
30 * of grant references for the page directory itself as grant
72 * Mode of grant reference sharing: if set then backend will share
73 * grant references to the buffer with the frontend.
/kernel/linux/linux-5.10/drivers/xen/
Dxen-front-pgdir-shbuf.c26 * FIXME: usage of grant reference 0 as invalid grant reference:
27 * grant reference 0 is valid, but never exposed to a PV driver,
35 * that contains grant references to the pages of the shared
61 /* Claim grant references for the pages of the buffer. */
65 /* Map grant references of the buffer. */
68 /* Unmap grant references of the buffer. */
75 * so it can find/fill the grant references to the buffer's
108 /* No need to map own grant references. */ in xen_front_pgdir_shbuf_map()
129 /* No need to unmap own grant references. */ in xen_front_pgdir_shbuf_unmap()
173 * Calculate the number of grant references needed to share the buffer
[all …]
Dgrant-table.c69 /* External tools reserve first few grant table entries. */
88 /*This is a structure of function pointers for grant table*/
91 * Version of the grant interface.
95 * Grant refs per grant frame.
99 * Mapping a list of frames for storing grant entries. Frames parameter
100 * is used to store grant table address when grant table being setup,
101 * nr_gframes is the number of frames to map grant table. Returning
106 * Release a list of frames which are mapped in map_frames for grant
111 * Introducing a valid entry into the grant table, granting the frame of
112 * this grant entry to domain for accessing or transfering. Ref
[all …]
Dgntalloc.c4 * Device for creating grant references (in user-space) that may be shared
20 * Linux userspace programs cannot create grant references.
24 * Y -> mapping the grant from X
27 * 2. X creates an entry in the grant table that says domid(Y) can access P.
28 * This is done without a hypercall unless the grant table needs expansion.
29 * 3. X gives the grant reference identifier, GREF, to Y.
39 * The grant allocation and mmap()ing are, naturally, two separate operations.
43 * WARNING: Since Xen does not allow a guest to forcibly end the use of a grant
44 * reference, this device can be used to consume kernel memory by leaving grant
48 * grant operation.
[all …]
DKconfig137 tristate "userspace grant access device driver"
145 bool "Add support for dma-buf grant access device driver extension"
150 dma-buf implementation. With this extension grant references to
152 use and grant references coming from a foreign domain can be
156 tristate "User-space grant reference allocator driver"
165 bool "Allow allocating DMA capable buffers with grant reference module"
168 Extends grant table module API to allow allocating DMA capable
169 buffers and mapping foreign grant references on top of it.
334 memory regions, including grant maps and foreign pages. This avoids
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/iommu/
Dxen,grant-dma.yaml4 $id: http://devicetree.org/schemas/iommu/xen,grant-dma.yaml#
13 The Xen IOMMU represents the Xen grant table interface. Grant mappings
16 The binding is required to restrict memory access using Xen grant mappings.
20 const: xen,grant-dma
37 compatible = "xen,grant-dma";
/kernel/linux/linux-5.10/include/uapi/xen/
Dgntdev.h41 /* The domain ID of the grant to be mapped. */
43 /* The grant reference of the grant to be mapped. */
48 * Inserts the grant references into the mapping table of an instance
63 /* Array of grant references, of size @count. */
68 * Removes the grant references from the mapping table of an instance of
165 * Copy between grant references and local buffers.
168 * to/from one grant reference.
220 * Create a dma-buf [1] from grant references @refs of count @count provided
241 /* Number of grant references in @refs array. */
246 /* The domain ID of the grant references to be mapped. */
[all …]
Dgntalloc.h17 * Allocates a new page and creates a new grant reference.
32 /* The grant references of the newly created grant, one per page */
40 * Deallocates the grant reference, allowing the associated page to be freed if
/kernel/linux/linux-6.6/include/uapi/xen/
Dgntdev.h41 /* The domain ID of the grant to be mapped. */
43 /* The grant reference of the grant to be mapped. */
48 * Inserts the grant references into the mapping table of an instance
51 * considered opaque to userspace, with one exception: if no grant
69 /* Array of grant references, of size @count. */
74 * Removes the grant references from the mapping table of an instance of
171 * Copy between grant references and local buffers.
174 * to/from one grant reference.
226 * Create a dma-buf [1] from grant references @refs of count @count provided
247 /* Number of grant references in @refs array. */
[all …]
Dgntalloc.h17 * Allocates a new page and creates a new grant reference.
32 /* The grant references of the newly created grant, one per page */
40 * Deallocates the grant reference, allowing the associated page to be freed if
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-fs-xfs23 The current state of the log reserve grant head. It
25 outstanding transactions. The grant head is exported in
34 The current state of the log write grant head. It
37 rolling transactions. The grant head is exported in
/kernel/linux/linux-6.6/Documentation/ABI/testing/
Dsysfs-fs-xfs23 The current state of the log reserve grant head. It
25 outstanding transactions. The grant head is exported in
34 The current state of the log write grant head. It
37 rolling transactions. The grant head is exported in
/kernel/linux/linux-5.10/include/xen/interface/io/
Dvscsiif.h73 * feature-sg-grant
77 * Specifies the maximum number of scatter/gather elements in grant pages
96 * The Xen grant reference granting permission for the backend to map
127 * If "feature-sg-grant" in the Xenstore is set it is possible to specify more
130 * of the "feature-sg-grant" entry from Xenstore. When using indirection the
165 * If "feature-sg-grant" is set, more scatter/gather elements can be specified
204 * flag in nr_segments: SG elements via grant page
207 * of grant pages containing SG elements. Usable if "feature-sg-grant" set.
/kernel/linux/linux-5.10/drivers/gpu/drm/xen/
Dxen_drm_front.h65 * backend exhausting its grant references and memory
85 * Note on usage of grant reference 0 as invalid grant reference:
86 * grant reference 0 is valid, but never exposed to a PV driver,

12345678910>>...29