Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp380355pxb; Mon, 7 Feb 2022 13:43:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpa7MFc+ckTytQSiDnhu6QFFOH7vVDXTYNWFbQNGOxmN3X8c1GkPgPUpiMnePr8AZGMquT X-Received: by 2002:a17:907:1693:: with SMTP id hc19mr1309839ejc.297.1644270197669; Mon, 07 Feb 2022 13:43:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644270197; cv=none; d=google.com; s=arc-20160816; b=GPwC0/93fOV+K5UBiWjwIMDFe+hUr/WIZkx3759pHM0Te22fWBFfG3MgM9+ADb+nC3 oKVUetjFJvRAYUKNLrqxw4783qGcBklWT/ZAu6202pXB0qqA1v2l0d4xN0kEcr+Yty35 4YcI+WQ2JUM/VD+t/Be1gX9F8DJKNfTHZFsc0k/pLLEKtgGWeyZvH1u+uWmfjP6GRMHM 1b7Mr9dGg+/6ZEnf8Mdg5+Hw6pFcdDNMhFHbiFG3RdAlagn3Sk670iIPS/fBlSFTz4lL SGYalCjYoMwNhB6grO1YBoEmOI1/fSALj+YTHKbfio8N2uZAkDAlvfz5bX78LsI9lDiB /tBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=9Tgu8NU8kx/MzJz+tw2bHaoQFz1xbDGIOoBlb5WHVtg=; b=Da878NY6Xsjep0+gOSdEckrW4sbEZPJ1DXm+dxyHRPfCanbjsxc4SE9uaeV5gnFS3X nKKEAngck+gB3X4eCnUjQhENrV/mBRBO4A49G92tavvz6KUbsSm5Rn6nE6qE1jXadEAi 0k9J5NGHMvozUloXU76BPJetL4XCRj8WWcwSZS8n2vIwWq782mfdDJiz/0axYel/sbQ6 UZsDMRzKxTG4BuTq5jXnm6M3i8QniKvcgwjxMDnYas/2cXhP0kuzbiAvkwuiwP5xRlvK utaOvHU1xdo1bCV5ycq65V4Fcyst9uCEgMaoLkRyLqvc/q/Nc2/EGAb4zIJT212VTw9d Opaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NKGZHTmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15si7563273ejj.553.2022.02.07.13.42.52; Mon, 07 Feb 2022 13:43:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NKGZHTmj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244679AbiBGIbk (ORCPT + 99 others); Mon, 7 Feb 2022 03:31:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243642AbiBGIaY (ORCPT ); Mon, 7 Feb 2022 03:30:24 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 607B9C043185 for ; Mon, 7 Feb 2022 00:30:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644222622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9Tgu8NU8kx/MzJz+tw2bHaoQFz1xbDGIOoBlb5WHVtg=; b=NKGZHTmjW9atyQqYPgpGgeSAVgOM9cHduI35lMs9sBjqAQYIN5LFrnJbbDuPNXPM24ZAMh KAunkBr/sKT0bHUdj+3u8BXJd3cSimoZ2F4Uiv6jXtGQb+wd8C3xzwLOMWUGI322l4EliX yYZbSbQdnFWQ9wqooER+UXY+vlMk8fM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-646-N8a6INfDMTKha-eEGwL6DA-1; Mon, 07 Feb 2022 03:30:19 -0500 X-MC-Unique: N8a6INfDMTKha-eEGwL6DA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2CDFB8519E1; Mon, 7 Feb 2022 08:30:17 +0000 (UTC) Received: from localhost (unknown [10.39.193.241]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 18CB510589D0; Mon, 7 Feb 2022 08:29:46 +0000 (UTC) From: Cornelia Huck To: Matthew Rosato , linux-s390@vger.kernel.org Cc: alex.williamson@redhat.com, schnelle@linux.ibm.com, farman@linux.ibm.com, pmorel@linux.ibm.com, borntraeger@linux.ibm.com, hca@linux.ibm.com, gor@linux.ibm.com, gerald.schaefer@linux.ibm.com, agordeev@linux.ibm.com, frankja@linux.ibm.com, david@redhat.com, imbrenda@linux.ibm.com, vneethv@linux.ibm.com, oberpar@linux.ibm.com, freude@linux.ibm.com, thuth@redhat.com, pasic@linux.ibm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 06/30] s390/airq: allow for airq structure that uses an input vector In-Reply-To: <20220204211536.321475-7-mjrosato@linux.ibm.com> Organization: Red Hat GmbH References: <20220204211536.321475-1-mjrosato@linux.ibm.com> <20220204211536.321475-7-mjrosato@linux.ibm.com> User-Agent: Notmuch/0.34 (https://notmuchmail.org) Date: Mon, 07 Feb 2022 09:29:44 +0100 Message-ID: <87fsovw03r.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 04 2022, Matthew Rosato wrote: > When doing device passthrough where interrupts are being forwarded from > host to guest, we wish to use a pinned section of guest memory as the > vector (the same memory used by the guest as the vector). To accomplish > this, add a new parameter for airq_iv_create which allows passing an > existing vector to be used instead of allocating a new one. The caller > is responsible for ensuring the vector is pinned in memory as well as for > unpinning the memory when the vector is no longer needed. > > A subsequent patch will use this new parameter for zPCI interpretation. > > Reviewed-by: Pierre Morel > Signed-off-by: Matthew Rosato > --- > arch/s390/include/asm/airq.h | 4 +++- > arch/s390/pci/pci_irq.c | 8 ++++---- > drivers/s390/cio/airq.c | 10 +++++++--- > drivers/s390/virtio/virtio_ccw.c | 2 +- > 4 files changed, 15 insertions(+), 9 deletions(-) For virtio-ccw: Acked-by: Cornelia Huck