diff options
author | Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com> | 2018-07-20 12:01:45 +0300 |
---|---|---|
committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2018-07-26 23:05:14 -0400 |
commit | 9bdc7304f536f3f77f0a69e7c3a8f5afda561a68 (patch) | |
tree | b2d1da458c919c4e78b6f3cb65a89f8cce15cd45 /include/video/newport.h | |
parent | xen/balloon: Share common memory reservation routines (diff) | |
download | linux-dev-9bdc7304f536f3f77f0a69e7c3a8f5afda561a68.tar.xz linux-dev-9bdc7304f536f3f77f0a69e7c3a8f5afda561a68.zip |
xen/grant-table: Allow allocating buffers suitable for DMA
Extend grant table module API to allow allocating buffers that can
be used for DMA operations and mapping foreign grant references
on top of those.
The resulting buffer is similar to the one allocated by the balloon
driver in that proper memory reservation is made by
({increase|decrease}_reservation and VA mappings are updated if
needed).
This is useful for sharing foreign buffers with HW drivers which
cannot work with scattered buffers provided by the balloon driver,
but require DMAable memory instead.
Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'include/video/newport.h')
0 files changed, 0 insertions, 0 deletions