summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/css.c
diff options
context:
space:
mode:
authorHalil Pasic <pasic@linux.ibm.com>2018-09-13 18:57:16 +0200
committerHeiko Carstens <heiko.carstens@de.ibm.com>2019-06-15 12:25:05 +0200
commitb50623e5db802e41736f3305cb54c03bc7f0e30a (patch)
tree338d7c361dc8b6c3ec9c7d2d9e4fd421fab755dd /drivers/s390/cio/css.c
parents390/cio: add basic protected virtualization support (diff)
downloadlinux-b50623e5db802e41736f3305cb54c03bc7f0e30a.tar.xz
linux-b50623e5db802e41736f3305cb54c03bc7f0e30a.zip
s390/airq: use DMA memory for adapter interrupts
Protected virtualization guests have to use shared pages for airq notifier bit vectors, because the hypervisor needs to write these bits. Let us make sure we allocate DMA memory for the notifier bit vectors by replacing the kmem_cache with a dma_cache and kalloc() with cio_dma_zalloc(). Signed-off-by: Halil Pasic <pasic@linux.ibm.com> Reviewed-by: Sebastian Ott <sebott@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>
Diffstat (limited to 'drivers/s390/cio/css.c')
-rw-r--r--drivers/s390/cio/css.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c
index 7b1a440a1f8e..7159933d9d3e 100644
--- a/drivers/s390/cio/css.c
+++ b/drivers/s390/cio/css.c
@@ -1184,6 +1184,7 @@ static int __init css_bus_init(void)
ret = cio_dma_pool_init();
if (ret)
goto out_unregister_pmn;
+ airq_init();
css_init_done = 1;
/* Enable default isc for I/O subchannels. */