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)
commit64e1f0c531d1072cd97939bf0d8df42b26713543
treee98f6f8de50fd7bf6f68627f558469c3b3f3915b
parent45488c48e49b6ded9850bb0293668a92f96293c2
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