diff options
author | Juergen Gross <jgross@suse.com> | 2022-06-02 22:23:48 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2022-06-06 08:54:52 +0200 |
commit | d6aca3504c7ded5f4f46957e3685b9344d9743dd (patch) | |
tree | 98a7a9c3a2d41bf5244176b39f2ef5b04522950b /drivers/xen/Kconfig | |
parent | 02a9e681a3f7998074f39ec265080bf934871530 (diff) | |
download | linux-d6aca3504c7ded5f4f46957e3685b9344d9743dd.tar.bz2 |
xen/grant-dma-ops: Add option to restrict memory access under Xen
Introduce Xen grant DMA-mapping layer which contains special DMA-mapping
routines for providing grant references as DMA addresses to be used by
frontends (e.g. virtio) in Xen guests.
Add the needed functionality by providing a special set of DMA ops
handling the needed grant operations for the I/O pages.
The subsequent commit will introduce the use case for xen-grant DMA ops
layer to enable using virtio devices in Xen guests in a safe manner.
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/1654197833-25362-4-git-send-email-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen/Kconfig')
-rw-r--r-- | drivers/xen/Kconfig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig index 120d32f164ac..313a9127fd5c 100644 --- a/drivers/xen/Kconfig +++ b/drivers/xen/Kconfig @@ -335,4 +335,8 @@ config XEN_UNPOPULATED_ALLOC having to balloon out RAM regions in order to obtain physical memory space to create such mappings. +config XEN_GRANT_DMA_OPS + bool + select DMA_OPS + endmenu |