]> git.baikalelectronics.ru Git - kernel.git/commit
arm/xen: Assign xen-grant DMA ops for xen-grant DMA devices
authorOleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Thu, 2 Jun 2022 19:23:53 +0000 (22:23 +0300)
committerJuergen Gross <jgross@suse.com>
Mon, 6 Jun 2022 14:07:30 +0000 (16:07 +0200)
commitc8df20b2ac394e46b88b671391f719424c90d2ee
tree9a87d7ab61808cf1b5d71243c976faa893502450
parentcd295e0d1aa2182d1c6e3df9d1b2b71134d02db9
arm/xen: Assign xen-grant DMA ops for xen-grant DMA devices

By assigning xen-grant DMA ops we will restrict memory access for
passed device using Xen grant mappings. This is needed for using any
virtualized device (e.g. virtio) in Xen guests in a safe manner.

Please note, for the virtio devices the XEN_VIRTIO config should
be enabled (it forces ARCH_HAS_RESTRICTED_VIRTIO_MEMORY_ACCESS).

Signed-off-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Link: https://lore.kernel.org/r/1654197833-25362-9-git-send-email-olekstysh@gmail.com
Signed-off-by: Juergen Gross <jgross@suse.com>
include/xen/arm/xen-ops.h