From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7495DC433EF for ; Mon, 16 May 2022 10:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233302AbiEPKSo (ORCPT ); Mon, 16 May 2022 06:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242351AbiEPKSn (ORCPT ); Mon, 16 May 2022 06:18:43 -0400 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 833BADEB7 for ; Mon, 16 May 2022 03:18:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652696319; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OACVO52ZlkJLVKrD7n6wC0HSWrpeefnl2+wSjxpBQF0=; b=RePW0bzPnv32eDsJ78i9V5brt7bnPmM18+/F6qSmd9DQgQeLvBJfkH/dh43H5U2WJSkF0e x0/TpQYqLNzwiqR1PpOwh/Md+Z3JHxmtLnLKuVE3E2rGqJdF8XsaKWFGS/9lBQXbzlIfWb RwEaMMsK55L6BOGiXnTPQEypD7CKF00= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-650-y0ueEZCzMCOtquqSC2Fy_g-1; Mon, 16 May 2022 06:18:38 -0400 X-MC-Unique: y0ueEZCzMCOtquqSC2Fy_g-1 Received: by mail-wr1-f69.google.com with SMTP id e6-20020adfef06000000b0020d08e465e2so335620wro.3 for ; Mon, 16 May 2022 03:18:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=OACVO52ZlkJLVKrD7n6wC0HSWrpeefnl2+wSjxpBQF0=; b=4Nr+7HL1Lp9VpZ7/BbDupPukHz6PA+jHarg0S6ywUJ46mkNAW2I3x2+4A4K3z7bsE6 mzTusEl/f8y8GXQoTo6K6Td/MAmO78TfCxLtUGa6a6Mj2U/0azRVFtlQA1YERPykNDhI l6h/MraoCBQreMWygQ4ZlaKD1dEK/qUbOkfOqtkrG/F8szXrqzgkZYJy1UEdF46YX0RY /oxEl/NuUFuBXBI5ftwVmRmqA8qSHFqUbuoDN8BcPVsZ3ophc7KbWDtasc09jYNghaz6 dVr0jLsfKIMuwDW8ZcJjkBH8Dfe2ddLlbHVaBC2CmxVmPW/ZmgR4IwNiTL4m3p6MJZUU LFZw== X-Gm-Message-State: AOAM530upV42NoEain1Q1uHyg8oZSr7arTph8CBan87EhEAGCDEgczas P6IiK5dgTFSADDAYwg2AGusfgYxoZ4EtdhU6ROfUzlMh3K6iUVo+XucfNqfzKO0BT0zfWKLSvZe BiCXrxectKbhDhuOSCe8G5w== X-Received: by 2002:a7b:c5d0:0:b0:355:482a:6f44 with SMTP id n16-20020a7bc5d0000000b00355482a6f44mr15891214wmk.58.1652696317255; Mon, 16 May 2022 03:18:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSQwk16SVnaahPaNGx+BespB0LTg4zYLJuuHiR6B6yKfb6IpUnFfwvGw90G+5SaudWYJ2Tlw== X-Received: by 2002:a7b:c5d0:0:b0:355:482a:6f44 with SMTP id n16-20020a7bc5d0000000b00355482a6f44mr15891198wmk.58.1652696317047; Mon, 16 May 2022 03:18:37 -0700 (PDT) Received: from [192.168.0.2] (ip-109-43-178-142.web.vodafone.de. [109.43.178.142]) by smtp.gmail.com with ESMTPSA id p19-20020a05600c1d9300b003942a244ed1sm9612438wms.22.2022.05.16.03.18.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 May 2022 03:18:36 -0700 (PDT) Message-ID: <96d0a6a5-e50f-429e-9616-178ac1d9883a@redhat.com> Date: Mon, 16 May 2022 12:18:34 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v7 06/22] s390/airq: allow for airq structure that uses an input vector Content-Language: en-US To: Matthew Rosato , linux-s390@vger.kernel.org Cc: alex.williamson@redhat.com, cohuck@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, svens@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, pasic@linux.ibm.com, pbonzini@redhat.com, corbet@lwn.net, jgg@nvidia.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org References: <20220513191509.272897-1-mjrosato@linux.ibm.com> <20220513191509.272897-7-mjrosato@linux.ibm.com> From: Thomas Huth In-Reply-To: <20220513191509.272897-7-mjrosato@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On 13/05/2022 21.14, 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 > Reviewed-by: Claudio Imbrenda > Acked-by: Cornelia Huck > 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(-) Reviewed-by: Thomas Huth