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 X-Spam-Level: X-Spam-Status: No, score=-7.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9FE90C433E0 for ; Thu, 11 Feb 2021 15:51:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6E17664E8B for ; Thu, 11 Feb 2021 15:51:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231616AbhBKPux (ORCPT ); Thu, 11 Feb 2021 10:50:53 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:3937 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231511AbhBKPsf (ORCPT ); Thu, 11 Feb 2021 10:48:35 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 11 Feb 2021 07:47:32 -0800 Received: from DRHQMAIL107.nvidia.com (10.27.9.16) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Feb 2021 15:47:32 +0000 Received: from [172.27.0.87] (172.20.145.6) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 11 Feb 2021 15:47:26 +0000 Subject: Re: [PATCH 8/9] vfio/pci: use x86 naming instead of igd To: Jason Gunthorpe , Cornelia Huck CC: Alex Williamson , Matthew Rosato , , , , , , , , , , , , , , , , References: <20210201162828.5938-1-mgurtovoy@nvidia.com> <20210201162828.5938-9-mgurtovoy@nvidia.com> <20210201181454.22112b57.cohuck@redhat.com> <599c6452-8ba6-a00a-65e7-0167f21eac35@linux.ibm.com> <20210201114230.37c18abd@omen.home.shazbot.org> <20210202170659.1c62a9e8.cohuck@redhat.com> <20210202171021.GW4247@nvidia.com> From: Max Gurtovoy Message-ID: Date: Thu, 11 Feb 2021 17:47:23 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210202171021.GW4247@nvidia.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL101.nvidia.com (172.20.187.10) To DRHQMAIL107.nvidia.com (10.27.9.16) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1613058452; bh=UTOoJv9jmFrHAMyl7esEQ23+zBkmHWAQIZNkJ0IockI=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding: Content-Language:X-Originating-IP:X-ClientProxiedBy; b=jiIjxxbkXpvGXoJBCPSS1QO0ur9yeT8SMk8qDADTJAMPSOxQtx4Q6Q4YheC29tlDL G26g+TEkk/Khm1+5Fhn3hYOm9WI2AztDMNsqzyiI5+S1V2LwKcgXUYEYI1ueJxTOgO 1WyYYNwFwWvFObVuhaBwl7DLc4TO4zKeAPZpCum/hPYNMOgP4sfRpBQfBLVcweY+wU a1LnINk0/MW2kMhVWDs0MZSbDLLm9FH2VMA8hBqQRgsBUmDzTya1+0+h21rJQH6WwI LbG4HtSKBFJ0WigqMhq2+kNNHFV/HEWmxAtEJd8JJBuX2eIR2Zp2OHKfU/+NyDLThJ EiLwufx3RZvNg== Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On 2/2/2021 7:10 PM, Jason Gunthorpe wrote: > On Tue, Feb 02, 2021 at 05:06:59PM +0100, Cornelia Huck wrote: > >> On the other side, we have the zdev support, which both requires s390 >> and applies to any pci device on s390. > Is there a reason why CONFIG_VFIO_PCI_ZDEV exists? Why not just always > return the s390 specific data in VFIO_DEVICE_GET_INFO if running on > s390? > > It would be like returning data from ACPI on other platforms. Agree. all agree that I remove it ? we already have a check in the code: if (ret && ret !=3D -ENODEV) { =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pci_warn(vdev->vpdev.pdev, "Failed = to=20 setup zPCI info capabilities\n"); =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 return ret; } so in case its not zdev we should get -ENODEV and continue in the good flow= . > > It really seems like part of vfio-pci-core > > Jason