]> git.baikalelectronics.ru Git - kernel.git/commit
xen/arm: introduce XENFEAT_direct_mapped and XENFEAT_not_direct_mapped
authorStefano Stabellini <stefano.stabellini@xilinx.com>
Fri, 19 Mar 2021 20:01:40 +0000 (13:01 -0700)
committerJuergen Gross <jgross@suse.com>
Fri, 23 Apr 2021 09:33:50 +0000 (11:33 +0200)
commitba7cc0278762ad3af08dab94d3ab128ea58d0b95
tree845187f971beecc8c97874a6789a4661e3951056
parent0fcd62e207910edaea7f5a3c69b8ac21b1844053
xen/arm: introduce XENFEAT_direct_mapped and XENFEAT_not_direct_mapped

Newer Xen versions expose two Xen feature flags to tell us if the domain
is directly mapped or not. Only when a domain is directly mapped it
makes sense to enable swiotlb-xen on ARM.

Introduce a function on ARM to check the new Xen feature flags and also
to deal with the legacy case. Call the function xen_swiotlb_detect.

Signed-off-by: Stefano Stabellini <stefano.stabellini@xilinx.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210319200140.12512-1-sstabellini@kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/arm/include/asm/xen/swiotlb-xen.h [new file with mode: 0644]
arch/arm/xen/mm.c
arch/arm64/include/asm/xen/swiotlb-xen.h [new file with mode: 0644]
arch/arm64/mm/dma-mapping.c
include/xen/arm/swiotlb-xen.h [new file with mode: 0644]
include/xen/interface/features.h
include/xen/swiotlb-xen.h