From mboxrd@z Thu Jan 1 00:00:00 1970 From: Halil Pasic Subject: Re: [PATCH v3 8/8] virtio/s390: make airq summary indicators DMA Date: Mon, 3 Jun 2019 19:54:56 +0200 Message-ID: <20190603195456.6364fb53.pasic@linux.ibm.com> References: <20190529122657.166148-1-mimu@linux.ibm.com> <20190529122657.166148-9-mimu@linux.ibm.com> <20190603180337.17723bcf.cohuck@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190603180337.17723bcf.cohuck@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: Cornelia Huck Cc: Vasily Gorbik , Linux-S390 Mailing List , Thomas Huth , Claudio Imbrenda , KVM Mailing List , Sebastian Ott , "Michael S . Tsirkin" , Pierre Morel , Farhan Ali , Heiko Carstens , Eric Farman , virtualization@lists.linux-foundation.org, Christoph Hellwig , Christian Borntraeger , Michael Mueller , Viktor Mihajlovski , Janosch Frank List-Id: virtualization@lists.linuxfoundation.org On Mon, 3 Jun 2019 18:03:37 +0200 Cornelia Huck wrote: > On Wed, 29 May 2019 14:26:57 +0200 > Michael Mueller wrote: > > > From: Halil Pasic > > > > Hypervisor needs to interact with the summary indicators, so these > > need to be DMA memory as well (at least for protected virtualization > > guests). > > > > Signed-off-by: Halil Pasic > > Signed-off-by: Michael Mueller > > --- > > drivers/s390/virtio/virtio_ccw.c | 26 +++++++++++++++++++------- > > 1 file changed, 19 insertions(+), 7 deletions(-) > > (...) > > > @@ -1501,6 +1508,11 @@ static int __init virtio_ccw_init(void) > > { > > /* parse no_auto string before we do anything further */ > > no_auto_parse(); > > + > > + summary_indicators = cio_dma_zalloc(MAX_AIRQ_AREAS); > > + if (!summary_indicators) > > + return -ENOMEM; > > + > > return ccw_driver_register(&virtio_ccw_driver); > > Don't you need to free summary_indicators again if registering the > driver fails? > We do! BTW as of today I'm back and I intend to handle things regularly form now on ;). Regards, Halil > > } > > device_initcall(virtio_ccw_init); >