From nobody Wed Nov 27 12:30:52 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=intel.com); dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=2; a=rsa-sha256; t=1699434507; cv=pass; d=zohomail.com; s=zohoarc; b=Vz2HdaRCSpcspPmqPIw9hqINSDu1doK7u05D2Fnw2OQOh/izvJosQ6zaGzYiJ0Fr/mUjBpTlrN6xfiijdagGuFfZ5GUyRJ3GrWWkUz/PT1/bqExj+YxvhX/ABr6aMKLRVOYIfMA+y04v6CSjuqvxZZEmAAJE1PmkLrFLhHSvEYY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1699434507; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5IBMa6jtlZo3TO2lZudpmYljqxVVmEXVpipKQzfvoeE=; b=a6gVRPm7ZGxb+hknkeUOUyMxxG5bZwRxpCWrAaB77uRwHCO53VGO6k+KKl6BZkpyfgIV0t92PxaiFqZFgsVTpfSscDJYXvGV19GgM8MDKoXUCrgtuLhkU8z4FFES6wfgMZngFn4usfzEuiEom/EfyiGVhNhzioAPjz3eB+tnJAE= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; arc=pass (i=1 dmarc=pass fromdomain=intel.com); dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1699434507450973.0298628033355; Wed, 8 Nov 2023 01:08:27 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0eXP-0004yZ-1a; Wed, 08 Nov 2023 04:07:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0eXM-0004y6-WE for qemu-devel@nongnu.org; Wed, 08 Nov 2023 04:07:49 -0500 Received: from mgamail.intel.com ([192.55.52.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0eXJ-0002UG-OK for qemu-devel@nongnu.org; Wed, 08 Nov 2023 04:07:48 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2023 01:07:37 -0800 Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Nov 2023 01:07:36 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 8 Nov 2023 01:07:36 -0800 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 8 Nov 2023 01:07:35 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Wed, 8 Nov 2023 01:07:35 -0800 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Wed, 8 Nov 2023 01:07:35 -0800 Received: from SJ0PR11MB6744.namprd11.prod.outlook.com (2603:10b6:a03:47d::10) by DM6PR11MB4753.namprd11.prod.outlook.com (2603:10b6:5:2ac::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6954.29; Wed, 8 Nov 2023 09:07:32 +0000 Received: from SJ0PR11MB6744.namprd11.prod.outlook.com ([fe80::a4bb:8de0:9dde:2fea]) by SJ0PR11MB6744.namprd11.prod.outlook.com ([fe80::a4bb:8de0:9dde:2fea%4]) with mapi id 15.20.6954.028; Wed, 8 Nov 2023 09:07:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699434466; x=1730970466; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=5IBMa6jtlZo3TO2lZudpmYljqxVVmEXVpipKQzfvoeE=; b=IxA+lU3uBNlIRNC8YcZTMpFSDa7KHiA20GOhbYT4/JVQdczroO1Eveji xAr/08oToSO0PmXB6eFaJ2fO6xUcLhkz49jHMnpOX6oWiD3+k5Gq9VKoV 8CwP7h995Y6mKCauHj2EkieQopxaa0NH7ZxhtJWjHJ2d5SGZ7RvvIURED VrHPvd3GIFiLQtNN3m98TbORStr1LujwcDrUirPS+cZbRF/q+TqRDc917 TuAqXKb+ncDayhev6TmnodI2l/Evb6iGWB5Nmynfp5C1H1p/C2jK5OSFR inysm7+D75at4hGUd2pxQC95gLMqGg/GOVJYnJMQMQBzZkt/6g6xBg2s3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="369060882" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="369060882" X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10887"; a="762998168" X-IronPort-AV: E=Sophos;i="6.03,285,1694761200"; d="scan'208";a="762998168" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H/P8elOjAGmTaTUrYFdg1wLELBTxM6X62A+Z5JgNgVRtlQHxH4pU0eSteIg9WF9fm3jyJL3hKizQAprK+FIjVTevW4+9VbuYCB9959D6gO7DBConAByuPI68GYNqTUt1rzGkj7Lb4va3YjmeKgq7pecARfONKqdBwPvIbT6InJrDjtU7Ab+VQrRzgtfoBaekGtCcFtiVxpI7xXKmtaLqUaHzLcfqW3AdQv+eyfmzSWhIUHMQaP/q/HVbmkn6ZnR/yQHWPi7epPlTxK6SCQ1nqe8+TsaD2IVORmlffD/u9sucTtP4LEovGt0UtaOTk5IqOehBWzjcY+xJmkDBSHGIyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5IBMa6jtlZo3TO2lZudpmYljqxVVmEXVpipKQzfvoeE=; b=SDRJgVoT/mspbRBtEZJ4poejrqn2UxzMKZFOqgc2PkCJs+EPz+FP5LzVUqQqHCKMBC9P/pIqoo5C9NDqun4edVdqA6S3pMSR1XftY8EduIbJFpx8D3br5fbbiA/ichoel+ub5zHLzPTK9IQkA8C02lvAn7UiZ/KeFJBhrJe7HigTP0gtfc8FFcPeLGyI3D0HYtjV7h9rF76zk3YRhW9sC9brZhRgHLzJDyCrbYqa+fOtsjY3zp1NEU3ToyHhFwNs5ifuzIwBaFcEXVx3CufA3rp4Cj4xeeY7qV5ua3DsOAnigXCXD7r5UK8W16J86YH/rCXmJlhXQO3SvlZpjn0R4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none From: "Duan, Zhenzhong" To: Matthew Rosato , =?utf-8?B?Q8OpZHJpYyBMZSBHb2F0ZXI=?= , "qemu-devel@nongnu.org" CC: "alex.williamson@redhat.com" , "jgg@nvidia.com" , "nicolinc@nvidia.com" , "Martins, Joao" , "eric.auger@redhat.com" , "peterx@redhat.com" , "jasowang@redhat.com" , "Tian, Kevin" , "Liu, Yi L" , "Sun, Yi Y" , "Peng, Chao P" , Thomas Huth , Eric Farman , Halil Pasic , "Jason J. Herne" , Tony Krowiak Subject: RE: [PATCH v4 00/41] vfio: Adopt iommufd Thread-Topic: [PATCH v4 00/41] vfio: Adopt iommufd Thread-Index: AQHaDV4v7k+KAYZ49k6QYTXZyZG4O7BvNckAgACWOICAAFWToIAACRuA Date: Wed, 8 Nov 2023 09:07:31 +0000 Message-ID: References: <20231102071302.1818071-1-zhenzhong.duan@intel.com> <923acaad-4e52-442f-b688-277e87a48469@linux.ibm.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR11MB6744:EE_|DM6PR11MB4753:EE_ x-ms-office365-filtering-correlation-id: 39ff6efc-25f5-4e29-b3c3-08dbe03a239f x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dWDEtLOCV9su2AmapECPL9r2aBqWSCiQdSuvIhhuZU3LlIByPa4FTHb24MJGdWqbwOfrsbeV1MuCOy4fjHE9EuNAKRsTDI71pnbdLRTUzahOtb868PaQMLqSeno1hXj4y1yNZn8HM8CTpPDhtLEj31wezdLWy9LNb2VpDcqR+57llc+GVbxl49EarZzdtbkiDQBa277llOKJ8i8Dl3wZjUWDLOV6p8sgTNnd84REnytuwdszbP/w6GdBDGOgms2nB7/ln3QaIgVt0Zm9k1SEcOze8i1e9KCbryRt2WOoIvOET64GV2Rja097oQpfOsdLlZtA1U31OhX4X/xO/Km1SOp3p4673d5ujOL8Jnadl9f9jStt8zOGkuOEhFQHtoV9dZVcb/jg8+btylorTiOPKhMCEmsqtSN7aYflnaNwyBgzweUwfKMBpN9hONwjKgraaKY15PEv65cYl5pK5gO4zjR7e6VYK66n5Db2gBNOwNdounDml4GGBXs9yOuik1LWvvxCZ2SaSpbPfw5nciMpVWgjor6lNaFeDd0ECcIjMzGp5HprXSI3ErHDOwBNC5QIUH9TVra0qCn6poEoF1cnKA+sc6M5vtozrH0txZJVpmHPsJOwsu58nGTtKgR4Cyz3ZYXdaVBrQwBl8x8CUawu4Q== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR11MB6744.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(376002)(136003)(366004)(396003)(230922051799003)(1800799009)(186009)(451199024)(64100799003)(26005)(82960400001)(38100700002)(122000001)(55016003)(83380400001)(5660300002)(38070700009)(478600001)(966005)(7696005)(6506007)(71200400001)(2940100002)(9686003)(53546011)(66476007)(66556008)(76116006)(316002)(52536014)(110136005)(64756008)(66946007)(66446008)(8676002)(4326008)(8936002)(54906003)(86362001)(7416002)(2906002)(41300700001)(33656002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?ZjQ5RXozeFZ2UlRrSW9iL2lLZlJXMWRSWGdMVTIwdjJuUDlWRlhBeVRYOGt2?= =?utf-8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kRibjRoazZyM3RPV01rR2J2VUl6?= =?utf-8?B?Z3U0ZjB5R3F2RUdkdUFhWVBkZHZBRlE1d0t3Z1NZbHE2WWFHcjY5ZjlFSSs4?= =?utf-8?B?VEx3cXVqZzJaMkM0bDI3T0Rlb0djOW5UTUNsc3R6TlFOUHZJRjlsSHVYaFlV?= =?utf-8?B?L2JHTG9xV1ZZMHNmeUJqR3MzcXcrRXUrRGUrdGlLbkFMcHJwNVpWRlpLQ1pP?= =?utf-8?B?c2l4L3l6N0R5Wlgxckh6c2ZKbDVuRkczOEpFTkVDVXRDNkQyQlJJcld1MHFV?= =?utf-8?B?ZUtFZjdrbGxxdmF0cDFWZ0ZNTDM5NVcwTFpjU1BKTW10UXNSVXFKQ1BjUVVG?= =?utf-8?B?dmc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR11MB6744.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39ff6efc-25f5-4e29-b3c3-08dbe03a239f X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2023 09:07:31.3145 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: g5gHs0LDPMSORgdZKj/KorNmMOKlYBcEvt+PXNWVUs+iN4FghjV8NGBGWbSj1WrWsPOwVogdzHmiA1AJGYyl9OKY0u5/792lDY8B5xCpgB4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4753 X-OriginatorOrg: intel.com Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=192.55.52.136; envelope-from=zhenzhong.duan@intel.com; helo=mgamail.intel.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1699434509626100003 >-----Original Message----- >From: Duan, Zhenzhong >Sent: Wednesday, November 8, 2023 4:38 PM >Subject: RE: [PATCH v4 00/41] vfio: Adopt iommufd > > > >>-----Original Message----- >>From: Matthew Rosato >>Sent: Wednesday, November 8, 2023 11:27 AM >>Subject: Re: [PATCH v4 00/41] vfio: Adopt iommufd >> >>On 11/7/23 1:28 PM, C=C3=A9dric Le Goater wrote: >>> On 11/2/23 08:12, Zhenzhong Duan wrote: >>>> Hi, >>>> >>>> Thanks all for giving guides and comments on previous series, here is >>>> the v4 of pure iommufd support part. >>>> >>>> Based on C=C3=A9dric's suggestion, this series includes an effort to r= emove >>>> spapr code from container.c, now all spapr functions are moved to spap= r.c >>>> or spapr_pci_vfio.c, but there are still a few trival check on >>>> VFIO_SPAPR_TCE_*_IOMMU which I am not sure if deserved to introduce >>many >>>> callbacks and duplicate code just to remove them. Some functions are m= oved >>>> to spapr.c instead of spapr_pci_vfio.c to avoid compile issue because >>>> spapr_pci_vfio.c is arch specific, or else we need to introduce stub >>>> functions to those spapr functions moved. >>>> >>>> >>>> PATCH 1-5: Move spapr functions to spapr*.c >>>> PATCH 6-20: Abstract out base container >>>> PATCH 21-24: Introduce sparpr container and its specific interface >>> >>> PATCH 6-24 applied to vfio-next : >>> >>> =C2=A0 https://github.com/legoater/qemu/commits/vfio-next >>> >>> (with a global s/fucntional/functional/) >>> >>> >>> I also pushed the remaining patches on : >>> >>> =C2=A0 https://github.com/legoater/qemu/commits/vfio-8.2 >>> >>> with a slight rework of the IOMMUFD configuration, now done per platfor= m. >>> The VFIO frontend and the 'iommufd' object are only available on x86_64, >>> arm, s390x. > >Thanks C=C3=A9dric. > >> >>FYI, I first tried this vfio-8.2 branch on s390x but wasn't actually able= to use the >>iommufd backend (was getting errors like Property 'vfio-pci.iommufd' not = found) >>so I think something isn't actually enabling IOMMUFD as expected with your >>change... > >It looks CONFIG_IOMMUFD is recognized by Kconfig sub-system but not receiv= ed >by compiler. I'm still digging how to pass CONFIG_IOMMUFD to compiler. Need below change to pass CONFIG_IOMMUFD to compiler. diff --git a/hw/vfio/ap.c b/hw/vfio/ap.c index 0a810f8b88..2a3263b51f 100644 --- a/hw/vfio/ap.c +++ b/hw/vfio/ap.c @@ -30,6 +30,7 @@ #include "exec/address-spaces.h" #include "qom/object.h" #include "monitor/monitor.h" +#include CONFIG_DEVICES #define TYPE_VFIO_AP_DEVICE "vfio-ap" diff --git a/hw/vfio/ccw.c b/hw/vfio/ccw.c index a674bd8d6d..08101ad445 100644 --- a/hw/vfio/ccw.c +++ b/hw/vfio/ccw.c @@ -31,6 +31,7 @@ #include "qemu/main-loop.h" #include "qemu/module.h" #include "monitor/monitor.h" +#include CONFIG_DEVICES struct VFIOCCWDevice { S390CCWDevice cdev; diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c index d8f658ea47..3121b5f985 100644 --- a/hw/vfio/pci.c +++ b/hw/vfio/pci.c @@ -44,6 +44,7 @@ #include "migration/qemu-file.h" #include "sysemu/iommufd.h" #include "monitor/monitor.h" +#include CONFIG_DEVICES #define TYPE_VFIO_PCI_NOHOTPLUG "vfio-pci-nohotplug" Thanks Zhenzhong