From patchwork Thu Sep 12 14:19:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jon Kohler X-Patchwork-Id: 13802189 Received: from mx0b-002c1b01.pphosted.com (mx0b-002c1b01.pphosted.com [148.163.155.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2D5EC1B29C2; Thu, 12 Sep 2024 14:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=148.163.155.12 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726149814; cv=fail; b=Dvx4L63i3DGP43er39C+nK6FA50P9I8p52GX/XIdPBu+CiPOxTPrp2AX2j81cI2Fzinx7JSlRZ7w72BsHL/aE6yTMSaHNde1Hj6K10UMwedjmeEmcgTgxyG3wXwPpNiB0qY4IU3ZogjAvPv6pAPxsNOpVmqjj+JH6s+a0K4sKhU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726149814; c=relaxed/simple; bh=d7Y/Lzb5oQBKoiXbEnDz7nYNgYs1lPX5apJgp69PMOE=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=Qh6OVtYxNlQQ5dts5TfHH08uAYtUA/+9HfdBN39YIs57VbF1GR8AgzEY/8/GhXc+sPgVaxooiorN+H78LbZ1x4S4yhGQqVPfSTO+MJ27noj49wFZ035rK5AltVX4XPtRw0bM4lxEVkdF0vlYWKw9wgYcSqkno0fWr82XSE30Go4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nutanix.com; spf=pass smtp.mailfrom=nutanix.com; dkim=pass (2048-bit key) header.d=nutanix.com header.i=@nutanix.com header.b=NSojrDuz; dkim=pass (2048-bit key) header.d=nutanix.com header.i=@nutanix.com header.b=NEbkbqiR; arc=fail smtp.client-ip=148.163.155.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=nutanix.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nutanix.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nutanix.com header.i=@nutanix.com header.b="NSojrDuz"; dkim=pass (2048-bit key) header.d=nutanix.com header.i=@nutanix.com header.b="NEbkbqiR" Received: from pps.filterd (m0127843.ppops.net [127.0.0.1]) by mx0b-002c1b01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 48C9Z2Sv021581; Thu, 12 Sep 2024 07:03:24 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=proofpoint20171006; bh=swQkonSsoqKDQ tA/mEcezUOYIJF9aoZJFmBuNo/bvtU=; b=NSojrDuzq8vugOA7rpPj7Spz55zUR T8zjy9OsN8UOdmOYcloKY5GU0DiyMrc8IyWztC6nh5LJRx5bhc/Flb3oeVR/J3UW rGPzj6x1E/s6bUUwsn6oOkQK4MHZNA7+sHV6O6m3R1KJUwF2+AgZnrmwKy9qSqYd 6DpDJyXSIwNiYQZwdqcn6EcI92BnlgAuEi083AERam9CxV4uYUluaOKeG3z/H0Y+ EmVQpP7TSIh+IcJ2xzsIGvnrBh5viWCAGeKGiKEQIepyq1WNsQZ5pBGSAGCZNadb m1MG3JSbRAlhogQryj/1dNaIwtA5nqkAnVh9VXREBI2GAbDtscpgHk86g== Received: from dm5pr21cu001.outbound.protection.outlook.com (mail-centralusazlp17011027.outbound.protection.outlook.com [40.93.13.27]) by mx0b-002c1b01.pphosted.com (PPS) with ESMTPS id 41gmxhvfs7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Sep 2024 07:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cz62c3UtopWh09l0eByECJPwKFxwQIuCq+odI4wyL0pL+ZcU+5BJB4S3KQv3eSwAuvMUt80IxtCAWMIhy7RHVhIqsCSeNCo6G42tbbtaEc7xUCvck0EfVFRcvsBTRO/uvgg+4EcLEQi3F4IvuzMBAFFfsMYXXKZ8YytxLpIqhKdD8rwYyCVlibh1JeZpTQQGSTCE9tyhLmDm22gkyMrCUzjpErYANv66wrkc6u/Hsk1d8LW0CvTsFQwUEKwC0aiovxthzxrjA5d8YCgm2ES1r538HxpHDJ14Gzibv7+rq7GtInN+0Rah4XSyBgy7Hgp9nsSheI5Quopw4vhLdyN3Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=swQkonSsoqKDQtA/mEcezUOYIJF9aoZJFmBuNo/bvtU=; b=J1GBs5a1WY/H0KIJOiabdsjxqWMTErUD2fpBd7qFu118c/TCN5xEwPStRTaMMvwn5/rJaV6FmH0nLktxd7g5VSj1/0Atfy/4bhZzLStXyDFHzpugcsz7NDxLHPa4Ld9+WGoR0/LrQUvkXJSB+hMuMDVPzOFuEona6AqilCPWnCFUnmNAMTpqt/wiwC4/36JqrK9EsxKEnzEyPtD1FEnM8HUgjE2SNoeJEhAmHQ6/LYvIzvA8m08uQwSIRxpZPNaaNN2LKxYNYbB0K6zbeG51dYjn6mHKpdwAXVhr/COPf4bB7W5jGZFAckClAxnuk8KA1sapyBiFBHCB2bGp3Re57A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nutanix.com; dmarc=pass action=none header.from=nutanix.com; dkim=pass header.d=nutanix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=swQkonSsoqKDQtA/mEcezUOYIJF9aoZJFmBuNo/bvtU=; b=NEbkbqiRJ9t5krf5SRNpyVZkQ/zOc+lYrW8/kWSGDfJxACBlBoeiD6g2XyS3tf4zQn4Wi9pPhgvID6FJSqw6ROgrwiHEmj0dIDKs6shrQgWtxNQBq6OgtotQPN6BuZYC49L92HGPUMp/EyyFLYGWEskRufIwOtqYnKtTWyONeFO40zy2cb8uyK1YVLa18qyydvk///Wz1dL22lTOO+/m7z4dlNSqhy8BQBZghGPoR7PTq18wWJcfRcGn1vgOlASFhvo9ov9tUGNa/0VbarQSLaTSJmla3DdzfK0swp/v8AI2tj1cCrVZBWXv6YwZKNA5mZgMuPPusPGQUCX/svwxMQ== Received: from LV8PR02MB10287.namprd02.prod.outlook.com (2603:10b6:408:1fa::10) by MWHPR02MB10571.namprd02.prod.outlook.com (2603:10b6:303:287::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7962.17; Thu, 12 Sep 2024 14:03:21 +0000 Received: from LV8PR02MB10287.namprd02.prod.outlook.com ([fe80::b769:6234:fd94:5054]) by LV8PR02MB10287.namprd02.prod.outlook.com ([fe80::b769:6234:fd94:5054%5]) with mapi id 15.20.7918.020; Thu, 12 Sep 2024 14:03:21 +0000 From: Jon Kohler To: Kirti Wankhede , Alex Williamson , Jason Gunthorpe , Tony Krowiak , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jon Kohler , Christoph Hellwig , Jason Gunthorpe , Rohit Shenoy , Tarun Gupta Subject: [PATCH] vfio-mdev: reinstate VFIO_MDEV Kconfig Date: Thu, 12 Sep 2024 07:19:55 -0700 Message-ID: <20240912141956.237734-1-jon@nutanix.com> X-Mailer: git-send-email 2.43.0 X-ClientProxiedBy: SJ0PR13CA0203.namprd13.prod.outlook.com (2603:10b6:a03:2c3::28) To LV8PR02MB10287.namprd02.prod.outlook.com (2603:10b6:408:1fa::10) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV8PR02MB10287:EE_|MWHPR02MB10571:EE_ X-MS-Office365-Filtering-Correlation-Id: 140aadf0-f3f7-4fdc-d05a-08dcd333a908 x-proofpoint-crosstenant: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|52116014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: MpB2YdyOCY54WSAt/OnwBjrOS8P0uS9TJzzZJDXvMcm3496rgL+QtEWywot4oADoJnGRzwTAEKuTCChbP/Ky23Jalc5bLT7kXEw2TLeeqZCDiuadvErSC8OTi/P4dsWIhcZkIN/FXlpShB4CnZNkzieIMhuFSiqs3DuEJAw7ZXL13y6ubxYEM80NuzzLA2blPrUWIaBRdqlmJ20jBBChT0RWz0xeiGQy/pwmH+maQm6Z7epu+MSMvxf+sPUTaMBGa5aT/OY+LiU1+YaUFP+vZBp69sPC939ypMrOPbDLWyqO6HU97D5z9c0x2aL346eU5rh79GFkGUukM/DOwozADj/i3tTHPzxvN0OlS2Sr5aC75ofnik5IrnQ4tFKSR49DSh4fMhiHkeMshEPjCN+8bOktgL8BhmBICzfLDmyOPb/AELBWe45l+zjio/iGhHvTPBSuRG/KEyY88e78RapgjOXuiImYXXgcBomavlUaCa0mWDV2+SkO7K1ckgz/yBKDxeAd+rOhiZrGgtm/DI3E4yZH4lw4nAxTaL+Q6ooe5piIikT3KJBQuqjzjbOfuzKcxrDyi/Ej3wDfCwRr2YwQqJN1x9GFbohUVoIhzILcpFm451vqKpOfJh2jjt7mwtx+MvIR0XE+TecfrSss15lKvNblrvO4JVeUZassC0eWqGanJL96bXVAkNmBNI0cvLPlMp2b4V+OoU984DJ8DqTPbD3U6pZKszrJXR7czz9XsQzB/OxL8tDws5AUHWBoHZOqRoyCW150sJtVTPClgeNZwl40LCheuDgxLAhlGtBI1uRlZ5OFV/WqzzGmtlHhJa0gB83xFlpb382Bpl+aKhWOhYSWXD/kdWAXnUNar+1p5oN+k9R2RXRqdiNBCdexNXjrp31vV1PFVT8CpA3QPxJWzxZ2iZU29dg22mqAblnMjX796yws3jv8ZAlUc8neC5Us700uZ5Ymqk7xWb2noVeZdek2fbh0OfgL64Y90AQLLMJQk+E63pWVnHxTqlJROlVi3VT5QSMZfJqnSu+pj5s5NVTlh5x/57vVhqfXlDQrL2kyJs+FrU6kGqiym46S1MHQqU7xlfFN6gUavkCI11J/JqIWyIQOst4h9AB2KwFD34OOSHekisHFYGO0yXIo13VyPNPTCUvYVObYtJ9pPOMpvE/1SExCZeuXnU2sP+36YmTVvLM9nOPYsDexKO+bYFMOpz8aGObDhJgGX8hNEhQ63TujyR8/SEXWWaedwJ6yVd67wEh/qquhPzzwKjG2tEKIVBN+Q2VUFcwLaBPIAbNK81qZYVUM6rohPsqhdCzi4vcSSgW/wo1AfacTvK7ldO8Wt+1Nj6+RC79wgPzH/q+HxJbmhXKBpAuBdcOH0GWfAJjgofg2iT8TtdRXp6Zsls6TuRDbrj2Rbx4sXeZycqp4fg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV8PR02MB10287.namprd02.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MLvgT4n4/PAo3Dw4fq6uUBVRhPNtXVze6cQhUjxmorlAH5yyS6vCFtiGHTi2EdpYILA0ZuMW8YTS+MLk/ay5LSKfiY1R6B5R+TZWgPgY+ePTTrjEanrgABW5HCmsgFMgMkXt3Rv3G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xjQgWxM2Ne9EIHkycWP1cCOjxEP2PebdasBgJ9AOgKWgSTlc5Gstbt8dXnnIeWIctaVt0dQ10zCssTHK6jRaHS93e4rcfGlp+n/D/NCsiSvJ01kK93iQJUQ3GLNs0tqicP/JSpEtJ3I1daYkb0SKbaP11MpyXUhC0iA2O5108JHrQDkaF53bl5BY3xvwxmK1qSJGlxZC0zIHGZ8wzedAdkjhU/ZWQv+n4XTTC52Pca+0r2oghni0LC5LiNGOxz1crp1EPwZga09SmZ2TqDurn0zNwTkYm/Yw/rB/8zq5JabeEAIUu1+IbnzIxsl8FRx/ZpaPGwqW5R0XTrJ9JuxOb2Wi4fPROSplyieCD88ILVDteFnu8HAWLPu3n0CMxfkrMdiLwaIbwVNVpXKiNTQSS88Uki+MsmSTSdLrQ== X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 140aadf0-f3f7-4fdc-d05a-08dcd333a908 X-MS-Exchange-CrossTenant-AuthSource: LV8PR02MB10287.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Sep 2024 14:03:21.6422 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: jnpYzcXbnNdKISfCEEGwEGHs5QOoX4QtgQETidVMRcbxMKOm7YdTEMyHxJ11D5NmiSzBDpA7V5cWzKM5e2zNHYJ2UAHeQ2QgG+pWnV1yd70= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR02MB10571 X-Authority-Analysis: v=2.4 cv=SfSldeRu c=1 sm=1 tr=0 ts=66e2f4ac cx=c_pps a=U0KzkmEawxegXmCr7eTojA==:117 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=EaEq8P2WXUwA:10 a=0034W8JfsZAA:10 a=0kUYKlekyDsA:10 a=64Cc0HZtAAAA:8 a=20KFwNOVAAAA:8 a=Ikd4Dj_1AAAA:8 a=VnNF1IyMAAAA:8 a=p4TyGKwq3amCRySJVqkA:9 a=14NRyaPF5x3gF6G45PvQ:22 X-Proofpoint-ORIG-GUID: H-nTBx--hPOqTDHRAnj-jDgWlJopxbnp X-Proofpoint-GUID: H-nTBx--hPOqTDHRAnj-jDgWlJopxbnp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-12_03,2024-09-12_01,2024-09-02_01 X-Proofpoint-Spam-Reason: safe Reinstate Kconfig setup for CONFIG_VFIO_MDEV to help support out of tree drivers that use VFIO_MDEV library (e.g. Nvidia GPU drivers). Fixes: 8bf8c5ee1f38 ("vfio-mdev: turn VFIO_MDEV into a selectable symbol") Signed-off-by: Jon Kohler Cc: Alex Williamson Cc: Christoph Hellwig Cc: Jason Gunthorpe Cc: Rohit Shenoy Cc: Tarun Gupta Cc: Tony Krowiak --- drivers/vfio/mdev/Kconfig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/vfio/mdev/Kconfig b/drivers/vfio/mdev/Kconfig index e5fb84e07965..b5e1eb634e62 100644 --- a/drivers/vfio/mdev/Kconfig +++ b/drivers/vfio/mdev/Kconfig @@ -1,4 +1,10 @@ # SPDX-License-Identifier: GPL-2.0-only config VFIO_MDEV - tristate + tristate "Mediated device driver framework" + default n + help + Provides a framework to virtualize devices. + See Documentation/driver-api/vfio-mediated-device.rst for more details. + + If you don't know what do here, say N. \ No newline at end of file