Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4566978rwb; Tue, 20 Sep 2022 16:22:47 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dGn+b5cSWbYIW+Q316GPATMdH0/Vhqonctqg2gwcNnvkSNpvh7kI50LFO9kyG+rl+wcsb X-Received: by 2002:a17:90b:1a87:b0:202:6b60:be62 with SMTP id ng7-20020a17090b1a8700b002026b60be62mr6288401pjb.69.1663716165217; Tue, 20 Sep 2022 16:22:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1663716165; cv=pass; d=google.com; s=arc-20160816; b=nclGf5HEOX31Dxg62I+aH12CL1T7EJ30UpcIx5/Due7KiyDN+UAPKLsu7JngmAacv6 vOnmoyT9cmLh/Xa0jK0eyrjdw2IV1Gso3WpcWDUeKU6+bnhWabjV+IbU+FCbIDFSBh74 8GF9jhJstcGSK3d6xPN90vrB/tbd5w2fli4WkyyU2H++Ubgn0tECMUKwL60bnxCgfZI5 kjNbsk2V7U3zbGT5fbIy7OaXhYCh4eP8iwXiDRIbDwTQzgppp9XJoL9m6AxzEh/ohquA GVALh66hJc6roXUe5DBKetEC+fzrRi7LJ3eB8USSiNMIvaesBbDy94nvr0673T/fX/CF TDHQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=Pbr1JG6LkqrNgQAA8bNeCBoJQAqbKZIZF2ci6+gNGtM=; b=KfSTvgh1D5pCl7BPfxRu9xP3sl8cbUJlcHyDXdGruJe/8Ut9PhaHSLOJp1738cUyEy dKRYBWWCN08irV+WmPxGgiab+EK4HiFyQ57xoQP4XEVmP/jJa1JhgEAZI0OP/UAF9hep /TsMAGiHUiODHmg70drZlZP6qmbN43G1jGPLnu+76advxk8rW0UIILbkzfsvBqYlc5aX 7upjnVlbXOktVFFFV6pHZXkb35/PUGkkrY9MirDBiqP5eEH7ynp8quXwyt+c4tMFwYpW xw9DZKKnn4LL3/52CsQHE5lewkSbH1yD9zcfKaxtb6yLsD6J8KSXdQO0WhCMV9y/J5a6 l5/w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=SrIg9Q8Y; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 192-20020a6301c9000000b00437ec28ef53si1151718pgb.756.2022.09.20.16.22.33; Tue, 20 Sep 2022 16:22:45 -0700 (PDT) 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=@intel.com header.s=Intel header.b=SrIg9Q8Y; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229928AbiITWzr (ORCPT + 99 others); Tue, 20 Sep 2022 18:55:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiITWzp (ORCPT ); Tue, 20 Sep 2022 18:55:45 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E20432A8E; Tue, 20 Sep 2022 15:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663714544; x=1695250544; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=RDaZwQvhrLcZty30HCaUZOChsBbF/aIAtWxb+gQt+Cg=; b=SrIg9Q8YtLD/6K1GTSAOe04kT7kCU8K//TwV5v9Oow5sHXipt8bfy9rn 39Z47rYZIvyp3eAVQgZcmB+3VsdtFvs83OFFAFW6Qz7eRPQzuKVDChtbe S5sII+NsmO6HPgQLUfou8J7Z4bkFO5Nuxq/H03OqeJM/GSb/P7EYDHCM6 ReNsrOQARqk1eYt86jiuVjnrDL/C6d1X4VcgoWcdKRXmxtF1l8vXbsG3C 7SJFlHB4fLhxSdR2U3cxxr1XAZSIiqiAyegdRZluAY86VhFM55pTgP3b/ gfpehX+rfgpBkfxlW16r0hi3Yf2P8YpLrBq/obiMmMiIWDngjlTMXGhpw g==; X-IronPort-AV: E=McAfee;i="6500,9779,10476"; a="300675613" X-IronPort-AV: E=Sophos;i="5.93,331,1654585200"; d="scan'208";a="300675613" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2022 15:55:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,331,1654585200"; d="scan'208";a="619099700" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga002.jf.intel.com with ESMTP; 20 Sep 2022 15:55:43 -0700 Received: from fmsmsx609.amr.corp.intel.com (10.18.126.89) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 15:55:43 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx609.amr.corp.intel.com (10.18.126.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 15:55:42 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 20 Sep 2022 15:55:42 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.44) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 20 Sep 2022 15:55:42 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dApnoGvtQ7rMNKzKvJCxPMYsPEZjkHy1bLfg7Af6W3wffz/rnKgmytynGZMe/L3UJ38Sga4wVVxvghXDmRAC2OBeqUvjI3zFqDgRZe+DSt/8ogYrEw1Y49YtsVCkuHad8exEEmURRlXbwMqAeygw0EZKvnLfBOKRMKY9Z6cC/yLRh/jvM2AXmnHdvDS45lCukIpzDQvt9Tzm0YfATFtSUkMYjRNvaPz79VIp2zGi/NhQEv3hAiD+oPHNg97mKxmCcAQ8+dmyfZqBu3iGOdiDViiGgTk6zolrhCPjLQzp8Mx4hhhqbFkyfWWaddMyRe+mUojssvliJxv1MlLbw9vK3A== 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=Pbr1JG6LkqrNgQAA8bNeCBoJQAqbKZIZF2ci6+gNGtM=; b=g9CZBpGGQt19i+5Lx5bpHvru3RiZ2nL/+SGWToIVnBoDKbQOcWx4CP2krGQJIydWD4ghL45iVR1jq8q9SDGtCUYnKZx4csQF3zG9KL9I8R3vYhwRh783mkUaiTP44snOLwGUWMGWF2IjtsLBV7OroykQqUztqBPEvTKXuTifvbfx5gT3GJMbBDiNqfhBWaLGwK2zk6w5XWJwPAswTwnfFbwtLhtK8P9nvwUfoMnYQA7OPoDKQQht6Tl8+tGyAyiZ5qysuv26xcyc5gaH3TBfxmzkykG0NoOCLTe/XXvuSAHf4kHfG2/e5u/d8dFwo3sCPygXOzFsjFuxgjQ+0yhF0A== 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 Received: from BN9PR11MB5276.namprd11.prod.outlook.com (2603:10b6:408:135::18) by CY8PR11MB7083.namprd11.prod.outlook.com (2603:10b6:930:51::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.17; Tue, 20 Sep 2022 22:55:40 +0000 Received: from BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7]) by BN9PR11MB5276.namprd11.prod.outlook.com ([fe80::a435:3eff:aa83:73d7%6]) with mapi id 15.20.5632.019; Tue, 20 Sep 2022 22:55:40 +0000 From: "Tian, Kevin" To: Alex Williamson CC: Zhenyu Wang , "Wang, Zhi A" , Jani Nikula , "Joonas Lahtinen" , "Vivi, Rodrigo" , Tvrtko Ursulin , David Airlie , Daniel Vetter , Eric Farman , Matthew Rosato , Halil Pasic , Vineeth Vijayan , "Peter Oberparleiter" , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Tony Krowiak , Jason Herne , Harald Freudenberger , Diana Craciun , "Cornelia Huck" , Longfang Liu , "Shameer Kolothum" , Jason Gunthorpe , Yishai Hadas , Eric Auger , Kirti Wankhede , "Leon Romanovsky" , Abhishek Sahu , "Christoph Hellwig" , "intel-gvt-dev@lists.freedesktop.org" , "intel-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-s390@vger.kernel.org" , "kvm@vger.kernel.org" , "Liu, Yi L" Subject: RE: [PATCH v3 15/15] vfio: Add struct device to vfio_device Thread-Topic: [PATCH v3 15/15] vfio: Add struct device to vfio_device Thread-Index: AQHYw/kWx/ZcHkFOHU+t8x4U9WUM+a3o1qGAgAAo6+A= Date: Tue, 20 Sep 2022 22:55:40 +0000 Message-ID: References: <20220909102247.67324-1-kevin.tian@intel.com> <20220909102247.67324-16-kevin.tian@intel.com> <20220920142639.29b1bdc2.alex.williamson@redhat.com> In-Reply-To: <20220920142639.29b1bdc2.alex.williamson@redhat.com> 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: BN9PR11MB5276:EE_|CY8PR11MB7083:EE_ x-ms-office365-filtering-correlation-id: 68d86d6b-9cab-423c-23d9-08da9b5b3db3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: dTLEsayllH0Knhk0863MBmdlM+GLwHJkwb+U4VNNwM2IPlens1oBTYmFiNoQbzG6hIlDDyGVHWzYMz0P7O75GMGplqAK8kHKw+e3vLCiFpK7/iM4rPngbrQHmtV3X6c6hD9nmNECsb4PsO85bQNcSoaNDrNCVW4wVSqGhpUVN/HHqtCOIiRnWO3Ytg7tF9hmBk9rv2o4R73REC7p6t5oAWvKC/Ub3IM0yxk9pI3Bozaorsy24mFbJZlo53uKN+rt2RZ1RCRr8zFsljdkh5iwm2oh0kdkEjzBShBiZ8vXYBXMaBfTg2L8ylcoGQPZxuAkfA/MXeORWZxPkiadTPTn7pWeW6XesLMMUmM8KODAF8VS7eHbel5yx8B0u2ErjbykewU+tG/u/RJYmeX/HGSqE1dNq8GxCSO2SQ8t43qeFH8zGEaze35ezcojoDO/KjqzIrzg201lp1l8MPluvflFKLS6iy0EN/HIuJz+wxC097lVqUugEfcnIXdOS7AmUWoPErPCtbs5425WaNMkWIHd6WCEP5JOzCmCMQp9/FGp2pQkT49ZuJkVePCie69D+dmRpWjnAIoncpVyYUqGM3sBfDagYVA1bkVAc83n/VoTFL6a9YaS4TXqdNl0y2bO1XUvS3eiyO2XUPxQzGKL5OuZ3uW8BqEbTURB1sJzMbxUVon3kZoubhX5kNyRogws1RxlcUkKtuewGIzAuUfJDBN9oZ0p6za1tsKQTWpWYBQHjuqs6JdOrxsPBV73ZgShGbFYvWvEWtBiknPJd9cdpwPxUg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN9PR11MB5276.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(376002)(396003)(39860400002)(366004)(346002)(136003)(451199015)(316002)(6916009)(54906003)(478600001)(26005)(83380400001)(186003)(6506007)(9686003)(7696005)(71200400001)(38070700005)(41300700001)(33656002)(5660300002)(52536014)(55016003)(7406005)(66556008)(66476007)(66446008)(86362001)(76116006)(82960400001)(4326008)(66946007)(8676002)(7416002)(2906002)(122000001)(64756008)(38100700002)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?m7eiVBslI2P6UyONwoMbV23Hq1tbKy/ExSP2zWdwwJAl7TlPc52iN3jm+cja?= =?us-ascii?Q?/dEz2G5QpIxbtBgmX8lJ+M5W5cCUb/tQP56dis28bAvqRE7FvkNHujtuFCPw?= =?us-ascii?Q?P3egLm7tFycFX5Q3MDzT90fuMtesqInLRgcqCSTcwM9ndEVqX3Ylq5Kmx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zwkJoYnkwtRwiwPhHl+n9J3l/b62QvYknRcUO?= =?us-ascii?Q?SsfH6AYYx0MRKB9PvzPbe6nKBjunhvwuAuF5jY+4IKW1X3Fo9sHHc6N6FhMR?= =?us-ascii?Q?BHdvy19Jh/C/M/Jae95xnJ7ZxX4dlucVY3rRxQgYJrzDNuTl4ncm7o87GJoF?= =?us-ascii?Q?k1rGXBdW31/sqylrdvlGEqgNjd3ZGqZDcAMvER9/WDwf/z/hH2IKWyg5nD/Z?= =?us-ascii?Q?Ma3+TpnV+/QSVE1gXYaqt4piWuJPN+FM6s+FSg19NDruEnncU2iTM7/XsvpR?= =?us-ascii?Q?kMAF9hWUkc4VH+SOZ3xwdiDD7NYccIbU1XXn61u39idSmImvDpcUuR5kxCw/?= =?us-ascii?Q?3tg2zGcKceTuKkoZl2d8SxQKgOuqRpnxrBFKYw6qUQDpGZ4g93TB06A4nZrn?= =?us-ascii?Q?hYNE7kiwch4f4sPW9YyfzxA0/qTkK1gWB6vLl9PoK/yVTC2+ZQGb2eAsbECB?= =?us-ascii?Q?xqKs8Wg/Jo6E/yK7+WNQYe94WmEz9ezfXm4zJLbSl0tFf4TQWHYSqRhX6UCN?= =?us-ascii?Q?8ca9nMnOMKT9xr+8UzPFFjWZZQ6satmyeC3znqE9?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN9PR11MB5276.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 68d86d6b-9cab-423c-23d9-08da9b5b3db3 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2022 22:55:40.5669 (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: vHh5WzOxS/siTbfUn+VyMljdg3L3rEclpV/ybGS3cy4FeeV+E1e2sUO9pdR03rTicyrOvr/YQhD6uBDeXhQdRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7083 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 > From: Alex Williamson > Sent: Wednesday, September 21, 2022 4:27 AM >=20 > On Fri, 9 Sep 2022 18:22:47 +0800 > Kevin Tian wrote: >=20 > > From: Yi Liu > > > > and replace kref. With it a 'vfio-dev/vfioX' node is created under the > > sysfs path of the parent, indicating the device is bound to a vfio > > driver, e.g.: > > > > /sys/devices/pci0000\:6f/0000\:6f\:01.0/vfio-dev/vfio0 > > > > It is also a preparatory step toward adding cdev for supporting future > > device-oriented uAPI. > > > > Add Documentation/ABI/testing/sysfs-devices-vfio-dev. > > > > Also take this chance to rename chardev 'vfio' to 'vfio-group' in > > /proc/devices. >=20 > What's the risk/reward here, is this just more aesthetically pleasing > symmetry vs 'vfio-dev'? The char major number to name association in > /proc/devices seems pretty obscure, but what due diligence have we done > to make sure this doesn't break anyone? Thanks, >=20 I'm not sure whether the content of /proc/devices is considered as ABI. @Jason? But to be safe I can remove this change in next version. If it's the right thing to do such change after discussion then it can be done in a separate patch after.