]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: force swiotlb for protected virtualization
authorHalil Pasic <pasic@linux.ibm.com>
Thu, 13 Sep 2018 16:57:16 +0000 (18:57 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Sat, 15 Jun 2019 10:24:51 +0000 (12:24 +0200)
commitf346608fa67882e44efc81addd7c2f9b08cf5d47
treee98f6f8de50fd7bf6f68627f558469c3b3f3915b
parentdf1a1131cf41491155347ada3214130b57a8c58c
s390/mm: force swiotlb for protected virtualization

On s390, protected virtualization guests have to use bounced I/O
buffers.  That requires some plumbing.

Let us make sure, any device that uses DMA API with direct ops correctly
is spared from the problems, that a hypervisor attempting I/O to a
non-shared page would bring.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Michael Mueller <mimu@linux.ibm.com>
Tested-by: Michael Mueller <mimu@linux.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/mem_encrypt.h [new file with mode: 0644]
arch/s390/mm/init.c