Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-27 Thread Cornelia Huck
On Mon, 27 May 2019 13:47:55 +0200 Halil Pasic wrote: > On Mon, 27 May 2019 08:57:18 +0200 > Cornelia Huck wrote: > > > On Thu, 23 May 2019 18:22:03 +0200 > > Michael Mueller wrote: > > > > > From: Halil Pasic > > > > > > To support protected virtualization cio will need to make sure the

Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-27 Thread Michael Mueller
On 27.05.19 08:57, Cornelia Huck wrote: On Thu, 23 May 2019 18:22:03 +0200 Michael Mueller wrote: From: Halil Pasic To support protected virtualization cio will need to make sure the memory used for communication with the hypervisor is DMA memory. Let us introduce one global cio, and

Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-27 Thread Halil Pasic
On Mon, 27 May 2019 08:57:18 +0200 Cornelia Huck wrote: > On Thu, 23 May 2019 18:22:03 +0200 > Michael Mueller wrote: > > > From: Halil Pasic > > > > To support protected virtualization cio will need to make sure the > > memory used for communication with the hypervisor is DMA memory. > > >

Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-27 Thread Michael Mueller
On 25.05.19 11:22, Sebastian Ott wrote: On Thu, 23 May 2019, Michael Mueller wrote: +static void __init cio_dma_pool_init(void) +{ + /* No need to free up the resources: compiled in */ + cio_dma_pool = cio_gp_dma_create(cio_get_dma_css_dev(), 1); This can return NULL.

Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-27 Thread Cornelia Huck
On Thu, 23 May 2019 18:22:03 +0200 Michael Mueller wrote: > From: Halil Pasic > > To support protected virtualization cio will need to make sure the > memory used for communication with the hypervisor is DMA memory. > > Let us introduce one global cio, and some tools for pools seated "one

Re: [PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-25 Thread Sebastian Ott
On Thu, 23 May 2019, Michael Mueller wrote: > +static void __init cio_dma_pool_init(void) > +{ > + /* No need to free up the resources: compiled in */ > + cio_dma_pool = cio_gp_dma_create(cio_get_dma_css_dev(), 1); This can return NULL. > +/** > + * Allocate dma memory from the css

[PATCH v2 2/8] s390/cio: introduce DMA pools to cio

2019-05-23 Thread Michael Mueller
From: Halil Pasic To support protected virtualization cio will need to make sure the memory used for communication with the hypervisor is DMA memory. Let us introduce one global cio, and some tools for pools seated at individual devices. Our DMA pools are implemented as a gen_pool backed with