xen/virtio: restructure xen grant dma setup
authorJuergen Gross <jgross@suse.com>
Mon, 29 Aug 2022 11:26:07 +0000 (13:26 +0200)
committerJuergen Gross <jgross@suse.com>
Fri, 7 Oct 2022 14:39:01 +0000 (16:39 +0200)
commitc9133112f347907774055bbf73179a7ff8504689
tree46af7a765753fbdbf9d340c344c91d3947775953
parent2849752f36848359034616eb70dfc7fb14eb3cd4
xen/virtio: restructure xen grant dma setup

In order to prepare supporting other means than device tree for
setting up virtio devices under Xen, restructure the functions
xen_is_grant_dma_device() and xen_grant_setup_dma_ops() a little bit.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Tested-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com> # Arm64 only
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/grant-dma-ops.c