PBVZKemq9xKl3TV+Tib8V3OvciXHyGg5ed8nI6P2PS9gcqgCfk2Aw0c3u1mjOFZz9kzt3XO9xVT7wdBQYhl3HUrB+rD2HfGgha4fgjFQGCmvBYaEh9d+ijKy2c7DqGrQ99oh5faWNmuzsQFMRNpYnXvtWVGgfamOwQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=t7tPJhts; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=r5WKuzwy8ZHVKIvsBlZsF40i7FqxO5Q6YEY4IOZnjqosqbGotqVj6mnMM0Sxe7uI+MJaagMOV2iwbGhQ0Zdi5m/LLZ5DKNZKzkLNzofRkrOS8pIwe2tAZSkPebtHhMhkP+l7jGvHnFQT2zATkOZFRnk8OFiiBVTTvSmAnURRvsfEM4S/xfP6Le1DjifLgk5nO5sX3HETMpOr/8QvZS67Ze9LoADcq0xS0yI/+OiJWe2nJtqe8fkODnV49b2zkN7cMAqq1dWO6gm/QXwXy0cFVu8nH2DqvYAwZi3ZJa9Qgp1kxDfFik+ZcPjP2SsZKr3ENuj5vNPV+3pzfOBOxxr3Bg== 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=ESgTiGHtSz4DEV8hx+nMwOCdwZArcctajJ1HAmAmxVY=; b=J59mRC8gZYyi3QHLOWiLT3JM4Y4N1dGJXJLtEB+rKY/V6N1iordA2mWhvTARXp2xClac0WBiFCcipNRUDpoXjDLLea0t5U1yA0M386NspZqoZELY09LsDYSCUUxnOE3J9Ui3/iZp05ITYh9sC85fdZgMs1ohQ4ZbM1y17mTZF4cgpekBU1KBGj//bBCYgFLb5b9UF+iEpqwzjWRnYSXXKqkMVb3xzG9M8JBD/z7aJnJUP9yMIDMnmepxXnkZrNZNgc+stLeoGvNmIh0kK97M9A5FVxozbSRpia7/r9m14RVqMOLX0IwUImSBbR1axKyaWHFFtJIKSvQestj/ycLP7g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ESgTiGHtSz4DEV8hx+nMwOCdwZArcctajJ1HAmAmxVY=; b=t7tPJhtsCVh5J6C3SZa29twVdexZk6Bg9denTcH+iGwxNueXMoqCpoDwPZfl8RFw9Eyhjp2A3SoPsIUs5CGuPpZ3NXpgB6sVZNcdMti36nGmh+6gXchgE9BHAfO19kCyhW6MZpotdUlh0jdu3y22Lii9G6myUfwy6HROyXZ8AQQ2/HxPchyb3DJqyLpy7sdwAi9914w18jeji07TipG4c/2j105FLbSqXplgxlJHyKiTF0Awtq+Ifqg5p4hQbbqnAHgPwko5RuJ7J/VQi6uu1Aei3HdB0Y4xvi+HniejZmdrXPlSE6Uw0b7D+5Z2xc5AyGqrz5fd1qgaTbnotd18sw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:45 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:45 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 13/22] vfio/gvt: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:27 -0300 Message-ID: <13-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0099.namprd03.prod.outlook.com (2603:10b6:a03:333::14) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 3178646e-3000-4eb8-feb8-08de12893fdb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?r2qbrCVTb1SfZVko2nGk9OEERVYBZzslQOIuq3suE1yuu2VLxDETdjFSUp8w?= =?us-ascii?Q?JlZqKG/1b9Tayqp5iFXH/ZJIaAQ3hTdkrWdpgn0BQsY0D41JiPeFnnch8gN3?= =?us-ascii?Q?F+fmme+7naNRe2rj19svK0zyg/xlnvUCseCwdeHCbNNF+ocCfExnP39yEcy+?= =?us-ascii?Q?40FPgSd0eu7tEB86Lrn0WuwArZ5YVuIYdplY7hQziijkQE4eEGhf9O1b+TFi?= =?us-ascii?Q?ek0fdJnq5ltVwGnshZvTuyM3+YAJQZM1eV/UCkkxtFHAFfJ7tj2m+kTwnXjC?= =?us-ascii?Q?qVxL3OfU91Sm0bm2tnet3TKNfsjZDoE7ooAu7/aH+uwhGeLJJ4YOzf+HDg/r?= =?us-ascii?Q?nm7EdZ3Bw01THZX6L3ajCyCuP2Dmy9MzmN8rvId85WQ4LFH96SI4xaO/rbRD?= =?us-ascii?Q?W04JcBOFf14php9DOJVColiSKBmIcGt5TeQSj1kjUZkmk8blCiDJC5EDH+vS?= =?us-ascii?Q?erkSYBhP1EwNUqG7NpqY1W7LdaX+srcK8FHEH5Xl76nzk7g7xHx09eUenU2r?= =?us-ascii?Q?SDvzc7+yzdHZInPQrfj5iEi9stNn/nazahhYn0Ul90Uu2C7igfwkk09VND0u?= =?us-ascii?Q?fw17ZyHMmrOx7YQVeHEvQ2J/SoCrYhbqMN3qPWCtj73g8xZhyZXdf6zckmcB?= =?us-ascii?Q?zbT7M4GeMpYrj7kpQLPuA050zBfAxKey6+avTFqKAT8j2WcszDlbIHM1j01/?= =?us-ascii?Q?8zb3cqNmaahqOfXJypKIVthJ/QIge/n37KiBL730QFbWkcysYEvqDKWLL4yb?= =?us-ascii?Q?aJ3vg8TKdpVB7vhJNP16y2o+W6TnzKwuf/Y1C91Qh0uw8jeXKN99ND0ViVh8?= =?us-ascii?Q?f6bT5dCUm7c0ZtU5SKaq90XBiG1xbm3kluMitrp+7xRqAaMlDYVZq9P1WmI1?= =?us-ascii?Q?7pPXzBLLU/nZfmLtXRB3sqJgYN6OP6NELf2X3jNIlw6gjPSntgMlrgVGBDxm?= =?us-ascii?Q?KvMB4AfFB3Z9p4drBN3Gu9dL1l4Ao6midEHYYojxPDpI8VxxaKPVSP8EC8/Q?= =?us-ascii?Q?MusWY5VvPHSMsX131CkkaM4BIfLayI0JP64FQR4gz6zEH/pM0vPux0plgxyy?= =?us-ascii?Q?GoMt0G/PqFrXuAVUHTDe9ywyMyYbFrXKn9scNyA/RM0PtlMmKAZ6Y+VJzhph?= =?us-ascii?Q?55GpggfagdpvaY5kAPMc99OqodNISg2fVIlCa3NkHoIXZfpbkXJgAEX5bmtX?= =?us-ascii?Q?/CFVuGU62Xz6kmUULYNtqjm/60GTJaKHmaxMyEtpzzshmoU0CR21+Zp+8GOC?= =?us-ascii?Q?/MwHgxTOdhnFwtkiiE3TDMAEUsjbbjPDa8rrVykzqYWA9epiRvc0P1f6B0V0?= =?us-ascii?Q?+7B/zum1XgbqmvNFdrhjOfea89lhJxf8qyAn7i9WPcLT2HtjaD0J5w2O+VBK?= =?us-ascii?Q?trVcmW23mwAudTrQ1qlTdOXLzYF7yfAnksJcbXpU2xNFtsSZtkiB9ozcufdU?= =?us-ascii?Q?hm/g52/QKBsSruru+AQHOCuEpB3vlRyx0HczRM5rHu/MpIqqZiToD43/h+/4?= =?us-ascii?Q?M7tw/ejhKiZ4LbE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?e72DiRjPadLe/c95/a//QpsWGt00yJSEsvUPnz466zyx6risM9zL7ehwzwuY?= =?us-ascii?Q?XLZyJbl3xLah4z/fJSDNoZul/nYz6Tgm3eA7gTrwwbOkdXX3KkqID5cW2kYW?= =?us-ascii?Q?i1ml+V+y9yBAbI9bH76fJA+uP24jce68TjLsYRfa+K/RodgqHBYLAb/fkJ5U?= =?us-ascii?Q?wQbH0lL0zjk0ACmbtGQwq6LXqxShxOt25HLOZzuSYxTTViu+pjYVd1T2fF9f?= =?us-ascii?Q?eU5R7xvvXifXL0oUOHEQLx6DQev698fDiKvkiM2etTSI8ZkOei/vcDnBA8PJ?= =?us-ascii?Q?fd/W9JadERG/P7RY9/AjrGEjLO4uapnuPqyFAHFJoZJ90ssAtUQa5mo3h/1c?= =?us-ascii?Q?3fGXvCPQM5Ckw9D71sTgXQyEQB6frM8Axt1sbAVE5vSiDb+6r7xW0dYNLNpm?= =?us-ascii?Q?w8dFp4nIXzk/9KVEd1ZP3ZPdfy4qQA0YEIxSU+c5sUOElupaPMQ5594/XvcZ?= =?us-ascii?Q?bUYlmhR1HHN7GrJpVlrpKP/qpoB0mjdk9aMg7kPXp2Fb5akgeE/s8/mySS+G?= =?us-ascii?Q?aZIrJ9SYwynyoawEZSWW20m/sx2J794b0TTxVKyt/CHbLE41teUwqL+uKOFW?= =?us-ascii?Q?T5o3CZ4TSdp7d+D0ys2Xm56aQ/O+XY0ZbrcJrs4XdUDyajnc4mrD5+FKbH85?= =?us-ascii?Q?e6r3HsQeY2mS5YaxwD5Zjni2H9vX0anqwaG441g3Syee0YTy3doTrBs6jpQT?= =?us-ascii?Q?qJFtzkpskgY+dXtq4sYRCdoHyGWYWMvKBn4Ev24fF5oV2TeKWOiIUlatpoA8?= =?us-ascii?Q?Weohh0Hpx5ueLwXX5nAbIvwWqjosCxWRmrBmt4iScvvfVtf36H9AZ+3hAlQs?= =?us-ascii?Q?a47zxckj997Wu8j8poxSkIOG7jWwMRMBoxaHMAW20mGy920pjb50jL1QLQww?= =?us-ascii?Q?YEohHyyN2fjw0qCCjT25KvR0pqj15d3ZNfZoqfNw/oGHQ0vvob3SkcXWfEHM?= =?us-ascii?Q?09xyEwIy1uAT6DdIaOXGuC6DY7SzJgirkCptULwLQyOl1s3NiU6alqJa8lit?= =?us-ascii?Q?K0edteR17gJTCsgbvj5/F52DWw8DzQ/J73RCRxlckMMop3qwdcTnEV15VI+g?= =?us-ascii?Q?LodndjVwuMvm4R+uS57y3zcxTHtz0geprR/1T8DxmztXeGb6wfoCDsyz6QrU?= =?us-ascii?Q?YgsjOtjNKFd7SCObK212KXmRbG0Tci+IPmrhqLMhzjSirFb7UdE15tS0MpFC?= =?us-ascii?Q?BduLxgVypo0oR/77ZQMvgBeT05FAoJ2zjAoWbCzJiTEcPNZNvN2vQBGMxOJ8?= =?us-ascii?Q?F6xy4gLlBJ+HQcDH9ebHM2/ZVu2wx9oNgvCQkV2N+RShjmiDnSY92AN89MN7?= =?us-ascii?Q?9rMcnmfyxJhCDSPCIvl6TVlH9UiQ+JCN08nQC+fuIAgFxjsdvIJ95cpdysHB?= =?us-ascii?Q?BbrRA8sGm+hdds6j3AsRDhKuqMXnVp5vcmEgTcsjFLi/xHKoqlNOVjTdcmqv?= =?us-ascii?Q?qjno88+IMAUdALmetEiqdOJjAg+PAJFMTHihNoDkRfGFI3o95+J7tc5aP8KK?= =?us-ascii?Q?lSQDL9jnMkgmCfKf2i/8yOUYEdkxgtVtndf30KMqPbcKT83n6d5l2/8WSqJn?= =?us-ascii?Q?mr/bJRbEGz7NYmJoEcAo/7HfnEjIR175kvdX4y9s?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3178646e-3000-4eb8-feb8-08de12893fdb X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:42.7975 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: skMV2r6azQcDVg/+ca8HsTI84GSkwwHO23PEZMuVuvIdmbe2KUWC9ri2oZqU3+Vv X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of intel_vgpu_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- drivers/gpu/drm/i915/gvt/kvmgt.c | 301 +++++++++++++++---------------- 1 file changed, 150 insertions(+), 151 deletions(-) diff --git a/drivers/gpu/drm/i915/gvt/kvmgt.c b/drivers/gpu/drm/i915/gvt/kvmgt.c index 69830a5c49d3fd..6b47e33078eb52 100644 --- a/drivers/gpu/drm/i915/gvt/kvmgt.c +++ b/drivers/gpu/drm/i915/gvt/kvmgt.c @@ -1140,6 +1140,155 @@ static int intel_vgpu_set_irqs(struct intel_vgpu *vgpu, u32 flags, return func(vgpu, index, start, count, flags, data); } +static int intel_vgpu_get_region_info(struct vfio_device *vfio_dev, + struct vfio_region_info __user *arg) +{ + struct vfio_info_cap caps = { .buf = NULL, .size = 0 }; + struct vfio_region_info_cap_sparse_mmap *sparse = NULL; + struct intel_vgpu *vgpu = vfio_dev_to_vgpu(vfio_dev); + struct vfio_region_info info; + unsigned long minsz; + int nr_areas = 1; + int cap_type_id; + unsigned int i; + int ret; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + switch (info.index) { + case VFIO_PCI_CONFIG_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = vgpu->gvt->device_info.cfg_space_size; + info.flags = VFIO_REGION_INFO_FLAG_READ | + VFIO_REGION_INFO_FLAG_WRITE; + break; + case VFIO_PCI_BAR0_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = vgpu->cfg_space.bar[info.index].size; + if (!info.size) { + info.flags = 0; + break; + } + + info.flags = VFIO_REGION_INFO_FLAG_READ | + VFIO_REGION_INFO_FLAG_WRITE; + break; + case VFIO_PCI_BAR1_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = 0; + info.flags = 0; + break; + case VFIO_PCI_BAR2_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.flags = VFIO_REGION_INFO_FLAG_CAPS | + VFIO_REGION_INFO_FLAG_MMAP | + VFIO_REGION_INFO_FLAG_READ | + VFIO_REGION_INFO_FLAG_WRITE; + info.size = gvt_aperture_sz(vgpu->gvt); + + sparse = kzalloc(struct_size(sparse, areas, nr_areas), + GFP_KERNEL); + if (!sparse) + return -ENOMEM; + + sparse->header.id = VFIO_REGION_INFO_CAP_SPARSE_MMAP; + sparse->header.version = 1; + sparse->nr_areas = nr_areas; + cap_type_id = VFIO_REGION_INFO_CAP_SPARSE_MMAP; + sparse->areas[0].offset = + PAGE_ALIGN(vgpu_aperture_offset(vgpu)); + sparse->areas[0].size = vgpu_aperture_sz(vgpu); + break; + + case VFIO_PCI_BAR3_REGION_INDEX ... VFIO_PCI_BAR5_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = 0; + info.flags = 0; + + gvt_dbg_core("get region info bar:%d\n", info.index); + break; + + case VFIO_PCI_ROM_REGION_INDEX: + case VFIO_PCI_VGA_REGION_INDEX: + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = 0; + info.flags = 0; + + gvt_dbg_core("get region info index:%d\n", info.index); + break; + default: { + struct vfio_region_info_cap_type cap_type = { + .header.id = VFIO_REGION_INFO_CAP_TYPE, + .header.version = 1 + }; + + if (info.index >= VFIO_PCI_NUM_REGIONS + vgpu->num_regions) + return -EINVAL; + info.index = array_index_nospec( + info.index, VFIO_PCI_NUM_REGIONS + vgpu->num_regions); + + i = info.index - VFIO_PCI_NUM_REGIONS; + + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + info.size = vgpu->region[i].size; + info.flags = vgpu->region[i].flags; + + cap_type.type = vgpu->region[i].type; + cap_type.subtype = vgpu->region[i].subtype; + + ret = vfio_info_add_capability(&caps, &cap_type.header, + sizeof(cap_type)); + if (ret) + return ret; + } + } + + if ((info.flags & VFIO_REGION_INFO_FLAG_CAPS) && sparse) { + switch (cap_type_id) { + case VFIO_REGION_INFO_CAP_SPARSE_MMAP: + ret = vfio_info_add_capability( + &caps, &sparse->header, + struct_size(sparse, areas, sparse->nr_areas)); + if (ret) { + kfree(sparse); + return ret; + } + break; + default: + kfree(sparse); + return -EINVAL; + } + } + + if (caps.size) { + info.flags |= VFIO_REGION_INFO_FLAG_CAPS; + if (info.argsz < sizeof(info) + caps.size) { + info.argsz = sizeof(info) + caps.size; + info.cap_offset = 0; + } else { + vfio_info_cap_shift(&caps, sizeof(info)); + if (copy_to_user((void __user *)arg + sizeof(info), + caps.buf, caps.size)) { + kfree(caps.buf); + kfree(sparse); + return -EFAULT; + } + info.cap_offset = sizeof(info); + } + + kfree(caps.buf); + } + + kfree(sparse); + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; +} + static long intel_vgpu_ioctl(struct vfio_device *vfio_dev, unsigned int cmd, unsigned long arg) { @@ -1168,157 +1317,6 @@ static long intel_vgpu_ioctl(struct vfio_device *vfio_dev, unsigned int cmd, return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; - } else if (cmd == VFIO_DEVICE_GET_REGION_INFO) { - struct vfio_region_info info; - struct vfio_info_cap caps = { .buf = NULL, .size = 0 }; - unsigned int i; - int ret; - struct vfio_region_info_cap_sparse_mmap *sparse = NULL; - int nr_areas = 1; - int cap_type_id; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - switch (info.index) { - case VFIO_PCI_CONFIG_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = vgpu->gvt->device_info.cfg_space_size; - info.flags = VFIO_REGION_INFO_FLAG_READ | - VFIO_REGION_INFO_FLAG_WRITE; - break; - case VFIO_PCI_BAR0_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = vgpu->cfg_space.bar[info.index].size; - if (!info.size) { - info.flags = 0; - break; - } - - info.flags = VFIO_REGION_INFO_FLAG_READ | - VFIO_REGION_INFO_FLAG_WRITE; - break; - case VFIO_PCI_BAR1_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = 0; - info.flags = 0; - break; - case VFIO_PCI_BAR2_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.flags = VFIO_REGION_INFO_FLAG_CAPS | - VFIO_REGION_INFO_FLAG_MMAP | - VFIO_REGION_INFO_FLAG_READ | - VFIO_REGION_INFO_FLAG_WRITE; - info.size = gvt_aperture_sz(vgpu->gvt); - - sparse = kzalloc(struct_size(sparse, areas, nr_areas), - GFP_KERNEL); - if (!sparse) - return -ENOMEM; - - sparse->header.id = VFIO_REGION_INFO_CAP_SPARSE_MMAP; - sparse->header.version = 1; - sparse->nr_areas = nr_areas; - cap_type_id = VFIO_REGION_INFO_CAP_SPARSE_MMAP; - sparse->areas[0].offset = - PAGE_ALIGN(vgpu_aperture_offset(vgpu)); - sparse->areas[0].size = vgpu_aperture_sz(vgpu); - break; - - case VFIO_PCI_BAR3_REGION_INDEX ... VFIO_PCI_BAR5_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = 0; - info.flags = 0; - - gvt_dbg_core("get region info bar:%d\n", info.index); - break; - - case VFIO_PCI_ROM_REGION_INDEX: - case VFIO_PCI_VGA_REGION_INDEX: - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = 0; - info.flags = 0; - - gvt_dbg_core("get region info index:%d\n", info.index); - break; - default: - { - struct vfio_region_info_cap_type cap_type = { - .header.id = VFIO_REGION_INFO_CAP_TYPE, - .header.version = 1 }; - - if (info.index >= VFIO_PCI_NUM_REGIONS + - vgpu->num_regions) - return -EINVAL; - info.index = - array_index_nospec(info.index, - VFIO_PCI_NUM_REGIONS + - vgpu->num_regions); - - i = info.index - VFIO_PCI_NUM_REGIONS; - - info.offset = - VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.size = vgpu->region[i].size; - info.flags = vgpu->region[i].flags; - - cap_type.type = vgpu->region[i].type; - cap_type.subtype = vgpu->region[i].subtype; - - ret = vfio_info_add_capability(&caps, - &cap_type.header, - sizeof(cap_type)); - if (ret) - return ret; - } - } - - if ((info.flags & VFIO_REGION_INFO_FLAG_CAPS) && sparse) { - switch (cap_type_id) { - case VFIO_REGION_INFO_CAP_SPARSE_MMAP: - ret = vfio_info_add_capability(&caps, - &sparse->header, - struct_size(sparse, areas, - sparse->nr_areas)); - if (ret) { - kfree(sparse); - return ret; - } - break; - default: - kfree(sparse); - return -EINVAL; - } - } - - if (caps.size) { - info.flags |= VFIO_REGION_INFO_FLAG_CAPS; - if (info.argsz < sizeof(info) + caps.size) { - info.argsz = sizeof(info) + caps.size; - info.cap_offset = 0; - } else { - vfio_info_cap_shift(&caps, sizeof(info)); - if (copy_to_user((void __user *)arg + - sizeof(info), caps.buf, - caps.size)) { - kfree(caps.buf); - kfree(sparse); - return -EFAULT; - } - info.cap_offset = sizeof(info); - } - - kfree(caps.buf); - } - - kfree(sparse); - return copy_to_user((void __user *)arg, &info, minsz) ? - -EFAULT : 0; } else if (cmd == VFIO_DEVICE_GET_IRQ_INFO) { struct vfio_irq_info info; @@ -1475,6 +1473,7 @@ static const struct vfio_device_ops intel_vgpu_dev_ops = { .write = intel_vgpu_write, .mmap = intel_vgpu_mmap, .ioctl = intel_vgpu_ioctl, + .get_region_info = intel_vgpu_get_region_info, .dma_unmap = intel_vgpu_dma_unmap, .bind_iommufd = vfio_iommufd_emulated_bind, .unbind_iommufd = vfio_iommufd_emulated_unbind, -- 2.43.0 From - Fri Oct 24 06:52:23 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id iL5RDXO7+mhWUjEAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:34:11 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:34:11 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4os-0000000E4QC-3DPB for hi@josie.lol; Thu, 23 Oct 2025 23:34:11 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9105E3B6A9D for ; Thu, 23 Oct 2025 23:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6232A2E22BF; Thu, 23 Oct 2025 23:33:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="rNZJQ5XJ" X-Original-To: linux-s390@vger.kernel.org Received: from CO1PR03CU002.outbound.protection.outlook.com (mail-westus2azon11010051.outbound.protection.outlook.com [52.101.46.51]) (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 D82F72E1F10; Thu, 23 Oct 2025 23:33:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.46.51 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761262429; cv=fail; b=WKQljla9bWvv34G6pG8BbYXFCGwDlJiIdd1zXdbI8SymkVhmyAQfUCsRKYnxiGrkEXmhgwONhtpuUwXCp6kHG50XFrrqO0OhM0s63QaWAIBbzSJVZC5rnikOx4QF/8CBNWA44Ze8ce5XWdM/JLNzCDlQlGdpowP3dmi2n+UP3ZQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761262429; c=relaxed/simple; bh=Aq2WOngmhXiFF6YwVipEy449R7JktaUAS7RpX8bh7QE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=IoxRQc9HTnIq21dpyyGTZBmGYXNFr3Ngwkx3rs/pDukUujDTvImmb/LHZ+oSLtBXN6bDaJHBrrGKWyyJRz4ijJpHMzy4doWaua/eyypBWO5jtsEo49cFwMrqlFS7ZEdIs4Hr+sLYC5TejT3/dUd15RHBv5WHlq9hdpa7aht0+Ac= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=rNZJQ5XJ; arc=fail smtp.client-ip=52.101.46.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ccSpS7xlc+Kih3DBjPGMstqElyWWiZv7OULg3TAlYNE6N5eXHW3yw87ZePISNCY1inLBD/p+yOZ42bDMvNWoJM6Bjbujf3z5Z0fIC1d1H5Yff0eMkO8uZeHy9vIm6Y6TjG7ndi2OHFFITKL+B0dZAi4QA35y9UcafiffF8rE/TU7UMmWx4UAzAhmRMeA8NHQVH52DJjZUWpGTuAkZLsuB8Vw6shyee/L+S0MCOfxhOX6ILOdKODhAft7Wi1n0yJaKj8/iu75jYgw792F+BT6+jClUFNupKtwj4k6hInxFhbM7DP/kH6EUrLj9SZq5FLM/weDUdcVCnywnJw7Hah9lA== 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=jwhrai6bA6jsyYRx7jplFlB7RKXp0qg8dCum5uU1kIo=; b=ZwsF+O8dp0PwrtY7FfHkUfYx/20EWhnBhQmJIJCFe5OYukXtPwBMMTgTll7zyo6WPwXIkie4TCJfwD/dfsfnweSePwtd7vFQbRq643bz+E+eKnwnsXXoqKFTzGYUSSaI4B6py8fttOjyEd5eY97sncu2FLFpi1cZdG+7EuqdkwW16uabEBtQ77neA+VkrQEOrew5sfBOBeiUdDgqwn+sfbO4SwQxVpIsRojKLW3/Zalua0T3TO3vEHPP06OcGofZ896zuZWkIhiHTRMsQaYBmW/a7CYK47ZJXApRvw63uQK0HkoebwDR9ZzGzHE2WHDTDbrdCJ6g0aa/4dzEZrOl9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jwhrai6bA6jsyYRx7jplFlB7RKXp0qg8dCum5uU1kIo=; b=rNZJQ5XJgSw+J51aMaZYACb4gQWEkhUbuxTy+vtkeJaHP7OCfH5A8SDh5ySUwHUnp5earRraslxkimwis7SRfBeyP3tegLG2A0ppolySYnQeOoYabyqsVcRUR4czTXIjnWYgcTnJj/3b+WbtCaSi4wZAWj6g61wsYv1RxuFpe77UlM39uZNZ4MDEcW4sVVOxJJE6drcsqoER0wQqKhhXPdKMyoOXLuvxBkTkUPkT+7srYrfklQHPlL25yOjI8QPnV9YR/IsNw0DHlNxiEsnNrXhp2fLuDebM7/GwwzoRGZmYMfmXz/T7Vi3lB65tgl2eeljlXK+xIlJ4J2ljSy69qg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by LV2PR12MB5943.namprd12.prod.outlook.com (2603:10b6:408:170::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:33:44 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:33:44 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 14/22] vfio: Require drivers to implement get_region_info Date: Thu, 23 Oct 2025 20:09:28 -0300 Message-ID: <14-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR16CA0007.namprd16.prod.outlook.com (2603:10b6:a03:1a0::20) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|LV2PR12MB5943:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f7f9a96-e354-4ec7-1725-08de128c9b29 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?9NtfcPyWuxLcFjWYrVmFSuqQ9AAYfEhd8mcdIfQW5xHWcM4NsKW4jlSPR4Fo?= =?us-ascii?Q?16GXwmm/3mCV4gFyXqsPiPzC/i0fq1fUsECFYpo6GJG6uwcPxB0s/G/+8O4/?= =?us-ascii?Q?r7mPIXUg8mTUGt+FXJ2S2XasxLuJBuenDceqQCeFhXmnBSNPIiQEoZQ2vAZu?= =?us-ascii?Q?S4w5AiFJIZIFCETxFY1Tn0zYvpX0czftnxu158fIS7Pi4Uf72XaMxK7FtUf0?= =?us-ascii?Q?3UlmLEFmS7lwyjj6zjkdYap/exBNzuRB3VoFvnSrCI2JfNt+R3S+wgLUUmww?= =?us-ascii?Q?AB2zCzy72HktjK3Cy57yRctDRcza+SMx3ZD5Ozmoh7SuLaJqaQbTpgodLsP9?= =?us-ascii?Q?p3ydViZy2l/Yxbt2xigNWDOs5FME+dRW/4BaW5cd99HK4hkW+TWWuJeXMmxl?= =?us-ascii?Q?4ucG66VxEW83zuhJ8cS9sez2WFUwn3Hkb6DQXx49IdPlqdGnqWIA1SQZLrjy?= =?us-ascii?Q?UlSpb2NPGtT0mKJ/8HTRie4LMADVPBfuGtHzcd4JpnpMOtTzLPY7Owzmk8Cf?= =?us-ascii?Q?aXofrXJzXjc0ss1qyM31jKpsgkGdbNW3ddUYacYmOK6iKfJx2Rd5dtR0+JNQ?= =?us-ascii?Q?y2NmX1+CZaiMae4XAAaJA5CxVcqVH+XcV480PRoZQGUyXSr0bORooAefpwhc?= =?us-ascii?Q?D/zXQTyvuNIbFNZbTx2CXgR/gb0hgm+181zxEnc6EohbSW97o++g04qqesmq?= =?us-ascii?Q?SdOFsonAp0Q3TxkHOyNZa7rN3yifOr63rxGwYmEfktWVadZ+Dqn9r4JQ715l?= =?us-ascii?Q?g1zdP5SUe8mHjFHdjpxMu+PxP2jgCgc8Ei1eJhSv3f3+3bwePk9UeTXhSezt?= =?us-ascii?Q?nToHL+aUzgDztm5jRHQA83Q+xqwjSXoTh0gCkU/b9BaZ0Ah+wtQAvPgMUUtg?= =?us-ascii?Q?O0uNNHgBdRynKjHI2HlQceuo0iPWkTOMN7KlVe1jfaemU4Uv5Z7PfOfkyQkF?= =?us-ascii?Q?L71Jd0T37qS5FBirrHzUMExlvstWQ26PQMVL3Xy1Yqv+OsQMN+20snURsJV9?= =?us-ascii?Q?y/xcbGl1hYjiLIUfytsoTUj0KXTQtpNyyfObvbXvtHqo+nY6VtKd9HhJfCjG?= =?us-ascii?Q?93vaK+PUjuly5X8Tj9hSLogtrcODYzPEIxr/gDyHeXu2C71o2irFDR6xrw+i?= =?us-ascii?Q?HMwwdatJ5crx7mAzlGBkKKSROVgyIR7ERhf642Qn9VhLeh+H+5qxc4bjAlif?= =?us-ascii?Q?zHRaXMt0UZsLJ4d0/23v3Or5ZG5ide2GzXm4cgzayFQ1t0PCqQgN/zZ3vVpz?= =?us-ascii?Q?Pyunfvhg2zrOiyO038KxpV8UVY8whm51Snwy2WZqONrOPhiNxJ5NufgDlPeV?= =?us-ascii?Q?OkZNGlL8jSEGq56BVgDnZHb9i9nI1FegIBUXc7j5BpsYZ64daOe4IENtmVMk?= =?us-ascii?Q?TvMnGl96R8mPpnm0ovuvkJjnlXkRXcKdj47BQo4pf3PwTj/8Ul5TFZrCNfiy?= =?us-ascii?Q?tnvN+6Y60yN2afd5kuRZ7diwPCU5L8oKYzvBeC8odSu2XaN00EBmdZNu/95A?= =?us-ascii?Q?gDpm/Th3gs20v9k=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?xI7JJ+nmh9ysoi30eE4oTNNMmysQOqwtfvfkm5wwcVo+lKq8jlCeLTuCeDCF?= =?us-ascii?Q?UPkGOzHZORER3nfJnxhVpaSOayCixoV4cMQr7yAoyO6GQepD5lzU7iX01reo?= =?us-ascii?Q?VL30mdfE5zYMxEhiUYJ0b+Svlo3iQKJDiGMFsEYY82zF3QkZ5ixCXa69R5DE?= =?us-ascii?Q?4dxlYxwl5bRZuC9QwW6QCamneJIyJimSiUMeudj0Zh6tqvHI/RzVP9S6kvnC?= =?us-ascii?Q?jX+jEGyUnMl7TeW5rUR+p9m4eJup+59iR53IRjpEyV8nQX77Y0JwWfeFFY5t?= =?us-ascii?Q?P93JdUumOk1+HwcKME/Tt4SQHQAN1VggcuARXt2xoh8kKJICksjrrU6uuw6g?= =?us-ascii?Q?xIAyjDP/xBElbSgOVOeIusNErWyezQeNqHyu2EnkvLJVTq99pxCFCd8NraCP?= =?us-ascii?Q?YF02xQ9SolesSxFphkGcy1HUQP3VhDPnxOHM6z+7zYDi+Im08Xh26/encPqi?= =?us-ascii?Q?CRG3N10MnB/UXNLKeV5R31YjQuV1NKiSgQHdr/xb69eCptjgzAn4kCzN6SIf?= =?us-ascii?Q?HdvSPbqNcdormWQJSesKHbrXwJ94QEHrIcwvYcrMLKwAYtvRwvSmVUZxoO6X?= =?us-ascii?Q?41tFjstt4i0dpW6TzZjkapE4v/zLGSTsxjWLkDLK/59s/DjpxapiUym7GlKp?= =?us-ascii?Q?Dc+4FTIHG0Od2meCuH+7uON8MdzJUP00RawgKTK9EtSnHbTbCNMPIJtldf/o?= =?us-ascii?Q?XkNycIqYUK/0IUbUDdJLzuG6XWrqWHwOq0WQ0kiLQKu7t20c3UB/am5sFOGb?= =?us-ascii?Q?zFmL7yqL+nReeIXaRTuoTAZftlpB/KavX1UmDKZifU+DS1ZZfbDYZZ2rj46G?= =?us-ascii?Q?1Y1pr7XVViNXnYeIoXQfY4MdxjwlPdo2TflBFN45bB14qyaMsDpkISPBjZrm?= =?us-ascii?Q?Wh1F0/j/eaFOQokFFxwqnHY2Fu5nDiB2rXDl+GhOu+Ybp+g9lpMwf93igYo3?= =?us-ascii?Q?ia8o4AcRF6zgWVFQUzw9eqfqVUdiwNUUlyle0jT1h+lGV5g45RygsOAmICH1?= =?us-ascii?Q?hV+jstRPE9EkArFDtQylntZIxgdf+7jE654rVITc2Ji35jpbvpsab8PEiWAJ?= =?us-ascii?Q?+bWZ9aJJoUxAL/umVcca6VFgt4quuZ0xIkdx6K8Vr4vq7w86BwC0c5cSLrrK?= =?us-ascii?Q?4KrFPU+lFigAi1i9JJ1pqbAAL4uy09b+Mq73fBn3gCe78dpepvFn/J2WpklA?= =?us-ascii?Q?VomJK4EUqP/sDWxQO3F3z007f93LCxYzZaEH4EVtiQK4SumaVg2NI1+SyW8b?= =?us-ascii?Q?HIX/wDedMPdNQfs9F7XOfHLPx8rn/5sMYZtwBoFP2mZES9AA7aYZqe/AF2zu?= =?us-ascii?Q?4ZdQofvXH9ACiRuXlDEYcqgXpreT6G/G5meMb5R6OLETMPwGia4Wul91+X+R?= =?us-ascii?Q?O0bjPp+GZr2XLBOogpbkRibU7x2dzxiEfO+rKq866f0J5H38nb1EezT+Voq4?= =?us-ascii?Q?oefMsKKNbsnnjXT1FYoM0mL9T8lK1hef3HjT4OFyIeQU9ixJOAImngnZExKW?= =?us-ascii?Q?5Sclu7vXraxTjzdY3zREfZPJuBNHudIwSle9tH21xwBDNWDj+td0KargXKGp?= =?us-ascii?Q?zKeJjUVzlp13kSdWGNsGRV0tIEzjVWFMvwBxzGU2?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f7f9a96-e354-4ec7-1725-08de128c9b29 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:33:44.5998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DGrv1IYmsi6K5vZRhPtNe7v8rDGd272T98zOFylbTMvYYhTMXNlb+E6fDR9nGrOa X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5943 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: nvidia.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Remove the fallback through the ioctl callback, no drivers use this now. Signed-off-by: Jason Gunthorpe --- drivers/vfio/vfio_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/vfio/vfio_main.c b/drivers/vfio/vfio_main.c index a390163ce706c4..f056e82ba35075 100644 --- a/drivers/vfio/vfio_main.c +++ b/drivers/vfio/vfio_main.c @@ -1297,13 +1297,13 @@ static long vfio_device_fops_unl_ioctl(struct file *filep, break; case VFIO_DEVICE_GET_REGION_INFO: - if (!device->ops->get_region_info) - goto ioctl_fallback; - ret = device->ops->get_region_info(device, uptr); + if (unlikely(!device->ops->get_region_info)) + ret = -EINVAL; + else + ret = device->ops->get_region_info(device, uptr); break; default: -ioctl_fallback: if (unlikely(!device->ops->ioctl)) ret = -EINVAL; else -- 2.43.0 From - Fri Oct 24 06:52:24 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id mOv8Grcf+2hdNiEAYBR5ng (envelope-from ) for ; Fri, 24 Oct 2025 06:41:59 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Fri, 24 Oct 2025 06:41:59 +0000 Received: from lists.archlinux.org ([95.217.236.249]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vCBUs-00000009Mtc-348u for hi@josie.lol; Fri, 24 Oct 2025 06:41:59 +0000 Received: from [95.217.236.249] (localhost [IPv6:::1]) by lists.archlinux.org (Postfix) with ESMTP id 0970E5ED4C93; Fri, 24 Oct 2025 06:41:53 +0000 (UTC) Received: from mail.schafweide.org (mail.schafweide.org [IPv6:2a01:4f8:c2c:eed::1]) by lists.archlinux.org (Postfix) with ESMTPS id D98495ED4C52 for ; Fri, 24 Oct 2025 06:41:42 +0000 (UTC) Authentication-Results: lists.archlinux.org; dkim=pass header.d=schafweide.org header.s=2007 header.b=FUjM3rbg; dmarc=pass (policy=reject) header.from=schafweide.org; spf=pass (lists.archlinux.org: domain of bjo@schafweide.org designates 2a01:4f8:c2c:eed::1 as permitted sender) smtp.mailfrom=bjo@schafweide.org Received: from [IPV6:2a00:c380:e002:8240:6f90:1988:7166:71e] (unknown [IPv6:2a00:c380:e002:8240:6f90:1988:7166:71e]) by mail.schafweide.org (Postfix) with ESMTPSA id B1C75E1C494A for ; Fri, 24 Oct 2025 08:41:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=schafweide.org; s=2007; t=1761288101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bvOMfzTOXmWKd+w0379axAPkR/syP+hvZasLj6o+tb0=; b=FUjM3rbgWNppR6wusuLAMVIqwI9vqc/CD8Fy/9SE8EdBuiThONofxLln0D7Xxrh6wbeKEG E60mPXdnOzJhIDasHnf2wMBCRFuJa1OGzA1QNjx8RbPf71UKif4b+aRycym76I4OT1Gqts RG6kONdAg/hAicrBycOnlHKkVCsmTbo= Message-ID: <414781aa-2b42-40cc-8878-467943ee9a3e@schafweide.org> Date: Fri, 24 Oct 2025 08:41:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: New CDN based mirror now available: fastly.mirror.pkgbuild.com To: arch-mirrors@lists.archlinux.org References: <70b46ca3-0c83-4dd8-a699-48a9d192ef98@heusel.eu> Content-Language: de-DE, en-US From: Bjoern Franke In-Reply-To: <70b46ca3-0c83-4dd8-a699-48a9d192ef98@heusel.eu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D98495ED4C52 X-Spamd-Result: default: False [-1.00 / 15.00]; DMARC_POLICY_ALLOW(-0.50)[schafweide.org,reject]; R_SPF_ALLOW(-0.20)[+a]; R_DKIM_ALLOW(-0.20)[schafweide.org:s=2007]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[schafweide.org:dkim]; RCVD_IN_DNSWL_NONE(0.00)[2a01:4f8:c2c:eed::1:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[arch-mirrors@lists.archlinux.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[schafweide.org:+] X-Rspamd-Action: no action X-Rspamd-Server: lists.archlinux.org Message-ID-Hash: ZD2BCXPFDFFPX2E4UBH6XPKOTN2DNEMN X-Message-ID-Hash: ZD2BCXPFDFFPX2E4UBH6XPKOTN2DNEMN X-MailFrom: bjo@schafweide.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Arch Linux Mirroring Discussion and Announcements Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-DKIM: signer='schafweide.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: -101.9 (---------------------------------------------------) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (-101.9 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: schafweide.org] -0.0 USER_IN_WELCOMELIST User is listed in 'welcomelist_from' -100 USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [95.217.236.249 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager SpamTally: Final spam score: -1018 Hi, > Please check it out and [let us know][2] if you find any problems with > it! Seems like it's out of sync now: linux-firmware-intel-20251021-1-any.pkg.tar.zst konnte nicht heruntergeladen werden linux-firmware-nvidia-20251021-1-any.pkg.tar.zst konnte nicht heruntergeladen werden linux-firmware-atheros-20251021-1-any.pkg.tar.zst konnte nicht heruntergeladen werden linux-firmware-other-20251021-1-any 26,0 MiB 88,9 MiB/s 00:00 [####################################################################] 100% Gesamt ( 5/23) 379,1 MiB 1239 MiB/s 00:00 [####################################################################] 100% Fehler: Konnte Datei 'linux-firmware-nvidia-20251021-1-any.pkg.tar.zst' nicht von fastly.mirror.pkgbuild.com übertragen : The requested URL returned error: 404 Fehler: Konnte Datei 'linux-firmware-atheros-20251021-1-any.pkg.tar.zst' nicht von fastly.mirror.pkgbuild.com übertragen : The requested URL returned error: 404 Fehler: Konnte Datei 'linux-firmware-intel-20251021-1-any.pkg.tar.zst' nicht von fastly.mirror.pkgbuild.com übertragen : The requested URL returned error: 404 Warnung: zu viele Fehlermeldungen von fastly.mirror.pkgbuild.com, überspringe den Rest des Vorgangs Warnung: Konnte einige Dateien nicht übertragen Fehler: Der Vorgang konnte nicht durchgeführt werden (Unerwarteter Fehler) Fehler sind aufgetreten, keine Pakete wurden aktualisiert. Regards Bjoern From - Fri Oct 24 06:52:24 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id UGKKBNO1+mgPOC8AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:11 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:11 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Re-0000000DIdK-1FEB for hi@josie.lol; Thu, 23 Oct 2025 23:10:10 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 55BC03B43A0 for ; Thu, 23 Oct 2025 23:10:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E02E12C21E5; Thu, 23 Oct 2025 23:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="afVn2Dz4" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 203F026F462; Thu, 23 Oct 2025 23:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260991; cv=fail; b=ujGCIqjAqYz+8cm/+1UwAIkD2hjl3bfWjTKI/ee99cc5U3RAQW+H7FhgkIoD3uPTQ8cryym1pBeQh1Sh7J+qIfDI5FacMbm53HQbRV9hBbK4akQ52B2HGJDzsm4iCproGwPRMhleud5RlJZIPZAVPH6GCGla1d95gBcwNP9PJDw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260991; c=relaxed/simple; bh=r3E6Wlaou455xxXKFf91b9OtrtvJQ1FUMHDphobI0CE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=jIiZyLvoyUxTfUNlmalxXInIhLzY/DXP+zY5+azXdZXlZaAub8AEW/R/HdH+mlyS35N9TjZRPE+KV/dH/ee0X1Cc/HYzB3NwRysxHBgDkVcEt8hEa1XXn4wv3hYQ6V/qwKvR6k40xIW9Q4DOf2BN0SBqLjXg1Si9F0yLLxyTaQY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=afVn2Dz4; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=rGJIOVvp4Mv6lH/j0PbNXIjCxQZCqH2WOV4r1YhwXopLqGLROec2W3WMtTlXckODxNY4/wXrGo3Mz2gfawWsFtqKoZrG8viWbdgbegISR7zs4+hrsaYFQTDFh/Z+vYTGQDPbBFqqP3K3jNWvl4Ew7UaLs+SYy/WoOMZgW6sGmZZ19mh3qGEEo6nz4Gxw78aErUJj2KXi7NoWVKNWsODVm9tA32EnjT2JXP/NMJrHZ5BJ8pnVXbkvYJAmYmLkZfXn2Xd9u2TTzmaGEWH2ohy+cGjqcuJGr23uK9qR4kfSZj/VVg80CsMM/7nYQfJwSo+sdPSb2Jogv3kV1ThOgpvkDw== 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=WGu3ZzwE7gs5InwBxP/cFxDBe723K77wWa7pR2mwEzk=; b=JpAZIxQJ+6nG5b6YGuDb4YCNRTL2QcGTZA3ANiYvSI4TGVBnDVgEcmG5vl5JjXxpJdYK46306SkczA1qNYhbnO8CZyHWbAUFrKgiPnb4mUK/O7N64KkE8d8vs0uFxDQDxztDnTwfwNvKZDBaJCM4aOJLB3eoT8s37t0F2/qxmUzxUGSObWmotgCDaGYVANEjfZCQZ1/1yks1Vhf3xCHlm1pqhIMXjnytmLx4fHLq05UY1pe/uFXlg7xN7YdjdiFNVEK9TAxV/ELi5pg12It4pFJVurK1UK3DcxXxAKBd2SwU8cfDsHIThrXpMmbCxTNM9crTwihmYineJdgTK3g4bQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WGu3ZzwE7gs5InwBxP/cFxDBe723K77wWa7pR2mwEzk=; b=afVn2Dz4Yckp59bnK/cEZU79UIWa+0Om0sy/xjZEssx5FT/zvTjDt4U67rxI+C+FUGR4Yj0zYn/agIIspCAh6p0iHfj500sz6Tmh3n07a4jNWgugiSLnNSAw9e9bXXZDZeHXFnoK/IGHsoKw7ggTuxGNX/lR/ZIJqMDqI3aTFtwFKYzfQc8el8QBhrtLL/yFKijq9szTYFAOA8RuM3kJCZQVGbOuhE3MpT6TLMLKGYnf2509Fr5U1NIZEVUC6EvSAtoDd0xmIlEsjZs3RkAHKSp4YRX9+Je7ON4eXdqII9gGDYIxWM5gYMv/KrfPQMWirpZvHcen/+gAIbE1UPYhTw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:43 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:43 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 11/22] vfio/cdx: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:25 -0300 Message-ID: <11-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0099.namprd03.prod.outlook.com (2603:10b6:a03:333::14) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 10452aba-c424-49ed-fade-08de12893f8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ZWojZ8J2rxCDGMJFd24I5SufWGlMDQ76gENI/irq59gBaQgrwlxU5InYX/uP?= =?us-ascii?Q?CIOm8yBTrFUKQ7x28u/g7Y17xmhFNpYA1XK8Jy2zPS3Z9erphqTHCwRkFCSp?= =?us-ascii?Q?NoY1SsBz/M9NfXt1uKCbdIs9/v2pEUR+jyHcwkrDa7A7WPwZEX1BEpd3yNm+?= =?us-ascii?Q?lS2+UtHpa3p8DjZI9fIOY9SzEmghHAfkBJX8MZoWAdBb9izPmKeVq8PP8hjp?= =?us-ascii?Q?OX3+WDreKfydmw1DjShW84PWYRFO1H9v3dS0DqwfPQtwMCh4zu6a7wgPlsue?= =?us-ascii?Q?exy6I7t8twLf3WNHVaW9mejqAAtMkYR+7QtMUyCeFN2W4NpY4UY5Uysvuqdp?= =?us-ascii?Q?WGhcs/di34Q2FeSJGlvT6daGnD6HhN5Du4Qhb5CzCcuOdLMVoJnnkm7HiRFM?= =?us-ascii?Q?mxUZov4FK5ZfkiwUjs42VnQ074aM3X31zwq1YDfhq5tp96desC/W4Im/49Bk?= =?us-ascii?Q?lWKMSnv51fky7YIWLT1+0GUT+PlU0X/tDy9uexmi5siU6EZBuUZuX1HRL80g?= =?us-ascii?Q?HSKzZMRyo4ViFkVRYNWM8fT8pmbPfiFUktwtWHFsfjUT3AG8CbB/VPfdDCQe?= =?us-ascii?Q?1HQdMOxeZzWvo3NAjvgN4L+ID7pGxWN7iU1SAGfhE5cXO07H3jXD720p9ewn?= =?us-ascii?Q?9itYaRbbIsKJgtCE/YpO9/DesbANzS55Hplo/xhVmU9z5Gv3Blfe3JL02119?= =?us-ascii?Q?Ik38Q57ricdgs3sWj9aNpgazYqZejd2PrMHXg74kqj7KxMGI+ZYyXWTpFj4o?= =?us-ascii?Q?8BWYVCwmPIAn6uUs0nMQ9HLlNP343jM1w+spYjxaW6bsyetGoFwXkSic7Vjj?= =?us-ascii?Q?5jjokyTuTFQkhj87PiP1IjkxQQ0/966TiJZ+rs013MjfBAfP/OxGMxIjhJgR?= =?us-ascii?Q?00xy/+iSVWrmvffBA5U87OG8XXtiDFjhJq9aJ1ruRPYZVdUYnNY4HiciabOm?= =?us-ascii?Q?ssff40xGCeU401s5CYzT2pbOGvXYYA59Fa2amDCp8KtIy3SLAy6QqqPgA/gW?= =?us-ascii?Q?EXmOlpS642BuVfhy0h3yK70XeMu71fERWJ5HHKLLtKGath3lwXeAh5IT/zEG?= =?us-ascii?Q?KwmUIZlggOKThyCq4WYH/XTDbGGgzLbRqshN93QRuS8DI+hMzkzU06spxucO?= =?us-ascii?Q?Qo73ixSCKRcVG5FeTqBskzLuk1W6FWxlUZtMVI9xb4gRuxkSln28zFdkkldC?= =?us-ascii?Q?4PvCLozSELZTTmlW1wDXFSknc34hwHkTGWN69rFGPdmoDUHWw9J7IrUuJBo0?= =?us-ascii?Q?zPRLqFzSS1T9v18S1yHcxE9npl0DqHzeSycb/mkzOxURSUqFWkVtJdr+WHWp?= =?us-ascii?Q?fD5A1NvtkEUiYDAbmF6jbetj1yLIAgrgMUqDdZpNA+TwqqT1grE3KPspG5GT?= =?us-ascii?Q?sqw+ImoucVdqv//umyIUa/sLCAN4DxFpjKwZ3sA5+34Ko8U792704rRgFnUd?= =?us-ascii?Q?qiMzmBIiu6jbR4sefb1Vz3mZfOCopiAA3jCgRwnzKwwBdBLqLJn0zAdsnaWO?= =?us-ascii?Q?PdVNkBtnMYGPGNg=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?b5O9VnvN3ihZ6QQNzpOH0PO+0rTnM8Gik/C0JELYcg6pgkBPCSznTc7JmV70?= =?us-ascii?Q?H2M3UsaW1bTYaAZZXhHUpnS8g8nAzWcWHMp/uuKHiIdU62TmQlIiQRXldfw+?= =?us-ascii?Q?cgEWQwSvClDO+UIoWEWLILuF9lKmbyGAgIp4lgtwwk33hX7zFGEEF6vZWG7t?= =?us-ascii?Q?JAHwSR3FvhIJmg7CiEL8nkgo08TQTX9BOlruv35JsVO7I2+uJKcslWYr4C6w?= =?us-ascii?Q?MHjKX9994uWV/wdb1FkCdaF8XSmZ71H/nwaOC3jjTGjryQu2TbkxTODRbD37?= =?us-ascii?Q?4Prx3hByU+ktg1YV/RvRkVUJC0wPxTS5BxMWoBrLn+pPs4/Dsswz0zgxhooZ?= =?us-ascii?Q?kxvhcUUb5Bau7pVGS+XuUQiU9ru8Njk2hXQ125GTNWItfeJL+2qsp/navMiY?= =?us-ascii?Q?4wC1NDD0LDrjnVEVlOR+NHvi8q8zgoEsBNHB2X6sUIWFlKqEzSXDorMi+OCP?= =?us-ascii?Q?TqslD2Fk1oz+pojZ+GqVFdx2RgQonyI3h+GgxQM9sK4gkzFB2m4iIPaNRLRN?= =?us-ascii?Q?kJAM3mlaoCtJURdTj3Kq3Zju7CRf6xwMnvwHbfs8N4AKTaW1/HF+5rEVqSBt?= =?us-ascii?Q?lo6bda6h4FvhETf/Wae6puY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-ascii?Q?hArQXWJQuYuP4Ps/y9io1YwWJGPUIPjCkdnYYKylm52tP70BwsZ8/zQQMv0F?= =?us-ascii?Q?/Xow5scET5s8GXl5/hUAQyzEOgTpwYqpLQrwxDXU?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 10452aba-c424-49ed-fade-08de12893f8e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:42.1840 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: +qWVr99UgDgCVm29YDDOgbGC85hS4SbKFbBy7folpItyl58oDoW8rxiCOwa2DFhV X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Change the signature of vfio_cdx_ioctl_get_region_info() and hook it to the op. Signed-off-by: Jason Gunthorpe --- drivers/vfio/cdx/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/vfio/cdx/main.c b/drivers/vfio/cdx/main.c index 5dd5f5ad768653..506d849139d35a 100644 --- a/drivers/vfio/cdx/main.c +++ b/drivers/vfio/cdx/main.c @@ -129,9 +129,11 @@ static int vfio_cdx_ioctl_get_info(struct vfio_cdx_device *vdev, return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; } -static int vfio_cdx_ioctl_get_region_info(struct vfio_cdx_device *vdev, +static int vfio_cdx_ioctl_get_region_info(struct vfio_device *core_vdev, struct vfio_region_info __user *arg) { + struct vfio_cdx_device *vdev = + container_of(core_vdev, struct vfio_cdx_device, vdev); unsigned long minsz = offsetofend(struct vfio_region_info, offset); struct cdx_device *cdx_dev = to_cdx_device(vdev->vdev.dev); struct vfio_region_info info; @@ -219,8 +221,6 @@ static long vfio_cdx_ioctl(struct vfio_device *core_vdev, switch (cmd) { case VFIO_DEVICE_GET_INFO: return vfio_cdx_ioctl_get_info(vdev, uarg); - case VFIO_DEVICE_GET_REGION_INFO: - return vfio_cdx_ioctl_get_region_info(vdev, uarg); case VFIO_DEVICE_GET_IRQ_INFO: return vfio_cdx_ioctl_get_irq_info(vdev, uarg); case VFIO_DEVICE_SET_IRQS: @@ -284,6 +284,7 @@ static const struct vfio_device_ops vfio_cdx_ops = { .open_device = vfio_cdx_open_device, .close_device = vfio_cdx_close_device, .ioctl = vfio_cdx_ioctl, + .get_region_info = vfio_cdx_ioctl_get_region_info, .device_feature = vfio_cdx_ioctl_feature, .mmap = vfio_cdx_mmap, .bind_iommufd = vfio_iommufd_physical_bind, -- 2.43.0 From - Fri Oct 24 06:52:24 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id kJd6DdW1+mjjFioAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:13 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:13 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Rg-0000000DIhr-37Mt for hi@josie.lol; Thu, 23 Oct 2025 23:10:12 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 8E7564E2082 for ; Thu, 23 Oct 2025 23:10:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2090B28002B; Thu, 23 Oct 2025 23:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="SThVGUr4" X-Original-To: linux-s390@vger.kernel.org Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010014.outbound.protection.outlook.com [40.93.198.14]) (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 6F5DE2C0290; Thu, 23 Oct 2025 23:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260991; cv=fail; b=qd1TpBZz3NzzKIifjoS47qG2vj4zqV/6jb/q5VL9YbZ/7rjuk4sUqvUIVO4RPCA0t9g+2gSGeNsaqPa/ChDXdxyQd5MrYth0IhBudWd6L+qKKTkER/AV6mkFilEmiHZxQxCMEkxGAPpPhDbGXsfx6RsggxUX3Cup9XGpSvpqB6E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260991; c=relaxed/simple; bh=97XjyjZlYU9sQ3oWOsxP/zEMPOfbDqalQEo21zq2PGI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=lBEE2ueDOH2A1DXPm6cwNyM3aiD0aZQYDBh8gQhntcrRUxWw8gVF+T9eOSuCNHFZ7FaV+dYmhHamazIBvfgIbELnWMIC3LMThMzBngVqKqZ0+B9qmGFwxucvq56pN1Bgb7YhnlzZtjW3AmP4FPFpOIqXDZmzoxakpY0BPcF034g= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=SThVGUr4; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=KNC0nu6cb2KZWwdYLfZDLkZZn5mXB0mP0gWA1CpsNWCLbPP7/crfwVhC0SA73NqgfOa/B6f/IdIPRU3AK04yJpUbbQqmbKkMWUBgeQs09n/oG0HF5/o8aIwxXQrxyxnv0jcps8M66fE3GjfdXrqPJ6yryKY+5kf5FDHLIhYrS7h7tR062asQx43XVlaKb5pu1uiJcfrKG/f+CsMUBt22GZPvRQxG7onVOo8IEeyeAFAZQDHP+hfglzwWyIG1139RC6SWBK70nf1svWsmInI0tSXR3myuVJ2EZI4TqYYKSfzZJAIOiU6hnw32K5UJMNX9QCJgkwsd2nNIP8RdRJEasA== 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=zZPRM+mgp7O7r5SMKQ+l1cMFanWWWTJ34FEWRAUW8ts=; b=qv3RP6mo9XanPhc43bLzvWZqliQAVxc1GgP23jXCkVSED26CDvibn6lLn/yoj7qy74k5MGSOuuBGOPenm4l1YZjP8jeDdQvRs7tlBUKYfHebmsTzgCchqZj3OyQkBvpkifUwOdi2eTdBXmV4djp6kyo2KHF/RB2woT6tfn19UyDL1RqmyK5VpioZHDx8hyySCfXdEXAX9sWTCMxBgkbzDshUfYaOF3jMr5xfBOUmRKrXX1XQtuK4V6NT2xBZqQXuwyq2kGWFbZHOKeILZeKqCZ90hzQLojbV5B2cZj7B8zESWl97mvpZZErdSc5KKHhSAAANBRl3Gy4IqZ2JRmLRBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zZPRM+mgp7O7r5SMKQ+l1cMFanWWWTJ34FEWRAUW8ts=; b=SThVGUr4+/CYoigsHhhN4SM66/vEUWBSoz2KLqQ7LfTuIuexVBagXi3rDwk6nt4mzNH8IVHOPNReSor9ogTOOhTl6vWYteB81EXx1VTb9dTFnnYxtoqYSaKcbn4oKdxQfTWWOxTPBFBLG0kYancfJKq1eaFGIVkYuqve+yBYcny4OyXyhleeHzj7E7iNGjKjzPnhwYAFYB9QMZDLR8DRYpxtYQTbLPjX35DLREOUwLRyIb+Ar+f202L0NnTpoE7KZhPUey8xWSt9Emkwfyigo8XmE/mq1cZNWDQYJC0urqFJjMKjluf7uGhvyFJaytAKD2g92r9pv19xp0N7PvYlvg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:43 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:42 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 12/22] vfio/ccw: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:26 -0300 Message-ID: <12-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0105.namprd03.prod.outlook.com (2603:10b6:a03:333::20) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 555dc79f-310b-44dc-9456-08de12893f20 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bSnQfZIqHU21641AarO6Mn4PYeGkSRHUIJZSeeSohx34yiFuotzhN5aNpD3i?= =?us-ascii?Q?iRTwBqnTiJ8goDEGLJsHjauzfTDmOPP6/D8u2fs6r9fnVVSIq5+PrMGUZOXg?= =?us-ascii?Q?wcXCY0xwlcG9SH62cOjP+yXPUDeVuNqD+TmLajiOOv8zSJQdSh2aPrAoKCMN?= =?us-ascii?Q?8TJ0KgIS+9muybMvrBQypfE+f5lUi76U2NV0wWRuhrKuAUgwExyT+4laxBen?= =?us-ascii?Q?9WPcuWqmwA+a3Od8QNUlxrdSM/WyqMaUCR2ND7tddkHyffV+uL8yhQ521llk?= =?us-ascii?Q?gXFhhTmHNIx9rbM4jsJBVCKY+tYBRvhqAX4pwYTE3Fn6uS1hc8leIPUtYWu4?= =?us-ascii?Q?CKu1llEn/AVdpaTH3POOJ5eR09MQMgqVEc/IfxTn+QHw0mzk7sOxEJUnCkIh?= =?us-ascii?Q?dMTwI88EhNBlkHI9cmkme9rZQh+vmcLSlRJHottKVxffmHjDNpdF0VYHHo3s?= =?us-ascii?Q?heLgDUFdo5q/0V4rjZM9LYfHmPr3GvhQ5TUhzwzqByUJvp480X78dzHg0ldf?= =?us-ascii?Q?AztT7pBwZQt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G7kD4In?= =?us-ascii?Q?u4KPZIO0kGl/O0joCaRYFtoN3uYeQT8p8v9+JQ8EHjTbZAidzvYrPdxaYCI9?= =?us-ascii?Q?TqqIaHUNE4vS4ys=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?dgCVorWQ07+9iNVES5JayC4hQVDTBAxs7pMBks9ss9BROCqmJYxvPmu3WtsR?= =?us-ascii?Q?QvDEaCoqBYbsz6lPsQzUEO7X+MrHpKgV2tPU9mdcGUUqOtV1zxVw6nU4xikP?= =?us-ascii?Q?oWfR4HiEdEvY5CBcWCWafu/AWvX3/f0Da8E2YIbuGcBuJVGCIebmYw6xwnMQ?= =?us-ascii?Q?K2fA0f/2adZd9FtHsJ/P0IPpY4V9K3bQ+lNLSAOF6s8yab7oKeWxDQzbf8g7?= =?us-ascii?Q?O/XcqUHJU6AtHeCCsF8vJoEhQrreN/IEcjlOia4aPqv5SUESqsNzPKCLepjt?= =?us-ascii?Q?HNivHJr8zasxBVU6IDh8B/TFqaxk4/ziCY0Wdm5Sc/vmO3C8BSqvJR7SkJEs?= =?us-ascii?Q?Z5+8p64TfKJxAUJu9V6FPKl8bOfjDdNTm7X5xa3CLkq6LwWzNow015LBdU/2?= =?us-ascii?Q?87lMZzoTurs2jUHe6b3FD1ikfyum9f/rNUUsAJDrWnqQhc7sa+UXZL8L5tNn?= =?us-ascii?Q?2gj9DJKS3InMygO3BcoRsm9FzSt4WoOYTsSpJnqmpzhccfOS1z2Uk01CxB7d?= =?us-ascii?Q?8d+OZ2uyHzDVeyyg8T/jHbe+EBLM5m1b0GLXebh7R2R8l0U9vMsLz8i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TV4v7k4cvSSZdSpYHS8ctKCbnm0WtA?= =?us-ascii?Q?tCb1GfNCQMXxjoyTV1YiG2wQjiBSKIBmEQDuKj4pvcz4Sqp50sPPJSFS3py/?= =?us-ascii?Q?UplJdR+6zWMpcVIAdv7hx09J4prT6wInrGCpYs9p?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 555dc79f-310b-44dc-9456-08de12893f20 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:41.3789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 0dbveBJinXMapKS8lMLhzy+Z6q3QGWsqzJaTGgt1OWM1xhKpWbHEcZX3SH1ceQRZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of vfio_ccw_mdev_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- drivers/s390/cio/vfio_ccw_ops.c | 44 +++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/drivers/s390/cio/vfio_ccw_ops.c b/drivers/s390/cio/vfio_ccw_ops.c index ea532a8a4a0c29..6d46e0bc76df15 100644 --- a/drivers/s390/cio/vfio_ccw_ops.c +++ b/drivers/s390/cio/vfio_ccw_ops.c @@ -504,6 +504,31 @@ void vfio_ccw_unregister_dev_regions(struct vfio_ccw_private *private) private->region = NULL; } +static int +vfio_ccw_mdev_ioctl_get_region_info(struct vfio_device *vdev, + struct vfio_region_info __user *arg) +{ + struct vfio_ccw_private *private = + container_of(vdev, struct vfio_ccw_private, vdev); + struct vfio_region_info info; + unsigned long minsz; + int ret; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + ret = vfio_ccw_mdev_get_region_info(private, &info, arg); + if (ret) + return ret; + + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; +} + static ssize_t vfio_ccw_mdev_ioctl(struct vfio_device *vdev, unsigned int cmd, unsigned long arg) @@ -532,24 +557,6 @@ static ssize_t vfio_ccw_mdev_ioctl(struct vfio_device *vdev, return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; } - case VFIO_DEVICE_GET_REGION_INFO: - { - struct vfio_region_info info; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - ret = vfio_ccw_mdev_get_region_info(private, &info, arg); - if (ret) - return ret; - - return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; - } case VFIO_DEVICE_GET_IRQ_INFO: { struct vfio_irq_info info; @@ -627,6 +634,7 @@ static const struct vfio_device_ops vfio_ccw_dev_ops = { .read = vfio_ccw_mdev_read, .write = vfio_ccw_mdev_write, .ioctl = vfio_ccw_mdev_ioctl, + .get_region_info = vfio_ccw_mdev_ioctl_get_region_info, .request = vfio_ccw_mdev_request, .dma_unmap = vfio_ccw_dma_unmap, .bind_iommufd = vfio_iommufd_emulated_bind, -- 2.43.0 From - Fri Oct 24 06:52:24 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id eHh2IMS1+mjHJDAAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:09:56 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:09:56 +0000 Received: from am.mirrors.kernel.org ([147.75.80.249]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4RQ-0000000DI1T-05qy for hi@josie.lol; Thu, 23 Oct 2025 23:09:56 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 1BA2619A2602 for ; Thu, 23 Oct 2025 23:10:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29C052BD5BF; Thu, 23 Oct 2025 23:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="prBn7B/6" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 5B93F27F00A; Thu, 23 Oct 2025 23:09:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260988; cv=fail; b=YTuJ0pfnqZNaXGoDXq2yUNi6eUWq/cS3Je6DX0Ml58VA7LvLyibGOAOOiE8RHA3exG9+DKJLl4XQj3n3aheJ/uzSIwZUUgYgPk2cXxThl8KeZwqOBTlUSbeX3WCkZf/Dv36c8KQzWaKRRR35i+j0kpgzytLQFN3y9N2bZDT03RQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260988; c=relaxed/simple; bh=fDyTxgiKK4l3rArmLMrDXyHtRbopYlCeXhavSKd7Bt4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=X4ZPchDVmt6wXFk5aiE5kWdjh7eWs7s8hHoFiPJl7VuAyXvofvMTXYMEZ0oFi+luKgLrxct8qyPqeRAECGfpp9ZhajVGalcZCwxe4kp8BxWwdXdGPugKiQcgUQIe944x6Atv45F72TNXL5wCtKAwlx3Se6YMCkDxObDileygAKE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=prBn7B/6; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=f13NLM0sGh7K3KEapPcxm8YSJWIGjIQCfpMW2+ZXFua6Kk5OGYucMz5OKpZkCB4I7spHJZY17Ld+/KoCEb1543o3a2eJKAZOx5fRA64VmUcx6VtNsaMpu65YDGcMyXiwuoZIqqVnFf9r9PF65jJUb8WXfdbUnIj+kZ6pMNicw9vzB1zHMRgZhfUztwXuwduO2Ga7/od10Asu7ilCOtHZ95Q5MMzNtTTJLfbXsN19uCiiowLzg0c+e64626hCXuYRdPqZBOxulwfaLiVE83hf5Aom6aDcoU3bHl2hKus6buin7Hy3Zm4JwBzyCDXch+A/CkpN9huf6+TtK6/X4LyceQ== 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=bq+PTJhwrWYQvHcQabGQFjvghQTvSG19X7uIllLbZrg=; b=ken1QtqOruzjvUMT2jRRYAX5DwZV/NpZ4aPU/ZQU3TUHijzu29AK5Y/XrnXeeTAdn2QsYabYuGabS969OhKudobURrK3jgF97xXy2ZY92Kl6JC4dz6Xl7u/JAfw4CV3cPSJNz6oRihAHDr2JSNsUNBHMzshKhqJoYvyPhoTNmuT1eipQZNM11gaJ3hlMhSrX3v3wALlEs4vmTo6d/17EqV/Gbi5MJfIP4FU4VYBU3qdF7ZJ8+5DewmPIHWN026JuS86Q2oOMcrAcUjBHLaatIXQBB054IKlMqkOjio33UBh2dZOI2hfZBuuIgB/oa6FvC76iV6UXSEtFwVcxUx0u1Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bq+PTJhwrWYQvHcQabGQFjvghQTvSG19X7uIllLbZrg=; b=prBn7B/6bLAvu4EwJ2VE0ksCXvydO6CEOhEEQTczBK1ilru/fsEHXMH1lBxjUgcQ3CZwfZ8V8jmmKGO4E+sWJieAABd9N0z7QBrJEb5pzMEMQkX3QjlKtt3ubJEbNrsUnLZqpUe3y7M+6f/7M0GMimuY4vk96oY/1Gv5OI6TfL1DGka5jkRClbj698kq5iJHnDv9j1WSYnTH/mPqe5DyAGZ+0LXq4Lp6uTBwyG7xmkLpLxfHkbp9YNCg0jHqyNhy8d2EOC55r3mdCcrMprhVkELLxAGywyNfXlG0mqFjPUAqHtpKcmPYChEcAsq7rgInmROWvIo0nXCq4VEJanBt3Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:40 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:40 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 10/22] vfio/fsl: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:24 -0300 Message-ID: <10-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0097.namprd03.prod.outlook.com (2603:10b6:a03:333::12) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: b18877f2-88b9-4046-a5c3-08de12893dfd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Y1eY7c+gn3IBm+6NphZO9AjfkuPjl+0f31QlMY5IStoPDfiCBySwPgpf5U8V?= =?us-ascii?Q?V/SGEeYnZ7SUpsUt2sDCGBfasdfYGzHd7Lo97zmUqkM21OQWRu1B9c68vT/w?= =?us-ascii?Q?K6RuIGHPlVsQUW6qp9KWRKo4AoD9hqi9K56nnbIbevC19FV5maRfc15Tz/1T?= =?us-ascii?Q?pOvb/63d++ZRegrXGTPK8IS0sMsin7ibS8UCmLysXwU5ACk3sya8YXTsj43V?= =?us-ascii?Q?O4Ff3nvRS0SJWSRjpSbL/WOcPHlXGnDikhF78NSyVb2qpEN0cqs2+yB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xWk3hCae0y7wVG+GDVcAX8BUrrE55V7+yzXCtWQ4LQ9j9qRt9?= =?us-ascii?Q?2Lxopq4bjeP7iGwMJwHgKhWt7KJQadrNRZ+wJ3OsQQINWmAZimPZ7OGnVJho?= =?us-ascii?Q?DfXh5WOq4vy5PslIM2j/D3PIJ9s6G4X6Tu+aliS+04Fx5YS2mSF01nxQ3da8?= =?us-ascii?Q?PB4s4Q77pV1K3LKJ01KKQ2eMZGq7TN0PJ0ofLcy7j5NMsTEZPdQEEIJqLbAP?= =?us-ascii?Q?/s0oBErWXohv7NbjrmHy0jqrtw/uaU25+clNuf2NF1NTUn7blfGiTS/zvuUr?= =?us-ascii?Q?xOHFVWROH869LKo7mXVoL0KkT0WaL7DG+rZNbZOTrxTjRbUrMibYClig/Ubd?= =?us-ascii?Q?XzjPsYOIUvbKTow=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?PAKeq2YuuQ2ucFuxdn+PN9JL+4WKv13A3TckY9QvHAMnoUmZGr2fChj1aazd?= =?us-ascii?Q?NglARIiSAav/qSf+tqgOgxl+RiIUWRMTxMf4KMUlMuq2J7u6x8kq7/sFXpbF?= =?us-ascii?Q?HzXUAWrZeQp0S0RX+uWHjDpLxShz4N1uzkrmMYV+pNxFJsZC7QWsC78t9J5P?= =?us-ascii?Q?B+o/rTLcZ5e4eNtjjyuG0UdCnio2B2fe6QQjoeGEvZT1+VFqSSGIyXNH0a6f?= =?us-ascii?Q?P3NeOwjZe9g1ZOvP8+BYxqhbFhRovguaR1hS4sgAZ1JuQPwiOWpNM2FmD1nm?= =?us-ascii?Q?r8LsRwq8WJ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kLSKdjlZqb7g0d4t?= =?us-ascii?Q?ImURefNI+osvLTAIKq1TqDJSnJDyzS9lcg9fL0lSavyioVa603QCCjzXkOWi?= =?us-ascii?Q?lWiOYLRwDQM3VWudtu6UCcJPa6sHKwhQuFJ9yyK2kYepWUdQBkDd6yH4lEk4?= =?us-ascii?Q?wnjp9OXRWX9KOApNWMQhnBLDZfo/SazMHiDY76+Dhtl9oWaonb/5++YmuscH?= =?us-ascii?Q?Z6QE8848o94tBTFopiNlwKUIHRnrSBWndsMlO4gug/B3aD79iIavK2J2oC9o?= =?us-ascii?Q?DgEnH0IwLzMraNM90+Tk9BZiF7m+UYpK8/5kYr1EPS/63768GEXPVKOedAtD?= =?us-ascii?Q?C70Hyv9hWzkkEyPWwJqaXt6KE5ZYTU4G/RlbcfsXF93sB+8IELc1sgDY8NdW?= =?us-ascii?Q?9K2JbQwjxwRDg0s/rdjuflIblwO/4fsKAiRp2hDj?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: b18877f2-88b9-4046-a5c3-08de12893dfd X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:39.9759 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JihDGY78oWOAi9vpsVBCAH1W38yfmdxLodJj1KKHKM8HJvnd5dkAKN0a6c/8pJ45 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [147.75.80.249 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of vfio_fsl_mc_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 55 +++++++++++++++++-------------- 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc.c b/drivers/vfio/fsl-mc/vfio_fsl_mc.c index 76ccbab0e3d642..438ea4da120e63 100644 --- a/drivers/vfio/fsl-mc/vfio_fsl_mc.c +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc.c @@ -117,6 +117,36 @@ static void vfio_fsl_mc_close_device(struct vfio_device *core_vdev) fsl_mc_cleanup_irq_pool(mc_cont); } +static int vfio_fsl_mc_get_region_info(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg) +{ + struct vfio_fsl_mc_device *vdev = + container_of(core_vdev, struct vfio_fsl_mc_device, vdev); + struct fsl_mc_device *mc_dev = vdev->mc_dev; + struct vfio_region_info info; + unsigned long minsz; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + if (info.index >= mc_dev->obj_desc.region_count) + return -EINVAL; + + /* map offset to the physical address */ + info.offset = VFIO_FSL_MC_INDEX_TO_OFFSET(info.index); + info.size = vdev->regions[info.index].size; + info.flags = vdev->regions[info.index].flags; + + if (copy_to_user(arg, &info, minsz)) + return -EFAULT; + return 0; +} + static long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, unsigned int cmd, unsigned long arg) { @@ -149,30 +179,6 @@ static long vfio_fsl_mc_ioctl(struct vfio_device *core_vdev, return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; } - case VFIO_DEVICE_GET_REGION_INFO: - { - struct vfio_region_info info; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - if (info.index >= mc_dev->obj_desc.region_count) - return -EINVAL; - - /* map offset to the physical address */ - info.offset = VFIO_FSL_MC_INDEX_TO_OFFSET(info.index); - info.size = vdev->regions[info.index].size; - info.flags = vdev->regions[info.index].flags; - - if (copy_to_user((void __user *)arg, &info, minsz)) - return -EFAULT; - return 0; - } case VFIO_DEVICE_GET_IRQ_INFO: { struct vfio_irq_info info; @@ -589,6 +595,7 @@ static const struct vfio_device_ops vfio_fsl_mc_ops = { .open_device = vfio_fsl_mc_open_device, .close_device = vfio_fsl_mc_close_device, .ioctl = vfio_fsl_mc_ioctl, + .get_region_info = vfio_fsl_mc_get_region_info, .read = vfio_fsl_mc_read, .write = vfio_fsl_mc_write, .mmap = vfio_fsl_mc_mmap, -- 2.43.0 From - Fri Oct 24 06:52:24 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 2ADmLCW2+mgA4C0AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:11:33 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:11:33 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Sz-0000000DM73-1qyj for hi@josie.lol; Thu, 23 Oct 2025 23:11:33 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 27AAC4FA7AE for ; Thu, 23 Oct 2025 23:10:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8911C2D9487; Thu, 23 Oct 2025 23:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="kPlctco2" X-Original-To: linux-s390@vger.kernel.org Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010014.outbound.protection.outlook.com [40.93.198.14]) (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 B8DF72D661A; Thu, 23 Oct 2025 23:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260998; cv=fail; b=EaEGFPxZR859ab+fb/c/tmMPd+OPALdrMEHKcui/TdlzlGdbIc75e/wOPb2DXKWhMx8lcOtXy+sQ07qsfm2bvKUoIUmPxc8+si5c+UehSIBYvnybHOWrxXAITiZu/BaVYu6Z/K9c/ZSYUyvzlnlphzP6XbJgOUZQIV6vDzqaziI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260998; c=relaxed/simple; bh=diRxAaxevmsFKR6mRHcV2DsxmWYLeuYl3/yBhONDfns=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=inl9jMvS/RdoFHTF3lU5dTR11RJ2KcYBIfjKH8Ew/ZgVibm0d24Kv3VMnDuaPvkMtmT2N7cPhRHcFI6j/leZw3I4tIWwn4SYe02jvXoYbDKh/qhcwGKH0RzG16ujLM0ioDLJizHtlo4GPnOE53U0i02oVYlsKAYva/rGG5jR/Lk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=kPlctco2; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZelLmdCUcPVYm2VQ+w9Bt+SgEnoZqTQ8gF0GmWmbYWNvc6M68o2kCqyv0SMI+efh66MAuI8Dk9NSrnOYNp9qveszcfBumMZkupYZra2TpCHS7XtWzyoJn+sOaWDfYGHNJJuTFyEJz+yIOEbmGceF2b0dJVz8yeJfjvxrPrED88UiigMbn6cFrHGxwV9FMW6QcQEv/w6XpvCbrSJQMK/pkyXtnw0K0M7g8K5G3CS2CPDajIjHm6cfZ55PQfJC58OPqAydTjWfnPZ315/TFs4dDmegAL0YnhWH4ie3kbZTv9DINLaqTQ4uf22wMerWO9OEBbSO3Z2eXC07N/ktItaK6g== 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=e1wsxYJyq6u5DV19Bt/e+MpCutoNNnKwR+SYOsxzEpg=; b=gw6+cqyKrpKeKZ7FB7h6g9BoR32IMvxbQvvFi0p5L3l/TlIt8nOUNsMzzbsJxmTaPtSfbExrskpHxWCJi6Wae5YL1q4jGJtPWyfDmKjSV4hSqcjXvhNXIE+x0t2Fn++XeWy9BGdGq2EKuQzxklOUY2Y7bKZ2+Hy6DiQtkTBtzbxJ4krc8aF0sws01kE8mqE89GFc5E2mrJJNN5Q4hT5TbN/VlONPosayGSm7/QhhDAsYAa9JcWlwciREwQUGYlNacoNNq0BXHiXB1iuR4ehD34NOC4jVsAviIfg01m9YoL4JA4M3WMRXSswxXKoPTqx1nuOMOOKCa6MJffvti3VfdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=e1wsxYJyq6u5DV19Bt/e+MpCutoNNnKwR+SYOsxzEpg=; b=kPlctco2AMc45w8mEh/QHPNJuPienAh/2W7Ajkox1sYfXyJoY4jW0njwgrgh6b0HiK6s2oE5j5abmn3Mvl4o9CYBHuK3kWzVJ9h8RPsbU3SPRCyZkFdUq9bw2YahHBZLpXBGkOPhItADNncUD/58mHFujDOg53zqf8kZFAM6mnnNbdjBDZLPLzV6XqGauTNTt+vfhp4ZETJKdvIylwN6Q0JU7rZ7w2bzstKVG/lJ2Mf6QM7FGHC56gdP5+25+E2CQ/Bfy3UrD3DO3t8xV9Us/qR6Z6Byp/A2ayIAXa3NlPrQh73G15uLnr7LsCMY0oraT2pZlOI74NSxpH05SF/GSg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:48 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:48 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 09/22] vfio/platform: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:23 -0300 Message-ID: <9-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0093.namprd03.prod.outlook.com (2603:10b6:a03:333::8) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: beda84b5-79d6-407e-078a-08de12894134 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Qh9K3P8mZQufRIF44UjK9YfgxT9z+CLK/eMCxnDu96xu+U+sazYFZzJzRDT3?= =?us-ascii?Q?LwfhoV95VnXlWoRdu0z/chLAWSLTq87N42zVYCVuM4bRGtcg7NWMKdnDeZWs?= =?us-ascii?Q?PIJV9+j8PrtaC3UMNu4qOR5I6wueYzn3mPnUpjxN7Fl+1su5vPKZlU3qjeCj?= =?us-ascii?Q?ocrCMjksTAS8mWnRAWFK0SfXmvbm/3U6mSg3Diu8yYReaOKG4MF49aCNo1Lo?= =?us-ascii?Q?qKlCl8/DRax5lzBQDl4DqcOIGmzDAo2/IXnmNz2GIsNyqw64iZJBuLNeFpbA?= =?us-ascii?Q?lGYFYm9gvaYw6y94UfO74gOyP2R619QYpoXWQgpw/aOuev45yUJZMOoyYFf/?= =?us-ascii?Q?6bhLWd+UWhifJnj/wuahVulu2UsaLRDYtq4nOjU4D/H2kNr67slL37O4+lhV?= =?us-ascii?Q?B92at5TCUJ03yPITu8vO86h70hc7KBn+sJIDuF8iLt8rnpm8B14cTQBYf4G/?= =?us-ascii?Q?e5YPcrGfs8XzGqASdIjQC9rzVd79BfK4NmvVn3cRb5c5bK5pNgX6RZodTUsR?= =?us-ascii?Q?DZyy3oq0FxpYEGa0sejGHyPcAWUKq3Miu8AtAXBSE/IgU6zpHvLIx1jyxtNq?= =?us-ascii?Q?Kr1pNTX1b629lvIn0BAnchrj0t28fy2WX98G58D023C33wCF1+h9lqRMpQ1u?= =?us-ascii?Q?4E8E1ksiBZEz89XNJEtnpsHIQrjnEao+QA5LHYakp+UG4J282FTjGCpDyeB+?= =?us-ascii?Q?uNdRDglciZaK8Rr/dnOTwQ9Vxx+Sap72iFU6vYfB1gyShYBOtu6LlWohBIRg?= =?us-ascii?Q?kZC5b/tDvMOyXHED9AMiuD7PpOLToqXbWMmFsMDBcI6shT1ywGTZbT1ei1hb?= =?us-ascii?Q?4zP36pEVfXlBPZLoXakjsjivKvoA8yfAUorzc1B5tXaQ/eyz+b9xKpRD7H7a?= =?us-ascii?Q?O8zmGvQxt4yiivHwNSTjUW3prMKhX/ns/Puo8DnfcyDUJGRBL6IqO+ohmPFc?= =?us-ascii?Q?4jlFn+UK9BtZjLKMkQCPPy95iaBFHTxgAguLvzgGCLmVtyfGlnJ/xZpprV6f?= =?us-ascii?Q?biM3paB38yLhhrBrIQEoi4Xjq8W4bN4YHDaqEED80IiiVOG+D8Yl6qmeuBRB?= =?us-ascii?Q?pwpFE/gT6ZQRXDf5+rjRb5EEHLnkHGNs9YR+9XKRp0PrQIV1QpY8Gh9T4Tpq?= =?us-ascii?Q?k0C8OnMBe+SBdhRS78PlMj1YadPfu0i4E7vL2bWSuM5/4mUTJX8wMeZLMbG3?= =?us-ascii?Q?LmzQaM/I4+GypTpRHbSz4RPj2mwhs5WA1atgKcUIuAzxuvB2xKCB192IjfnQ?= =?us-ascii?Q?nzKe7Crro1g+okNV+FPNcMskymw2ROXH1JemVtNj+9HYnZSh9MXFJsEl3pt/?= =?us-ascii?Q?YhmkNCDEWiGoSJhBv0hg2/HQMrh8NotyNZCfMHZwYZjxrJfC1ouY9EZHdKie?= =?us-ascii?Q?aLow07qj3359mgvwyxF1EUJ8cmHiQUfNU0vl1O2RyVMuASNNIFal77aE5bUk?= =?us-ascii?Q?W5PMZ1ePWCPadW4/luBOxUtPsHNheZX9eBla3Ly6Gf32+NoBPXEoxG6a8GKz?= =?us-ascii?Q?z3bWadaxRanpADE=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?k1aib11ZS/tDhrIGcmNg1HC7WkF+afIfY5Rc+z+5e7T7IQLcSRtZESPYVWKK?= =?us-ascii?Q?sg8lyHApRCUh4H+oZaMKLw63TqARUobzvsKctQ2SEFeQ91MoSxwR46nRUw2J?= =?us-ascii?Q?QFLuTgAvdKibRVzdSuH6wPO/Y+hC2vx88+gChQCLcKD7jsiLJKNpl4YOlk7U?= =?us-ascii?Q?p1S+TChy/71NGgUcGiQfxx+Ym4chyRaEOWJJziJf8qk+O3EM4axGQEld7Q/3?= =?us-ascii?Q?pha1vC3SDqvuAoIxxJkhmnW2BVwexbdSfu1z0Og4N5SaDP36qwNjTqbvfqZH?= =?us-ascii?Q?Dq2hyGrKCyB8ShBHzmPo5av1RJw6+s3kCaBMb3T7R1/z1hP7yc2Yi4lgVcic?= =?us-ascii?Q?QUiMcaKkUdzaAXtiPV7SGwLaXfODuxqBGVsVJFWSzaPeYWQndaJI9gOUjawV?= =?us-ascii?Q?O6+jTgfKWzkoGh+Cj6do8ETj8te6CpdD+N4HZmVisne4sY1Onjrd6+haGr4L?= =?us-ascii?Q?WaEMfMDTk1mfNi3LgURrOWayZTZDmwomdbKySGkd/GfJBttU9Or35mktlVyU?= =?us-ascii?Q?SEOUntR0DTAZF5ssnHvMQiZzQtoWsAwBJ5p6JPnvKoUXh/xotHSrouHG7XbC?= =?us-ascii?Q?2LS98h/cVzUvYYOw9mVBiDlgNNe3MmEDyxbeyrPsty99wgqGbCIfXZkR7t91?= =?us-ascii?Q?eS3nn+ZB/PqrOvq+Ldw+1ZZcMbYL8OXdiMxJbBgvAFaf+n9VrbVVxbDzlUOC?= =?us-ascii?Q?pyz8mdtrf+6AuFgd1F1anvfPnF8a7RTgg8P6Q0Ty+e2lGRvkfa12dMpIKw5z?= =?us-ascii?Q?UkuPquObzShFWVQP6rK/4Xyzn5bxTA4NT1xh44QdxBJnndny2O1e9QL+1Wen?= =?us-ascii?Q?w4IIQ5yc0/AbHHHp5QbFng0ngkNK4+OgGCnNeEaUJU/HoZx7BRVd3IxHRHFx?= =?us-ascii?Q?P/9mKzqwL73GbgoNJNWydCfdhZ3dY4ZARfl+FH+gGRRDt6wWhveuHeAqmWut?= =?us-ascii?Q?9hqq67HWFPdMd683weCu7bH2FOYp/MxQDeDba/CkOz6TlNhP0BJpRaqDndfj?= =?us-ascii?Q?vXHCClkkGBGbCw/vOOA8g2Mm6r5x7ajaVCyZazrDrBn1pEusRBK8NAs+W2BD?= =?us-ascii?Q?gDZmzdDXLYejvHrh6LmcCa6Yh/MLcbWA0WIFd13srJ78AQXqzcXIYIwPbYe1?= =?us-ascii?Q?J0tZmbXGGgGnk3fUxTm00xwiHCK2lIkQd18IF7qgb+1/AlchfiDmxkmeLqim?= =?us-ascii?Q?UzIDxlvcDRJ/ScVbS2rPG0b0UwmIBvKNC52Y+Z9rH5bLyxF5NsyP0UZeNKwm?= =?us-ascii?Q?LLa56b7Ph3r/pryvnChCkC73H8s0zdw73hMRMpbq2d+86W/gmhob2N0aWzdP?= =?us-ascii?Q?SUrErouTJ4aiMLRy+pbCP5Hx/3wJMNmjll3Swojd56q8tmAebz7ruYAazPzn?= =?us-ascii?Q?JfIX+MLIn/zncDPXbJr/uk6/28N2pbN4xMaDydjMN2dPX79Uny9OY87N8lkD?= =?us-ascii?Q?ZmZIDrqp+ApOukbmN+2wkiHQC96odiVG45LHePTLFc3fcP06AqF7H+15V+A6?= =?us-ascii?Q?t6cfUeUvCRPCEU2aVjO9kK65aJp5yDJ3uk3YSt2tHsOmincTQGwFXME9Qgxq?= =?us-ascii?Q?efg42yuTHfArkemTgFv/AakatVbfEYASoZ2GVYa5?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: beda84b5-79d6-407e-078a-08de12894134 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:44.9699 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fTlbKQM2qDUOV11Ypk7ORPgvAhMN+UO3WZej8uUkzHVMD5cXOniZistVWbeFc85K X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: nvidia.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of vfio_platform_ioctl() and re-indent it. Add it to all platform drivers. Signed-off-by: Jason Gunthorpe --- drivers/vfio/platform/vfio_amba.c | 1 + drivers/vfio/platform/vfio_platform.c | 1 + drivers/vfio/platform/vfio_platform_common.c | 50 +++++++++++-------- drivers/vfio/platform/vfio_platform_private.h | 2 + 4 files changed, 32 insertions(+), 22 deletions(-) diff --git a/drivers/vfio/platform/vfio_amba.c b/drivers/vfio/platform/vfio_amba.c index 9f5c527baa8a36..d600deaf23b6d7 100644 --- a/drivers/vfio/platform/vfio_amba.c +++ b/drivers/vfio/platform/vfio_amba.c @@ -115,6 +115,7 @@ static const struct vfio_device_ops vfio_amba_ops = { .open_device = vfio_platform_open_device, .close_device = vfio_platform_close_device, .ioctl = vfio_platform_ioctl, + .get_region_info = vfio_platform_ioctl_get_region_info, .read = vfio_platform_read, .write = vfio_platform_write, .mmap = vfio_platform_mmap, diff --git a/drivers/vfio/platform/vfio_platform.c b/drivers/vfio/platform/vfio_platform.c index 512533501eb7f3..0e85c914b65105 100644 --- a/drivers/vfio/platform/vfio_platform.c +++ b/drivers/vfio/platform/vfio_platform.c @@ -101,6 +101,7 @@ static const struct vfio_device_ops vfio_platform_ops = { .open_device = vfio_platform_open_device, .close_device = vfio_platform_close_device, .ioctl = vfio_platform_ioctl, + .get_region_info = vfio_platform_ioctl_get_region_info, .read = vfio_platform_read, .write = vfio_platform_write, .mmap = vfio_platform_mmap, diff --git a/drivers/vfio/platform/vfio_platform_common.c b/drivers/vfio/platform/vfio_platform_common.c index 3bf1043cd7957c..3ebd50fb78fbb7 100644 --- a/drivers/vfio/platform/vfio_platform_common.c +++ b/drivers/vfio/platform/vfio_platform_common.c @@ -272,6 +272,34 @@ int vfio_platform_open_device(struct vfio_device *core_vdev) } EXPORT_SYMBOL_GPL(vfio_platform_open_device); +int vfio_platform_ioctl_get_region_info(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg) +{ + struct vfio_platform_device *vdev = + container_of(core_vdev, struct vfio_platform_device, vdev); + struct vfio_region_info info; + unsigned long minsz; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + if (info.index >= vdev->num_regions) + return -EINVAL; + + /* map offset to the physical address */ + info.offset = VFIO_PLATFORM_INDEX_TO_OFFSET(info.index); + info.size = vdev->regions[info.index].size; + info.flags = vdev->regions[info.index].flags; + + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; +} +EXPORT_SYMBOL_GPL(vfio_platform_ioctl_get_region_info); + long vfio_platform_ioctl(struct vfio_device *core_vdev, unsigned int cmd, unsigned long arg) { @@ -300,28 +328,6 @@ long vfio_platform_ioctl(struct vfio_device *core_vdev, return copy_to_user((void __user *)arg, &info, minsz) ? -EFAULT : 0; - } else if (cmd == VFIO_DEVICE_GET_REGION_INFO) { - struct vfio_region_info info; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - if (info.index >= vdev->num_regions) - return -EINVAL; - - /* map offset to the physical address */ - info.offset = VFIO_PLATFORM_INDEX_TO_OFFSET(info.index); - info.size = vdev->regions[info.index].size; - info.flags = vdev->regions[info.index].flags; - - return copy_to_user((void __user *)arg, &info, minsz) ? - -EFAULT : 0; - } else if (cmd == VFIO_DEVICE_GET_IRQ_INFO) { struct vfio_irq_info info; diff --git a/drivers/vfio/platform/vfio_platform_private.h b/drivers/vfio/platform/vfio_platform_private.h index 8d8fab51684909..a6008320e77bae 100644 --- a/drivers/vfio/platform/vfio_platform_private.h +++ b/drivers/vfio/platform/vfio_platform_private.h @@ -85,6 +85,8 @@ int vfio_platform_open_device(struct vfio_device *core_vdev); void vfio_platform_close_device(struct vfio_device *core_vdev); long vfio_platform_ioctl(struct vfio_device *core_vdev, unsigned int cmd, unsigned long arg); +int vfio_platform_ioctl_get_region_info(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg); ssize_t vfio_platform_read(struct vfio_device *core_vdev, char __user *buf, size_t count, loff_t *ppos); -- 2.43.0 From - Fri Oct 24 06:52:25 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 2I/xAMq1+mgvzS4AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:02 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:02 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4RV-0000000DIHZ-2tpI for hi@josie.lol; Thu, 23 Oct 2025 23:10:01 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C49C53B432E for ; Thu, 23 Oct 2025 23:09:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C04C2C0F6E; Thu, 23 Oct 2025 23:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="qUHKzGhp" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 3D7572BE03D; Thu, 23 Oct 2025 23:09:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260989; cv=fail; b=LAtowcirOI+wa/ynzvAsZOA8vqkyJbUi8a7tIPHBJ0PiwcS0QWhsdQig0t4yUuPb0+llSk3Tawy+foGuP4iTvur632DKGSBLw1oFkr8ZQyUdK4mY8PBC5sJ28CQtn2JKiTktRVRpfI7BmERMBKyIuW7Fl2K1MXg07CExokgPqgw= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260989; c=relaxed/simple; bh=7Hi2LIxn2emTIi/pJhS3ejd4xkhDndTbEVGr5OrbGCI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=AuVux3MC1EV0l7IqiJZOMyvYpPrUvr9ygRDx68Sj17GMmgoV9w4X+PSYn/JmDhhMEKA9e7fc4DFRy67NO0ZC3C0L2j7wn8E/s9XSunwf+GToy+EB0wpx0tiIU0YVqlyNUnVGl1Zfk9o9ptOKhPru2kRUobkq8j8zvRx9DkZmEj8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=qUHKzGhp; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DBdhnOMAMvH64M8ZKM/3ByjFJ5XXBp9mbFkqBvRsrvsjwbJHgKz65DUcmvoXrxN8K/SDhEDNncbwn9xogdok0BRRtDvBCCXGSdGR50eks3qV6h9RjEsGdKMhQxaQO+NACqSscZfJ3Em9apeSjh4GxtRD/73S8YdYmxULO2xfYsYbZw8Y0xGzntC+q0EeLllseZtcTjjNUKrn7rYXd9gTHFYeR4jyiD0hgkerMndWgwB5ZKFWSH7xuI/EGd1YCxrAEpT/0+FRebwScE89oQAAlY8Yy7on99oA/t1Jekrnxsrdc3RHsZwqUxWAlIy1yi59WwHwyNyoDExS7dYrwJcLRg== 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=iViAo9wQSzlqc7SdoLa20e/ExoCb75sZ3Anxv1LflPI=; b=dpd8mDB0Q+DQC76cr4OqpZ0dGsddhrGrtAK9otDKWEKbuS0nplvGfY3l30skXJUe5/0tohz1ZmnNbjvSN76rJWuGfU4vy7RYqKxHku6cxy2kzlUJfBmNrwerbb1vp52S9WAhfTr+gmJHSkLjV/gIy6QhtGP4Kht5yd2ymNJuK533mXF6pfWyzAK2RmKeLMQgzMgTO+FIgB4EZhQsHGqJmx2/AIHUqCY3ZNrJSa8ar1v8GWDLhyE8xnwSBoxEl80pUsIOBkSnbeTc/638PzBewYnNf6iYaVcxdhpkTUL7MOm6HrZ2mlN7qBW3dpLG/OSbQDZovKfwYOWTtktiN0BBDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iViAo9wQSzlqc7SdoLa20e/ExoCb75sZ3Anxv1LflPI=; b=qUHKzGhpfQTuYxjOEpE7OgysEaMppBcC7FmUvq68jj3NKwDQgEjzigCPs5fSu/F2NBtP2CGyHeGSzzPRbIxife+EBfBXeZy918MpytE666G5GPnEpISvJ3gJkRDZfrkBCCF5GhVgl10tVw8GZT3Fx2Bhh6y2aCppVqChIUbRocsxpZ18+reEeo/K9YyxvACr/Tn5iWkFRJvJg9Fj9yFr6IJK0M1ZrnNOiCh9jba1XDiwfYUFEu5Hjqa6KVZYGcVZr2MaJPgc13u70FvwUh7pPkxlTvuyrtIJlT8GJYbos/QgYoN6LCnzr/9NyRHVdI8qSpq7Wtui/0hWL/Qc2e/LEg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:41 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:41 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 07/22] vfio/mdpy: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:21 -0300 Message-ID: <7-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0144.namprd05.prod.outlook.com (2603:10b6:a03:33d::29) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 2d7567a0-0036-4111-a5b1-08de12893dfd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?eWwMymNUdd0bvnE2WGYVsjLV4n2zcJijHsv9a+b5oOR0bny3Ur6JTE5JSJuV?= =?us-ascii?Q?9wCUgVSRB4a4LD62ic5YDy6ozo1b43Ne5gwdDJd3SqnZGjov5S2wvdYoRc2i?= =?us-ascii?Q?x709X31r7g4NSvX+YYfDll1K7zeomjvQG2LWPEwV7tYY0kzeNY0hIj4QY+hg?= =?us-ascii?Q?XWXqer+5N6I1y+F6UDWXPYZSlflIxLEkqMFbumJENGAG8Q8wNUW/NYme9yrl?= =?us-ascii?Q?u6EH+jzGV53yot5bDIx6Cwu/FJHhlAaUy44zkebjq9sjamvThfavjVQGDbFs?= =?us-ascii?Q?fLJvPvOkMfmB62gPGBOLvpKzAWxhJq19VJxYNj6MYRjPNUB0ZMwZriMs9yfS?= =?us-ascii?Q?rvjyF3HIbMqB/jh77xYd5HlH556R6XJkyQPSPACK6lRkViTH9nKIO1dY82gz?= =?us-ascii?Q?0MEcs6qWB1+TluT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u4?= =?us-ascii?Q?sRbWvPXl3ZWyI8kZcckOwl0o1LeMjfETnb44ui5QV6kEyQfo3GkMzh9fyBCr?= =?us-ascii?Q?uwwEvLw0Hbf6CzqV2LCgGO/+SwF6U2k9688BTHx4txJJcmCcQ3GMTf/St5nP?= =?us-ascii?Q?Dbln5uQlwyA1er11hmhk84Fy89vJa07brS+2xt1XOS99zlMPqA65ZqomXLZQ?= =?us-ascii?Q?ywu0n03bffvwZpo=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?BfbbVtswwcBdtkQ98hpD85cl8/hZocDuc4ON8eMR1Ul4vEqCRD+zKQMU6sLq?= =?us-ascii?Q?upcmwa5ZPEjagRN+PVVP4/tcXBTvlagfcekG/Ir2/VcXG/9WfRRJMX5Ek1h4?= =?us-ascii?Q?Bwtb7x3O0zHYz9MEdY4kXgaaKPAg1V+gaQ7DMJoxDGjxY3cp21OrZrU1UEiP?= =?us-ascii?Q?9yT6PmQp9R7hoVkxvT9OEXwSO2cM1oOUCeDTGtQB8UYmkHulLZ7ZTK99vcgN?= =?us-ascii?Q?V+sjiW6ej2eS9Gk22l01OUipe74T56fdMpzOHeicyEmnxSJdhjdzaTNMGGx/?= =?us-ascii?Q?eHPovAN55GgEPgQXOe+pOdFcawJawjDfo8wGIqJTCi7gektdQ5i8PoD+KKtr?= =?us-ascii?Q?sqLYquiYDzXYGeB8yVm3RayHKSbYvlUu0OyMhuOH9X6HzxHWFvl7k5MZECji?= =?us-ascii?Q?4WLnq95UfEsq5iSFII14ZSuBrmH373AK4CT1WG/1bqter66Z9nRpxGBA36/n?= =?us-ascii?Q?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KSUATIn2tned01Bk6?= =?us-ascii?Q?kCsEl5pI4dmRgFT9UtInPQXiNoJ5Q7SXx0szujtws1uy5KWmKQReqj3zD3IV?= =?us-ascii?Q?637PiVnjimv6s25JWyv5D1bAlyQmaLGhjAvhLHWMFf45h0YlKJ/ilkvkZ3Rm?= =?us-ascii?Q?HJV8PTFUWBXo7FyVh57mRboxzFSotv+oS/Rvk4mwr2oiQl8rsrYXjv94L5dP?= =?us-ascii?Q?TVa3k5leAWcC0NCT38So+q3Q2iwaFIT6zvTdwNfQ?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2d7567a0-0036-4111-a5b1-08de12893dfd X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:40.0155 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hbdca/gtmBdGE2WXZHPyE66JS7hWwP8rFrE9E3d4XKH6zJg0OaYSdXYLXOfGjoQb X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of mdpy_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- samples/vfio-mdev/mdpy.c | 53 ++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/samples/vfio-mdev/mdpy.c b/samples/vfio-mdev/mdpy.c index 8104831ae125be..0c65ed22173862 100644 --- a/samples/vfio-mdev/mdpy.c +++ b/samples/vfio-mdev/mdpy.c @@ -512,6 +512,34 @@ static int mdpy_query_gfx_plane(struct mdev_state *mdev_state, return 0; } +static int mdpy_ioctl_get_region_info(struct vfio_device *vdev, + struct vfio_region_info __user *arg) +{ + struct mdev_state *mdev_state = + container_of(vdev, struct mdev_state, vdev); + struct vfio_region_info info; + void *cap_type = NULL; + u16 cap_type_id = 0; + unsigned long minsz; + int ret; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + ret = mdpy_get_region_info(mdev_state, &info, &cap_type_id, &cap_type); + if (ret) + return ret; + + if (copy_to_user(arg, &info, minsz)) + return -EFAULT; + return 0; +} + static long mdpy_ioctl(struct vfio_device *vdev, unsigned int cmd, unsigned long arg) { @@ -544,30 +572,6 @@ static long mdpy_ioctl(struct vfio_device *vdev, unsigned int cmd, return 0; } - case VFIO_DEVICE_GET_REGION_INFO: - { - struct vfio_region_info info; - u16 cap_type_id = 0; - void *cap_type = NULL; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - ret = mdpy_get_region_info(mdev_state, &info, &cap_type_id, - &cap_type); - if (ret) - return ret; - - if (copy_to_user((void __user *)arg, &info, minsz)) - return -EFAULT; - - return 0; - } case VFIO_DEVICE_GET_IRQ_INFO: { @@ -665,6 +669,7 @@ static const struct vfio_device_ops mdpy_dev_ops = { .read = mdpy_read, .write = mdpy_write, .ioctl = mdpy_ioctl, + .get_region_info = mdpy_ioctl_get_region_info, .mmap = mdpy_mmap, .bind_iommufd = vfio_iommufd_emulated_bind, .unbind_iommufd = vfio_iommufd_emulated_unbind, -- 2.43.0 From - Fri Oct 24 06:52:25 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id mA6iAhy2+mhVIi8AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:11:24 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:11:24 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Sp-0000000DLqM-3JbU for hi@josie.lol; Thu, 23 Oct 2025 23:11:24 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 44025504F27 for ; Thu, 23 Oct 2025 23:10:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B58BB2D7813; Thu, 23 Oct 2025 23:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="JVwyGwMf" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 09CEC2D5938; Thu, 23 Oct 2025 23:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260997; cv=fail; b=OR+q/58OslEpI4LORorXXrqwj0u8ptRDH7o+V3TQ5JcJGDe1mT2l6loIMS7wnSwjpzjkc4qf6Df5IRke6r8yNrghNw+do4Afmr/hGEEYXTCGQuxSRa1FrktJ33TBGuiLNjcAIOw/fjSg7RGCeGWq2La4Ve1PPBaIV06yNEJhjVc= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260997; c=relaxed/simple; bh=VZIGLvqAvIfGrQ7Si/S32HOcjWk75unKhlaJIJTLnIQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=l6fTpSsA+f8hN5TCBmu16rnO2U/I2TwtNI0r+ejhOa8VToQAptCpfnbm4YN7XAodh+zUf1p92QFWCZNxKB5jk9EuWu/MukLWtWKVhhs42t5H7FX/Qb9rx1NSAtsiVcfkQD1IGM9laxNMXZE3PgvdW6kOO93qWWUweIyv5fvAmQ0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=JVwyGwMf; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gMjIzcnUhNiYsZ+hL18/OkMKmRowwcXPbRpG3F+HfXAYuncthvl2MuaNg0DsQ5B8dIWpKn3U9BIIFHkCN1wNAA6SMJdcx/LZDDnK+uKcP7/FoUM5Zmu7FLFEjtkp2GsZZHdjDjUj5h0zqkklUGXudl2RFor/MWeTa8hV4jl6M0JD7w7ugftApExoKKqQMsJFdnzuMFmyFnV1qGxv9MUm2Aqz5CzNWZgrVZLPS64kM0qOstbL4CPmOeZeLlvK088ic+B2xCI6fWbeSTQcHDpw862PLv6AbSWLAhtWKKp/J8UK66SGOnuaM4XPaqMrIwrNhUYZY9am69yTSDP/18Bv8Q== 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=S1hKYkCyk0aC9+a34lHsyRgH/PIXbPe6fiJ6pJ+us6E=; b=W0adusaj++y8Cydt/vQD1QFG0xH3SQmYTh9TF7lrTD+d9mvIKoqgCWP5+8rB2hqndR+Q+LEGjCBgil5q0tygOy+gIOKM9AczURxLujAHZQSkeIsXXfSMDKq8mdj7BEuCk+qDl/20WuNxHBtjPXRnT00PTgTyckTaSfLBRgSQqX19cJ8Y6Je9HhguSN06yHZxSiPQU2nD/vv/A8b9loOcsk5Tgm0y7Dkp1gqnQ9fvyU6Ti0OUTMbvMv1ON9NadCCqybbqS3v6goGLzlrJNA2bj0NodQsfSfzOGric6ioiqwenMLXAR6nLa8vYgMjl1hixIismGcjUvulLCdku+5JcnQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S1hKYkCyk0aC9+a34lHsyRgH/PIXbPe6fiJ6pJ+us6E=; b=JVwyGwMffwzmh1D3oyk7trJn7w57reK0GZRGYlUG77apjHmqc6Z2oS6+MP8Pysr3EeChy4xBWN2yll/E6mLDEvHKgC14iy2vcGep+6U201Aj3zdx9i6Yrd+VuuHf3PoQxJGhahNOlZk6XXuvH2Ti4uqMN5nGjo7EJKexwzW5/EbT/v33HxUZab6kVXEO6L35nx9UK3lTg/N/jd1p8DC8YOwHk6AIgbl6KM3F2BfFGEw9UmE4iZS20tH3Sk+mKk0hHhlx9Yx1Jr8XLm1tjkcvFnsVpkMGQZNRZeAeUuXfVenuQpye1zFShdakIMad4plh3KyFgUmtq+EV1cJSu0N/yw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:46 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:46 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 08/22] vfio/mbochs: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:22 -0300 Message-ID: <8-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR17CA0035.namprd17.prod.outlook.com (2603:10b6:a03:1b8::48) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 57393e4f-f3d0-4cec-7642-08de12894121 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?+YII1qu6LJ/GFbPi0omcZdxmL9QIrRkpgyVSKJwWuA92280EESG9OK8Ix/en?= =?us-ascii?Q?g/X8pCOlRRTDSz9BIa4cfPizQ3mR1mD2Fyv+sPjBTA4YzAbu95qKghTJNwoM?= =?us-ascii?Q?LQ/ZsTe/y/7/OY4xrTj6wP9OP9TqQ+3gaOwGGhEP6ewxOWuCjfTOYqGbj7PL?= =?us-ascii?Q?SgI25p1jrB5n58L84ssYuNAa4v5RebkdAq81lLqNSI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yCJFhKT1eidM7C8wpSlVK2uEUf9aaqWirmRoY?= =?us-ascii?Q?a5O4kxbZ6HWLm9FDFhIeknPYnN/h0G3FF//JorCGAyOZO8WsXab1TGGEh/j3?= =?us-ascii?Q?CKzBIN3EaTHSNyfGqc4FZdUUZRqY2Szik2suKzwhpERtFdJD1fxBs4irfF0y?= =?us-ascii?Q?CCZZi/6hJomWSBzf9lUo3pl7upcoA7cH5WivvqqO2K0Tfl5CJOCAf0XbHasy?= =?us-ascii?Q?KXkBcnH0Vx0glf7dnf+3qnBb+m7PJvNzsb03/juvIoRZfQXSaFEpb0E2ZlyT?= =?us-ascii?Q?AoOzdAhroaELCuHCtPWID669DDbJs4SRlrQMwMOwcTLnXnfBiFBSbjRbmAj+?= =?us-ascii?Q?7Is/OvHKMlCUkvRiqd/nVjSmRRo+QxzVJReEsUnBbmRrbxLFsuvwwzTbsliy?= =?us-ascii?Q?2c7+nhK+qN1oI6E=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?AVh/CoT8xFqF9oelJgcz1uJ8HOdn9532xWlN/MH9M9Ld4+wSNYxCluwZ/KSp?= =?us-ascii?Q?V40hcT0wyjBs8eKUsXMXCRi0nWKbhnsvj+OH6PQpAw9WKciTbbqSwHTarUTb?= =?us-ascii?Q?+tD4hZp/slaElMNe3xGWGrbKZgg7ca02Tz+V1Wl8pnZt9fhefoFqJ5g0v5In?= =?us-ascii?Q?9s/gfLuSbpDI5mk98s0jxUKNjidVVoA3j0HkBvEmnYeiuW0lSgqyA/09h/8n?= =?us-ascii?Q?wRyoW95xar7vLyrofNXILZl6fsD/oN48pTVzW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ODsRwbPnq5cBMIRl+zEYnIQD+r2oM3ue74hdCtOioGBWwOK5SwTJiy/d44?= =?us-ascii?Q?WLO3/nqGzhBbGWA95xH3jGB9/VyIhGQoH79z+VZo5QNZjM90+uWcp+ZTDMzO?= =?us-ascii?Q?ooECwoReNQGPX/qVyUURmGXFlzT0UiGRB/oDFJfHynVl5t1NqJV4KG5d/Xsg?= =?us-ascii?Q?uaDBzgU8NpVTl2pnThX9FKseQIwIreLoBsV9bLg2FmEY+88aMbe7PEZ6fFZQ?= =?us-ascii?Q?Hzjb8dYTloPqRwxhh9HoTKkJRhY8RZCi0tab+l80bLdn832/GyiMrlVFWxGP?= =?us-ascii?Q?J59H3e0lRs5w3dyca1QjuS2fHlFzOT/+z2f4Hkm4aOmSYhmjFoQ4Xt0MTn4e?= =?us-ascii?Q?VykTB5L1rLzgj1Z+h/sW9srtyoU2/6b1+YdCJBCmbmJVvTxlnuLU7zAAwcnd?= =?us-ascii?Q?kbj5MBWm7O7Zx8G/d8+QoyEZw0BUmCiUPIjlx93o?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 57393e4f-f3d0-4cec-7642-08de12894121 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:44.7965 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: P57r7Ml9o1VJLBVbZaShKhdOk4DiBkDcAIgds9pKKVtVDyU7Sy8LP5KkWjXD2+Yk X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: nvidia.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of mbochs_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- samples/vfio-mdev/mbochs.c | 56 +++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index 18623ba666e33f..7f889b31fa2ce2 100644 --- a/samples/vfio-mdev/mbochs.c +++ b/samples/vfio-mdev/mbochs.c @@ -1185,13 +1185,42 @@ static int mbochs_get_gfx_dmabuf(struct mdev_state *mdev_state, u32 id) return dma_buf_fd(dmabuf->buf, 0); } +static int mbochs_ioctl_get_region_info(struct vfio_device *vdev, + struct vfio_region_info __user *arg) +{ + struct mdev_state *mdev_state = + container_of(vdev, struct mdev_state, vdev); + struct vfio_region_info_ext info; + unsigned long minsz, outsz; + int ret; + + minsz = offsetofend(typeof(info), base.offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + outsz = info.base.argsz; + if (outsz < minsz) + return -EINVAL; + if (outsz > sizeof(info)) + return -EINVAL; + + ret = mbochs_get_region_info(mdev_state, &info); + if (ret) + return ret; + + if (copy_to_user(arg, &info, outsz)) + return -EFAULT; + return 0; +} + static long mbochs_ioctl(struct vfio_device *vdev, unsigned int cmd, unsigned long arg) { struct mdev_state *mdev_state = container_of(vdev, struct mdev_state, vdev); int ret = 0; - unsigned long minsz, outsz; + unsigned long minsz; switch (cmd) { case VFIO_DEVICE_GET_INFO: @@ -1215,30 +1244,6 @@ static long mbochs_ioctl(struct vfio_device *vdev, unsigned int cmd, return 0; } - case VFIO_DEVICE_GET_REGION_INFO: - { - struct vfio_region_info_ext info; - - minsz = offsetofend(typeof(info), base.offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - outsz = info.base.argsz; - if (outsz < minsz) - return -EINVAL; - if (outsz > sizeof(info)) - return -EINVAL; - - ret = mbochs_get_region_info(mdev_state, &info); - if (ret) - return ret; - - if (copy_to_user((void __user *)arg, &info, outsz)) - return -EFAULT; - - return 0; - } case VFIO_DEVICE_GET_IRQ_INFO: { @@ -1376,6 +1381,7 @@ static const struct vfio_device_ops mbochs_dev_ops = { .read = mbochs_read, .write = mbochs_write, .ioctl = mbochs_ioctl, + .get_region_info = mbochs_ioctl_get_region_info, .mmap = mbochs_mmap, .bind_iommufd = vfio_iommufd_emulated_bind, .unbind_iommufd = vfio_iommufd_emulated_unbind, -- 2.43.0 From - Fri Oct 24 06:52:26 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id iKAyE+O1+mgPOC8AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:27 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:27 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Rv-0000000DJJx-04YD for hi@josie.lol; Thu, 23 Oct 2025 23:10:27 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 05D9C4F7B2C for ; Thu, 23 Oct 2025 23:10:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E517029BDB4; Thu, 23 Oct 2025 23:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="DU8IJIzA" X-Original-To: linux-s390@vger.kernel.org Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010014.outbound.protection.outlook.com [40.93.198.14]) (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 2D4F12C17A0; Thu, 23 Oct 2025 23:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260992; cv=fail; b=a5qldiQuxsjnCRHt2bvYRkNltBOkyICpsTwLaTm0B+DCY5NjP+F1RGhkLD55L/s5tLdRnL1GF9mehtAfm3AMrL4xhwrKd8qIXQZSd9KfIK2o9uirdgdoJNMbkUyg6W05tRuwOj/XM89VmGLAHAWmhMXFU+OpJhJT8xQ8azO8NYg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260992; c=relaxed/simple; bh=X8noU/TIjWaQ39G4jHx8rmvtz0UkrL/zVMVR46ISYc8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=XtKmi5DRjVgX22azt0e1SZKOjM/D2Ww4+qy8/Yoil8Z2QSQFnNxnGXtIKUl8Ak5uGrA6uJQk2BiwftxQ21+atx4iqnmZn4QLbdl92gdX3i33tobDBBM2khACXflJXZtfx5pThl1vVWgHAjXW1ax8iBqTgflgha/g1IQ7irO+tXA= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=DU8IJIzA; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=a3auJc4Dba7Fwo167oWkvspusklrJBscYQLBKwfnxbb0fI1+mI0E1upJaeGoiu1mr4e1NCeYO2FzwEWkVNH+UPyKEnhUkPFa4X2VazUpzanWzSHeEjyCpDVlIb1mrkJUDFj3RwE7Yp7u3sLKnbBhBTV2y5wDMOstHwTHSFaQhvcO+Op2v+kmlCgd8o6PTNdC4yFkh695TQm9dkR4K9PCZ/xkJsB/gsHSiqCdTSP/rXlbf/21CcXdrk+iR2QPaO0Aude9qlS+kTlM2z/YbDbSyy0PBNURAxmdzjjtcSUtOm+hEe2NRicJwvybcjRV5Kb/VaN58feBf6NlKgIx9ddFAQ== 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=/LchlEJeK8+F/s9S9aCILcwXsGCj0q583C3gdbNEbBE=; b=Sr8SDszMU1znWkVCIzRee1/oL90ujqhkV87AegzwM+iZy/fg2VzRWZA40U6oJXYzVN55UPOB1LskUmsyDxGM37RGRDGiJmkCJqj2GQcQW3g/FSCDVTlFzMZ1TG0piR22+CjH3hrCuMT4HN3K4r+jg3L5I2bdiac0+YZ31UP5ttAF2lIfk7BnG4Ct0CluJJrNdpgQSoZUitjBlJrmx4+QWWu/cVywW7SBHzbDwXTIqW76k94YKG/drmADjxBFofLdFHYfAYdyVK/AVthlt2+q61BvDKFz/EoHqt/Kq2dSUlh+8mCdLr7T/7LOkcNWDxGY+hFBVcMb8EwkJsPM24qEwA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/LchlEJeK8+F/s9S9aCILcwXsGCj0q583C3gdbNEbBE=; b=DU8IJIzA5F+oVeC3mSvJJrV0idB/d0YjutGDjbijqxpY7S2uPfJZRr5BF57iw7/ievUUiHVTse92FW0Mu2gCw4d68bMkAvF9YRA3YE24nnnCWzLUdN3Itp9Lj6AXrrL5ByRVN6NFrvdpUtNYfIHXqvK8h4VfQdWpFz5IEBBCNCSrEEjRyAo2d+WWsvlvBxmqrLoc0nrQCepdgL5mFD76m/iGC8rkCC/ZWDHrAFOyY3972+rGo0zzNgxslQFWK/xLzXp3/0hYY0WKY5vAgFYUmtT6QZqwGTVpnVjNJIC/8yefEHb9QBVwuaq8OmpPdd3HhXE74fBnwahSQJ4Ofdh+Fg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:44 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:44 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 06/22] vfio/mtty: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:20 -0300 Message-ID: <6-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0147.namprd05.prod.outlook.com (2603:10b6:a03:33d::32) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: b26fe1b4-ef6e-46e8-faf4-08de12893f8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ruUMWADbi94ljrBea4+3s4yEPVmRBv8zuZbefi5LH7SWvaYm5mGYfS2Czr6a?= =?us-ascii?Q?eqe50h0EInD/Jhv7/Wc1ojKjvddGtwKpSoE/qIp+t9ys3Euj/CQASwARauu2?= =?us-ascii?Q?NJODCvheWJek9Mv2D/2/y4Zs1oheNI+R2BNy+qo5kJyywWqPJjmJDHyrWmKd?= =?us-ascii?Q?IRod/7UuiSbx+dllvxveVVS08qNVfW6xLIDeXze5EFvcF4MoKsQwkBcFBgvO?= =?us-ascii?Q?kORCsWIPFoBSgsOlQOCVF5NrdupLcIC3iDczDEDM2JGRvYFNt2xrZ0WYSrOY?= =?us-ascii?Q?4L9GlUdW3LaKbxmRPMnWgUJpt5w5N07X8yZdG4AWgTxxfH6K3A2+1ySDaOnT?= =?us-ascii?Q?GlLb1prk9hyPAEoBXWbA6yz5bSIvVMUxt9gtFCK+iVlptw/SBZEfsUe0PsTd?= =?us-ascii?Q?g7tBbg1KlUX/1CvczCjBJUzBS5PTywYY4vhMsnJtCd4neSgD29u1tcaXaRCq?= =?us-ascii?Q?WXXmyhcycExDtjDUhXDZ9/GNCnY5hlCyW9YgzFl2RfsQQ+MC5RNQ2FFg34b8?= =?us-ascii?Q?wh9XLRK6THRp1YGKE9LALJtTRT314LOEARGWtsqL5A2z0t6JfrnfyfjZyTd7?= =?us-ascii?Q?wX22bvIuaCtmJaGFNJVsIdB10rVpWeQkD+LogL/7O55BZpHhM0ZQe075+SfB?= =?us-ascii?Q?DqxNSOzD+iWrXWLgOZVMEeaKq86n942Z8wkeFzIDMJeKp9g1dh0/XWXdWddN?= =?us-ascii?Q?QUxQXRTZIDJxsDGIIIyug48hZwXL8Y4f/IKNvzK5SsHpMO41GIY4MLCEEgiT?= =?us-ascii?Q?yjwwYyoZDOowuHj6qpsm74KdV0IQbuW77+3ufS/g1gY735TCbXl5VLdx7+oQ?= =?us-ascii?Q?c12zx4VyNeYo4AT2iGWNMgHSJlVbCLuCoy26uPgWEBjdRZEG06Bh8FeXx4wZ?= =?us-ascii?Q?8cA8DU4bbA92KG/o3FCuEnD6GtMOB0/9WYxBbGmL2ss7tGfHVXkyWrPnPujY?= =?us-ascii?Q?htDzdvLnATGn0UQhShVh7PoK0F280mRy6wznejCsBoHo3pF9jR67ZcU+rv4y?= =?us-ascii?Q?4FmmNAmXpCp1V7OmvCJhShBMdh1QLYgqgrKXVOkYrLQAdftD4U/3dUGWSMtP?= =?us-ascii?Q?eHfC/59Xy5OzMgRGWFBG4f2Rl3we3zEUznwWUJfKkR04Bu4jEUXQcMJJbMeL?= =?us-ascii?Q?EDyES0kSa1gWtMCTECLPzvwBMThYHDh1nCHzGi2+R3V556xKQ8rAPuSMP4oC?= =?us-ascii?Q?ffPneeOZ00UJK25gTFJfgOiwn2+1aOVO/tBnDcnjp25vS48wTicm8I2fpJit?= =?us-ascii?Q?pHEhnGvb6XS6nhQDTtfBpQBIAMWudailRAGFtd8VjQfoturR8Vnm7ZLve6GW?= =?us-ascii?Q?ATpkdQUXr2pMAu+RWvp/2b+YsjC0dcW3EwAMe1vHBSEkpTwo8gZE6M3xKbR/?= =?us-ascii?Q?Q0GLtN1gjxTM/ELelS2MbrA4O+sXVxGlPZjCaPVIIf2jQQSJMtGqNpezpLh9?= =?us-ascii?Q?p8hEaLiYFs9Fcbz6bC5lj97qx0UK8aTsMrVY+KrwEedjrJUTBrLQCYPNiZPt?= =?us-ascii?Q?k/BVksYxf9jCJ/s=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?sDXrDVABqEY+LUit8xHCZ0ktZsgPLbfuCKnmXG7I1Xc8cFkLZf4Kbov69qwM?= =?us-ascii?Q?E2vupQcy7T7oDMCidpNvJbiCRGannlztOO5N8v6IkpAqikJ60bpQ+NDiA8Rw?= =?us-ascii?Q?YM2sfJ9jIj4HBsRF564OzCBAjCzP7M36AbK12/cT8p54aR1VwsAYqbUsC/n8?= =?us-ascii?Q?RYeD8mxjUL5sahSlBAeQDFykbNrZ+4ktKbX9FzeHA7yMpYF6YIckatHmtduv?= =?us-ascii?Q?w9TA//QqPekpVaqS1VhMauBHMaTNM4mT1C8inUNoYS2oXmx6vXRKfN2t1vEE?= =?us-ascii?Q?zYlQbGTsas5ria2ZQ7+tiGSgwxaBh/7FClNk6kiaCHySsbs3yXDzH/ca85Q1?= =?us-ascii?Q?M78YnxkXeBbQjlBZh7/RFM8QEsIk8ma0QMnYH1a2kib1/ogJb0SiLnG8WKfK?= =?us-ascii?Q?zrXawEvtYrNzZSlDWkgZaUijEFm19PdyLTYk6tit4ynVN7MawDG8OW+rkbsM?= =?us-ascii?Q?FUh6Kc0gLSHYymPCpVkHYSlxUSr2+h50y8XkByn39HA5P7rZUNIOHZj1TtFt?= =?us-ascii?Q?/1LsMq+sLbeee8XwYqFg7mkQuDOBTEt43cRb1555N3ChX4j3rpWnMtoRcsG9?= =?us-ascii?Q?Vh1HLkxspa4d5hj+Ck8Sr5REqZ9Nem6WX1K9nW2YtjzYFnsGQ7ZpIlXxsuUL?= =?us-ascii?Q?pCxXSeZe+a4POYNWsCKpr3vKPhyC7FDaOXye7AM/QAGLF1z7Q6Yu02hPHyd3?= =?us-ascii?Q?zHQRPBQyK0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X-MS-Exchange-CrossTenant-Network-Message-Id: b26fe1b4-ef6e-46e8-faf4-08de12893f8e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:42.2204 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ko0xMG6OuFa2fKYI0HHtTQaQ3OljWjp2TTQi2uiqiNsglmjmIklGI4SbxUcmG286 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Move it out of mtty_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- samples/vfio-mdev/mtty.c | 53 ++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/samples/vfio-mdev/mtty.c b/samples/vfio-mdev/mtty.c index 59eefe2fed10ca..b27f9b93471bc5 100644 --- a/samples/vfio-mdev/mtty.c +++ b/samples/vfio-mdev/mtty.c @@ -1785,6 +1785,34 @@ static int mtty_get_device_info(struct vfio_device_info *dev_info) return 0; } +static int mtty_ioctl_get_region_info(struct vfio_device *vdev, + struct vfio_region_info __user *arg) +{ + struct mdev_state *mdev_state = + container_of(vdev, struct mdev_state, vdev); + struct vfio_region_info info; + void *cap_type = NULL; + u16 cap_type_id = 0; + unsigned long minsz; + int ret; + + minsz = offsetofend(struct vfio_region_info, offset); + + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; + + if (info.argsz < minsz) + return -EINVAL; + + ret = mtty_get_region_info(mdev_state, &info, &cap_type_id, &cap_type); + if (ret) + return ret; + + if (copy_to_user(arg, &info, minsz)) + return -EFAULT; + return 0; +} + static long mtty_ioctl(struct vfio_device *vdev, unsigned int cmd, unsigned long arg) { @@ -1817,30 +1845,6 @@ static long mtty_ioctl(struct vfio_device *vdev, unsigned int cmd, return 0; } - case VFIO_DEVICE_GET_REGION_INFO: - { - struct vfio_region_info info; - u16 cap_type_id = 0; - void *cap_type = NULL; - - minsz = offsetofend(struct vfio_region_info, offset); - - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; - - if (info.argsz < minsz) - return -EINVAL; - - ret = mtty_get_region_info(mdev_state, &info, &cap_type_id, - &cap_type); - if (ret) - return ret; - - if (copy_to_user((void __user *)arg, &info, minsz)) - return -EFAULT; - - return 0; - } case VFIO_DEVICE_GET_IRQ_INFO: { @@ -1949,6 +1953,7 @@ static const struct vfio_device_ops mtty_dev_ops = { .read = mtty_read, .write = mtty_write, .ioctl = mtty_ioctl, + .get_region_info = mtty_ioctl_get_region_info, .bind_iommufd = vfio_iommufd_emulated_bind, .unbind_iommufd = vfio_iommufd_emulated_unbind, .attach_ioas = vfio_iommufd_emulated_attach_ioas, -- 2.43.0 From - Fri Oct 24 06:52:26 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id KD6XLwu2+mgA4C0AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:11:07 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:11:07 +0000 Received: from am.mirrors.kernel.org ([147.75.80.249]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4SV-0000000DLK9-3qlO for hi@josie.lol; Thu, 23 Oct 2025 23:11:07 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C238119A284D for ; Thu, 23 Oct 2025 23:11:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BDFA42D8371; Thu, 23 Oct 2025 23:10:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="GOAr9oJ9" X-Original-To: linux-s390@vger.kernel.org Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010014.outbound.protection.outlook.com [40.93.198.14]) (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 DC4292DC32A; Thu, 23 Oct 2025 23:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761261002; cv=fail; b=AhuCCUxFmviF5Oz2i7+O3ACkpZXTB/6rJjABEPKJ/uBqFo+yP3dKNcExptUWy0sDjtmPurXJ2logPA1Vh4w2+HwKhiJ+32gLxU9pddRAGehXp59eYmeIM1yAY/l5098FtLfnYvjESPMM5BMWiEsFG/AV+G03rEtGPQ4SoywvwEM= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761261002; c=relaxed/simple; bh=be+HqwmUDWdMd8J5urE6yGUux7Wp5sKBBfTAXhBdR9M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=m9RUXE6lc1ahjGo6J+3wTnqsDoI2vBF1nPSdKgWI+giJh8QAyq1YSbo4xzxp8EAwbIWgeClP5LW86OjHsS5QctElFthvD1RpyyrTi00u6U9lSbFaZjfj0taJOzNI07avgqI5D/DAx66IAiw9wXiZ50/R1W2c3Jj9csskXhxIjC0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=GOAr9oJ9; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lc8R30c5r3FnZvxc88cRBdszXyN1VpTUKyQ3FK7imap5uTT/XAvKVCuA94SYHiqmj/+lTloOAAbQkFKNkn/DUi9T0jeuz17o7lOVV7iLUahFbI/utG/rC1tc6MUUrgiolBvImdSZ0Xv+//8en2Qor7IxB/vJ0zV6YosYiVeYA0jzUDEDneOBeLu5GXEoZDYnf0kuVpeYRBUmAiQ+8ql5pSotfUo+Mm1Ka8bb0tdVscfzHl8MPuQuxsUYCZTBZQWyAiuT5o+vPsYmqtEU4aCTH0grG07tlrFiNBhaV/3u6k0llC4L3wuyLFhnB5eF2lh+n55cP8pZzRNJqOfBJUgg5w== 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=ear7i+XsXwo7L0PT5joVKtctuvJknPshYF6WXWJsQWQ=; b=i1ZRw9+/We3l5EjrtWo/TD2ZCz2LDlWglE6NUpNuRUTbBhacRbiyL4RH/taLuAD0i8z7gbsLiqQ5rVDFmTYMTHfSLX+tpWCJMXCNmG/x9YaIxEF0VPhO1bYih7ARJxgOVnI7UGSnYUHqYSDNGfkCm5pnaAQCHsnIdt2vwzvvTFCAZQWv0wXexYYxgOWfVAYw4NUXLcM4PHUWb2mwOaExmU30LSdcv3WJIhsBmy3MAThsiJ4wS9ovriI+yyebnfXcGKIvotdgqJfy7ZBZHwYZHbD6xaIyupU8EtV+u6VSvHwRLiNIcdRdclqAjBmGCx0036l0eGQhnBvRZRU8TAkQGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ear7i+XsXwo7L0PT5joVKtctuvJknPshYF6WXWJsQWQ=; b=GOAr9oJ9qXOnZDSN11dokIZn7IYy/oQyVK1VMWsSWMHPTl3aAzmXjk4oVacgtw30tnCY+XUh0lIzxhE+wEBuW2PDIAgVJGrFPfoi4MZkehtBDR7kXHZgwU3Xabxjd+Q6pVDr8Sp/FMi79isYbAxHvd+O4tqriqgdRCylzJR1tURevXFFZcKtnl+f2XHO7gvczJY6FzoOjL0SmySWwbR86gHpzfe02WMpHmjv5Ly79yfvvimyANWekj7nRfJKq3eFDp23qFS09vz3EI9Ogl4BitlIbQ2p9Ri2TKTfUbxs/ZNKHTgBYKz0Q5yFbiGqmRnbwO62vZuTFxQlWBCUpc/r6w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:50 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:50 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 05/22] vfio/pci: Fill in the missing get_region_info ops Date: Thu, 23 Oct 2025 20:09:19 -0300 Message-ID: <5-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0107.namprd03.prod.outlook.com (2603:10b6:a03:333::22) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 33520a40-c2b8-4b73-bd46-08de128942a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?QYkK2ahXrCyjaQLM/E7oQPsLjeUR4DuSCEtIwf8TzgorHl3mxMpNg4INIDiy?= =?us-ascii?Q?sZO2u8nwikxK+oDIx2p4lNas9Xrs9UFnWHbGyx6SHLgCilQR29JsanRjsDQB?= =?us-ascii?Q?pyuWm7IEtRYu0UGzJAHU2dZXE6VbgIwVNwuEZgs500GlMlnxpeCgV6yzRdRK?= =?us-ascii?Q?3x10KPeW6Pm68B3wfGmSjC/i8zgP75B9bFnagGCOfwCi5aeUpPgckqyr/XJe?= =?us-ascii?Q?Wcvebyf9yiZggxIpHAFjLk0GvZ/41j9w3b1T8Yt+R6pYvDwaXP3Fneszc8Er?= =?us-ascii?Q?mvnmBiuiAtSZs8N/LFSFUpte4Mgt6qX41/8A4ie1eyb40ofC9E8IG4DFBOOq?= =?us-ascii?Q?wcA/iu7iKLM20merkQ+nwrCkCxY9zpEb1EUXj9yl2bcAOgdXuIHZ2D/4/mcF?= =?us-ascii?Q?RiF+jV6wGsW0JeFqlJIyZgmugbNbKjxBCZPNpF4euNhWpDacx2P/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GATDmfLF2MaKbTgtZw4HpedcIjw4+4w4aF?= =?us-ascii?Q?g7XN+NMWYujttb3NnzdR/wLZAE2PLhb9fXoVeWEAZqkS+AwThRH1mj7uLQsn?= =?us-ascii?Q?lGGSTWdkelqZCrxsrT4QxbZXYE5QS+uSkFCQwyjMDkKn9QsE3uUIzsPXOIfk?= =?us-ascii?Q?Bi9ApeQsjJeNfJs=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?/NqhriQ/i3j/RJeti6X1wAz6UNYWVGMhXxow/ps5NrwqRb8YYwwNKTyjEk9+?= =?us-ascii?Q?yDBCsg/G6oXYjINUeTTOPLD1w0MmuNh5E8mp0qEaRXLUVye08HGGgejUO7ia?= =?us-ascii?Q?8aIvOeeKPCW54dpPBXoitP5g1yp3ZsRcjn/yVVu0EddyNM3SY4ulDPrI09ZK?= =?us-ascii?Q?5p4ca3Pz1xbWh7bo5ew+Lm8LP5M25mXaYs4OBWoXXSpelsoAHdB1S3rX5JZZ?= =?us-ascii?Q?eKNkXzHv4gRBZHNoGXTTh+2+lEsxCqG+usWx6bLGAI9PoF8AIkYDogBMDdRZ?= =?us-ascii?Q?am/pycccGFt9zKK0HlZ4vCfiYZhBkiQOLobiSrXZhgtM5BdKQm/WDhcE/TFt?= =?us-ascii?Q?mby/lOkIVm19TrvR9iEsar+CST8fs0JTRarSExbHi7FKyqGhmmDVzrWTux/f?= =?us-ascii?Q?kGVgFfwMzjoxQ8Hd+4ceqg8VcM1gdf/8EOkHZL0Hihe9J5Bz+0JO4qqvv62/?= =?us-ascii?Q?dg7ILsvZETWyDPaxKluOb3QGlJ/u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NsWXHXUIVjwXZ3KdfEXRG+xseGUbnS2D5N/FqyOb52wpDdLCI+5m?= =?us-ascii?Q?tzldt48OKFougDo47Ds0zjYKTh5tXcRO7L24LIdE/vjOKqjNJCtrA9NMkszK?= =?us-ascii?Q?nb+12twLB92iNUaQplz1YYEVy1yjagOaT9gvsBJKcNl0abed8oPEUX/HbSBi?= =?us-ascii?Q?Iqsk2s2emHljJnfnIorsSg+PmCoxJs1HAN8/CJwa?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33520a40-c2b8-4b73-bd46-08de128942a8 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:47.3738 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tzeyChngq1wtHVVNgbq5pS187edoRs0JadfQBNWw2Qpju4yMM8O6VHvLLSTRZ02b X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [147.75.80.249 listed in list.dnswl.org] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Now that every variant driver provides a get_region_info op remove the ioctl based dispatch from vfio_pci_core_ioctl(). Signed-off-by: Jason Gunthorpe --- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 1 + drivers/vfio/pci/mlx5/main.c | 1 + drivers/vfio/pci/nvgrace-gpu/main.c | 1 + drivers/vfio/pci/pds/vfio_dev.c | 1 + drivers/vfio/pci/qat/main.c | 1 + drivers/vfio/pci/vfio_pci.c | 1 + drivers/vfio/pci/vfio_pci_core.c | 2 -- drivers/vfio/pci/virtio/main.c | 2 ++ 8 files changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c index f06dcfcf09599f..99e67e3dda3498 100644 --- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c +++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c @@ -1574,6 +1574,7 @@ static const struct vfio_device_ops hisi_acc_vfio_pci_ops = { .open_device = hisi_acc_vfio_pci_open_device, .close_device = vfio_pci_core_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, diff --git a/drivers/vfio/pci/mlx5/main.c b/drivers/vfio/pci/mlx5/main.c index 7ec47e736a8e5a..b7f941f8047ea4 100644 --- a/drivers/vfio/pci/mlx5/main.c +++ b/drivers/vfio/pci/mlx5/main.c @@ -1366,6 +1366,7 @@ static const struct vfio_device_ops mlx5vf_pci_ops = { .open_device = mlx5vf_pci_open_device, .close_device = mlx5vf_pci_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, diff --git a/drivers/vfio/pci/nvgrace-gpu/main.c b/drivers/vfio/pci/nvgrace-gpu/main.c index d3a5253473e002..cab743a30dc35d 100644 --- a/drivers/vfio/pci/nvgrace-gpu/main.c +++ b/drivers/vfio/pci/nvgrace-gpu/main.c @@ -707,6 +707,7 @@ static const struct vfio_device_ops nvgrace_gpu_pci_core_ops = { .open_device = nvgrace_gpu_open_device, .close_device = vfio_pci_core_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, diff --git a/drivers/vfio/pci/pds/vfio_dev.c b/drivers/vfio/pci/pds/vfio_dev.c index f3ccb0008f6752..1946bc75d99b49 100644 --- a/drivers/vfio/pci/pds/vfio_dev.c +++ b/drivers/vfio/pci/pds/vfio_dev.c @@ -195,6 +195,7 @@ static const struct vfio_device_ops pds_vfio_ops = { .open_device = pds_vfio_open_device, .close_device = pds_vfio_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, diff --git a/drivers/vfio/pci/qat/main.c b/drivers/vfio/pci/qat/main.c index a19b68043eb2e7..8452d9c1d11d3a 100644 --- a/drivers/vfio/pci/qat/main.c +++ b/drivers/vfio/pci/qat/main.c @@ -609,6 +609,7 @@ static const struct vfio_device_ops qat_vf_pci_ops = { .open_device = qat_vf_pci_open_device, .close_device = qat_vf_pci_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .read = vfio_pci_core_read, .write = vfio_pci_core_write, .mmap = vfio_pci_core_mmap, diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index ac10f14417f2f3..2d9122efc10baa 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -132,6 +132,7 @@ static const struct vfio_device_ops vfio_pci_ops = { .open_device = vfio_pci_open_device, .close_device = vfio_pci_core_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, diff --git a/drivers/vfio/pci/vfio_pci_core.c b/drivers/vfio/pci/vfio_pci_core.c index 1dc350003f075c..f21d9026068c37 100644 --- a/drivers/vfio/pci/vfio_pci_core.c +++ b/drivers/vfio/pci/vfio_pci_core.c @@ -1460,8 +1460,6 @@ long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, return vfio_pci_ioctl_get_irq_info(vdev, uarg); case VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: return vfio_pci_ioctl_get_pci_hot_reset_info(vdev, uarg); - case VFIO_DEVICE_GET_REGION_INFO: - return vfio_pci_ioctl_get_region_info(core_vdev, uarg); case VFIO_DEVICE_IOEVENTFD: return vfio_pci_ioctl_ioeventfd(vdev, uarg); case VFIO_DEVICE_PCI_HOT_RESET: diff --git a/drivers/vfio/pci/virtio/main.c b/drivers/vfio/pci/virtio/main.c index 92b525e52abe4d..d68096bc525215 100644 --- a/drivers/vfio/pci/virtio/main.c +++ b/drivers/vfio/pci/virtio/main.c @@ -88,6 +88,7 @@ static const struct vfio_device_ops virtiovf_vfio_pci_lm_ops = { .open_device = virtiovf_pci_open_device, .close_device = virtiovf_pci_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, @@ -131,6 +132,7 @@ static const struct vfio_device_ops virtiovf_vfio_pci_ops = { .open_device = virtiovf_pci_open_device, .close_device = vfio_pci_core_close_device, .ioctl = vfio_pci_core_ioctl, + .get_region_info = vfio_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = vfio_pci_core_read, .write = vfio_pci_core_write, -- 2.43.0 From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id YPFNLr61+mgvzS4AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:09:50 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:09:53 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4RJ-0000000DHrb-3Xfn for hi@josie.lol; Thu, 23 Oct 2025 23:09:50 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C98663B2A84 for ; Thu, 23 Oct 2025 23:09:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41CD972629; Thu, 23 Oct 2025 23:09:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="SctY9aeQ" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 69538278143; Thu, 23 Oct 2025 23:09:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260986; cv=fail; b=W0iF29IKKRnkH4vsz11e2gd0k4aivVL3Pqngmj78Dr34xMd38k5QCl/96qqsCPKYtMFONuh94n27Icd1SL137BLu3YVgGSDvGYA9+ezeYGE7l9MBQ0mpbJnBV/QExoGkkByhdnjE0pyzrFcxYNY3yq/5TkQrmC9bGixHndZM+hk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260986; c=relaxed/simple; bh=DiXWCstDnUo9N9fbdo/sXkACoK7HOypEJLGboz51u1g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Ag9pIO1VVDXrQwN+il0W49CrfZerOWKgh7ndzkwCXWUAvysqGQhGBVTBjd41P63BEZnOCb1O5+BPv5I2JBMJdOe9pDKsrKaYGJFwTKmTaRT0HXyUUh49qILFy+Zj03BiKtsj2nm4hEd5PFNZtubvdaxApREEeELJMFrKKsl4Rqk= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=SctY9aeQ; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=byiprZSxm96Zaqqrh8DN7XlfS8zb81DyQm2STBOpIlcF26dlHALvnqFMZg/SK9aK2osguKPcfXGps34eeV/0eriqZFwp2EcG4Tz09udCKBBMcpjBNB++pHyxquvbpQieku+Cnh0VmErRcf4biaktOa124XeVbotsyFNJV10/CwIsWfPqaoT23AThlCMksHPltvcXbvzYmoORGG5g3F7TELEsZxt64Kxv8Wdwlovm4NnZDeBbEUJ3c0qc0D6F+0hw3SyjfxVooR9ndR6sXzjdr7IWUwcYfzTnN2dA6/MK+d6LKn1d5gA98FiQzqmwSVOcLIIdiJ6vKVup7dVRlmVS2Q== 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=y0g3icqFu3Fz+ezNVCkNoJRr/66ojUTNCWyyKwbvTIA=; b=o0/ZnO/Q6wx88FNw97wdfkZN9yUHf/I1LrYDlgzbMovAMGVqqDV451qdQl4ss+Oe0P271Mb8rsZSOa0Rb7QKKJ0rMq8GMQASo1XIUc+b1tj8NE8gEsXlqTRCS7ugQibfrNxHnPEWaLiaF8QwPmGzT4aq+s5cW/XyzIF0mH1+OONIYU8tWvdV7mwYgN3CsgJMIDEf/zd8p2/xHRjgrd8G13Wk7aRqCy77Ua5Kn7VarSiu72AMndTUC82kOwiVbmBdgcvRLz1unJ7qbTRJADQ5D8+oo23JabsKmLN8fujDlL/xRcECJXgx5gR2MetM2TKZAVmPxnNSno5Ty8p19th+wA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=y0g3icqFu3Fz+ezNVCkNoJRr/66ojUTNCWyyKwbvTIA=; b=SctY9aeQaJDA8vZK9SMCaPGDfZEP43WO8HKZT60k8eE5pEwx1ZbRbGL+vO9WH/+JXrYHL/Neosvt46bm6kphfeGlbOQI7Fw2N01CYEIbAGozzkHXC++WbhQRGvt2hcxCeumUU0b4CwR6jxMBJcedevfjpeSGgK5QtzGmTQlFdnMgstyNbb5I0mOSq8V0/qh+79zjAj5Zf1iWNkr3hvfqGGDN0PAjk2DhPEMZVH8nRNC40MayNMuXRy7HLfz+dOB95DYQVK99xFGUif70EcOu9I+omZ6G4q+vHXFZI+Chw5kpfNwK+vzpGP9urn0Pn8WknLvFDDmZLgqQbONf/p03KA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:40 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:40 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 03/22] vfio/virtio: Convert to the get_region_info op Date: Thu, 23 Oct 2025 20:09:17 -0300 Message-ID: <3-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR05CA0137.namprd05.prod.outlook.com (2603:10b6:a03:33d::22) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c383469-1320-4bea-fde0-08de12893df7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?/hw/cYZIRLc0olC6Qd16cYDpzT/wRXVpfNsucDaPhL1FMkPLIYQWNxczBsH1?= =?us-ascii?Q?JvdJbrNtgcr/Vng+euDuKjb93awKhYGw4PpaGp+iYNDpJcblCbUo/Bv9F1Ys?= =?us-ascii?Q?otcafuu86TPYtN6B5/XEWqyg1lkbVlnRRwReBvq4S9pSt6TPDBYeKzO0FjCs?= =?us-ascii?Q?PZaylBxXwfB0Si56kMqcsBZEmOmhfdeh6x5IYhNYs366oVB8LZdH3YT++FGb?= =?us-ascii?Q?bqQ0tikSqUa2DvHx0v81yJ5odkUVj+H2JkvIqXbDjhVdc5gVlSi8YwVBbMJI?= =?us-ascii?Q?ew2FNnbQSGpPAscfeeYuAb19Y2rdRcHHVG4/6s7WW8jBlMhVbLbE6kz0KiSz?= =?us-ascii?Q?6JICMTTie5HQMxHj5poFa9FVpiyaHs000hVO9Lq7edfWLB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DjKXkBlGweJd0GQs6I8LR1l2haTuS2u?= =?us-ascii?Q?DeRLqZJrgUlxAWVw6WH7Wbm1aF8t3OirgFEl5f3slMcCym/P21CBjGy+nxdT?= =?us-ascii?Q?4O3VcaHiUA36kZZEBQpLnWgknJhjwlwQqd/M2I3aOZVO2zSm8VQBhx0rrAub?= =?us-ascii?Q?6rXC8xXVB/CNTXLGiHqmq7AoHn1rD9azLLNvQ9yMnufWJ9V5HFDIZ5S2d/nq?= =?us-ascii?Q?cdDXqOrSctPIPgU=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?u2A36rczinSI5ZjXTLA2+OzSjh6RkzgHBPlpcoskk91hJYRhr8rcUkv1Pm6k?= =?us-ascii?Q?vCHAIPAH9DWYjAg1jb3Ilxq+VvKBzPKqZlAOZq/f/a+FE1hFyCFQD/7y6oNn?= =?us-ascii?Q?PNMfHc0wNh9WORwCvyZdm/6tKFOHIReHiO/h3QxQu1TqyTl8WNWWbFmeNODD?= =?us-ascii?Q?O/wvElytZ73jlPdLfTBg5nnemsH7M0ip47Z+k9oVgjYmEKUX3sdrrqfx7aZB?= =?us-ascii?Q?XUEKytdvu0FX5kidsLP6qXix0k96bTBYydppeIYMk7YoB6sGHhdy+lyAy747?= =?us-ascii?Q?8DtqvEw7tsCsoUrP8tIcmAy9so1V9O4pdDqMb90jfc9RaOeTsaDWIpkzwkDL?= =?us-ascii?Q?ylxnsHUIzHlTyMS80svExNZArATvT4k2xcHURimCqaTlUbq/5K8Ct21QwORu?= =?us-ascii?Q?2Iiq6oKr5ptjNT9mx/D6IF+A1Oug5okOJns/Nrd+cHL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?X5vOu6Z873rWLx5rAk7F6iumv1NPMvlsADq0kBKRgZTURdJbrhuUw88veZgq?= =?us-ascii?Q?bA+lfFXcFs0uSfteiqhE1OAoCA0Lae5XU+nb+y1x/OOIh5+rOLrUMZb2v6RH?= =?us-ascii?Q?GYmCGXr6A+2sxSVEa5zTElOhcQ8tBF6HpdldgKIKBmn039pHdQUUQe5iHp22?= =?us-ascii?Q?yoXT7m8025t2WltIaZVrP4xxEJ+xbq4/kPU8UXU4J0ALCVMK0r5IuvOacc3r?= =?us-ascii?Q?xvwpSjMs1BgsQrHAHlnXYtVomLrB0wzsIC4AqMc8?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c383469-1320-4bea-fde0-08de12893df7 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:39.8810 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: NXaDdKKAb8mjmCiIBvCZKkU6CryfTcPH5orOzqX3WZ+vLKzGNPiox8UJaZ714N3x X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Remove virtiovf_vfio_pci_core_ioctl() and change the signature of virtiovf_pci_ioctl_get_region_info(). Signed-off-by: Jason Gunthorpe --- drivers/vfio/pci/virtio/common.h | 4 +--- drivers/vfio/pci/virtio/legacy_io.c | 20 ++++---------------- drivers/vfio/pci/virtio/main.c | 3 ++- 3 files changed, 7 insertions(+), 20 deletions(-) diff --git a/drivers/vfio/pci/virtio/common.h b/drivers/vfio/pci/virtio/common.h index c7d7e27af386e9..a10f2d92cb6238 100644 --- a/drivers/vfio/pci/virtio/common.h +++ b/drivers/vfio/pci/virtio/common.h @@ -109,10 +109,8 @@ void virtiovf_migration_reset_done(struct pci_dev *pdev); #ifdef CONFIG_VIRTIO_VFIO_PCI_ADMIN_LEGACY int virtiovf_open_legacy_io(struct virtiovf_pci_core_device *virtvdev); -long virtiovf_vfio_pci_core_ioctl(struct vfio_device *core_vdev, - unsigned int cmd, unsigned long arg); int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev, - unsigned int cmd, unsigned long arg); + struct vfio_region_info __user *arg); ssize_t virtiovf_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, size_t count, loff_t *ppos); diff --git a/drivers/vfio/pci/virtio/legacy_io.c b/drivers/vfio/pci/virtio/legacy_io.c index 832af5ba267c49..d735d5c4bd7775 100644 --- a/drivers/vfio/pci/virtio/legacy_io.c +++ b/drivers/vfio/pci/virtio/legacy_io.c @@ -281,15 +281,14 @@ ssize_t virtiovf_pci_core_write(struct vfio_device *core_vdev, const char __user } int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev, - unsigned int cmd, unsigned long arg) + struct vfio_region_info __user *arg) { struct virtiovf_pci_core_device *virtvdev = container_of( core_vdev, struct virtiovf_pci_core_device, core_device.vdev); unsigned long minsz = offsetofend(struct vfio_region_info, offset); - void __user *uarg = (void __user *)arg; struct vfio_region_info info = {}; - if (copy_from_user(&info, uarg, minsz)) + if (copy_from_user(&info, arg, minsz)) return -EFAULT; if (info.argsz < minsz) @@ -301,20 +300,9 @@ int virtiovf_pci_ioctl_get_region_info(struct vfio_device *core_vdev, info.size = virtvdev->bar0_virtual_buf_size; info.flags = VFIO_REGION_INFO_FLAG_READ | VFIO_REGION_INFO_FLAG_WRITE; - return copy_to_user(uarg, &info, minsz) ? -EFAULT : 0; + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; default: - return vfio_pci_core_ioctl(core_vdev, cmd, arg); - } -} - -long virtiovf_vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, - unsigned long arg) -{ - switch (cmd) { - case VFIO_DEVICE_GET_REGION_INFO: - return virtiovf_pci_ioctl_get_region_info(core_vdev, cmd, arg); - default: - return vfio_pci_core_ioctl(core_vdev, cmd, arg); + return vfio_pci_ioctl_get_region_info(core_vdev, arg); } } diff --git a/drivers/vfio/pci/virtio/main.c b/drivers/vfio/pci/virtio/main.c index 8084f3e36a9f70..92b525e52abe4d 100644 --- a/drivers/vfio/pci/virtio/main.c +++ b/drivers/vfio/pci/virtio/main.c @@ -108,7 +108,8 @@ static const struct vfio_device_ops virtiovf_vfio_pci_tran_lm_ops = { .release = virtiovf_pci_core_release_dev, .open_device = virtiovf_pci_open_device, .close_device = virtiovf_pci_close_device, - .ioctl = virtiovf_vfio_pci_core_ioctl, + .ioctl = vfio_pci_core_ioctl, + .get_region_info = virtiovf_pci_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = virtiovf_pci_core_read, .write = virtiovf_pci_core_write, -- 2.43.0 From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id uHbFM0K2+mgQlDAAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:12:02 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:12:02 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4TS-0000000DMq8-0zoz for hi@josie.lol; Thu, 23 Oct 2025 23:12:02 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id C2D77508B83 for ; Thu, 23 Oct 2025 23:10:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B78382DAFB8; Thu, 23 Oct 2025 23:10:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="TS1er2N3" X-Original-To: linux-s390@vger.kernel.org Received: from CH4PR04CU002.outbound.protection.outlook.com (mail-northcentralusazon11013007.outbound.protection.outlook.com [40.107.201.7]) (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 E5EF02D8371; Thu, 23 Oct 2025 23:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.201.7 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761261000; cv=fail; b=drS2VXum/KDjFGZ3Ax4cMq8dgMRCiLYjRzKums4dgaeLSVebfvBryeGltcJdqxcXSSk1H6kHgpjgvCpEwYNmigCkAiilPjOd5MtYuCJagwGVe+C5KgOuPxbKYI1hM50NJyJgOtAOoO+FZaasZ2XTTAEtmZ+howvduR+f2p86zYU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761261000; c=relaxed/simple; bh=3yPXwaIsagx6BPGdptXEGsUBKdTCJhg94S0lwsnZvAE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=tEd4k2xtqrJ1F4gyEnEUlsParUAmZPvTvOWDyhJnYrErv3/xY8dHQzB4yU1Fe7yU0B/nFGrQMn4mx741GpfWAy3aE93kmhKarmqcIMZacnGojsGSKPkQV1doS+IQxPsJRdf26z04z4PDmvflCl57cBBkXdB8S3/WBFsHd1oCtRg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=TS1er2N3; arc=fail smtp.client-ip=40.107.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=D1LkE+1lKP47B4/ow/AHyVdY7Q+LKGaqTNqg4HecC17xNu3VXS/M/E1qCzk7WRtLObvUeOSNIiZwiIRii3Lpj5Eof9JJZg7hczBVehm8WWYUH7cZ8nP36PZCll2hf2M6ZoTTj3ED5DqhNkXdn3G302Ft5sDricIurZCbBlLuDjXIFN289EpmAYoNPsXi3zw60C3u0jmDd2OQl7GafWIkAJzl+DqIuF3A0nFLeVRiQzKrJ9iSYXQCqlH62IM+kmLk/TwK9m5HkjXhIoVgtxBMZ7iVco7sKYhu06bo8ctgsKMgijpTD9gqLm+1A09pcgzlY2kQn56XTx2tsdyeuCaOjw== 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=YIsV2Hvn7Vn2OKPwK7I5tTQff7elcWLac/vfH+OM2z0=; b=We8GoEfXnbR15wAv3802oEKPg6iTEsqE6Mydn1SphC5tzN3tzKsMI9lCXa7Mf5HJkFd7GOA1IrUDt9LGdOBLdhF8XvGYWPMxdn9Gf4mILTdiajwmZJ45GC1B8SPdG0n7M5QAuB9vZVLzniXJvyz/ST7Fifmde+UL+p2aaKZTGFtyaTCL548Ot5W/tepDmQyHO7N5gldtAW07GcJVCUXYCFhpbBbsWgYh9plr230dDR7rZLhcpUsFR3LtXO6RVhxq5AQ0Aa4Q5tC1vr8hu+li6HHRmNup/d8xsbZ+28R1Z3c4y4+fMpOQ44Az9e1RTe7K+9LPdZMMblEr7VhfL3bFOQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=YIsV2Hvn7Vn2OKPwK7I5tTQff7elcWLac/vfH+OM2z0=; b=TS1er2N3Dy0zCnSLl/bL8EvJErATOKGHWm4MyPH92ao8mfLTOKw4WEiuOqGLHUMHkzJuKvBGHCbgI5Ttt8NAsfEZ/XL38unBDXLkxsUrdxZOiGBaQ/yI59Us82g3tpkoLzgou9Dl+uPcCfS7xglVuRsC0tLsETh/U9QTHjYQPlKakfWkd2pi4nEFpFy71/k7E/wM8zX6pTrEePzJ+0brSGWiMqReMmq9c+7Z+LYwg/WuK33UdCm9qqGq1uFg8PN/iKZVD14uX1oeOJfTCD8Z86yO1zl4E3CRE/zmSE2xIOL4t1d0JW/mt5hYPWWl43TEls/rMLRD3GfRISl3eCpa1A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by IA1PR12MB6652.namprd12.prod.outlook.com (2603:10b6:208:38a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.12; Thu, 23 Oct 2025 23:09:51 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:51 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 04/22] vfio/nvgrace: Convert to the get_region_info op Date: Thu, 23 Oct 2025 20:09:18 -0300 Message-ID: <4-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR03CA0115.namprd03.prod.outlook.com (2603:10b6:a03:333::30) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|IA1PR12MB6652:EE_ X-MS-Office365-Filtering-Correlation-Id: 436316e2-bc1c-446b-2f55-08de128942de X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|1800799024|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sf+Spj0ZZLQ0/+0X/7oVgBOc/64lzNWXjKWm/0GkNky04b8pVQMQ1zXqGsGu?= =?us-ascii?Q?yhE7wdbtSjvO7Fv4yGv6pBL0m0tb4S+VIZ0uXT6ED3FL+PeeWUwrJbNK9E05?= =?us-ascii?Q?aVFSyT6dRITkdC2onK5bp/3P/aY8u5XbPqnj/lOK2352KU0fDoetJpSvyUh/?= =?us-ascii?Q?+UKwsNZ9U6T6dgNqi2mkGP6afuGkleD5YrH6cH1cbV/h+aSzu1opI0IpOVzN?= =?us-ascii?Q?buIYyn7XpVktouZK1wgjmN1PUubsMx52qyJK049oaqGGAK1/ak9r6Xqr+lG1?= =?us-ascii?Q?bFueP67cZ0WVjlTYV+Skv8thk9eRKarRna4BUtt6KDY9SaBcq1Pd3eP0Fc+V?= =?us-ascii?Q?fqXO/0QzgWdhM7+LAlBCLcEHjc97TOJ2h9oA9vlvU2jypNzqVG5ruHnLg7vx?= =?us-ascii?Q?pCsTWxzbiB0Kc+/UOZd/heujrAkozDiF8CayhCQP1qx/3nYE69bDX+IgIOoH?= =?us-ascii?Q?e4zza8ipz/pSudncnwOOQXC82TkKWUwdsI4GgoUlKCVZGsI0iDFMizZOCHIM?= =?us-ascii?Q?bkB5FAgn0X5mC1lcXw5e25ybONXaDrvCvDPCc0enb/1nUmeLfW+MidOEMtRO?= =?us-ascii?Q?YnlpRsMsg21tlhso89MVUo6OmePmjmFQqsg9F5dBt4lBJd6L2uSXoGEr5Bxk?= =?us-ascii?Q?6vzITvZRymig14dM8plidZi3cPqqJJkpmSfkcvpaNYr23mvukZOXslfpMaL8?= =?us-ascii?Q?nBEp2GsnqFIWe78MpwSVj+S9tlnuqgXarG25asoga8iTgcuQQCze2CF7Z2aw?= =?us-ascii?Q?nJ357LR81AipoROJRHPosndSB7hlt6gJ1qKZtCtLZTtQqndHV8pGrqMr5pix?= =?us-ascii?Q?HuNvFYVqX8F5aVs1rmphOz0vDZr8TOpgI6ykt7iIkHEQZLIALD588Hr6fnUk?= =?us-ascii?Q?Vqva57CliHuUCf5YZdkzKFeORgDdYK7xa4eLBvRxNCB0JuWEVzOoHuL3h4nr?= =?us-ascii?Q?4ryVl0rz5XjTMJfOTqjnrRIQbkBhxywcAHDMCIOzH5vWZR9w9v8es370moWF?= =?us-ascii?Q?sRASvDO7c8bYY4wPR3104wA8eeyjkEN+7j47Z5QhndnkWuX4ZNkHTlD1WERQ?= =?us-ascii?Q?EzLK14O3Z/oHMc3xYq2gtxuDZIsv+bEVjtbErefVib6/zyOezUFDlC49ltYm?= =?us-ascii?Q?ZC1Y9d0oDmNollu4swqL5Ch2hh35cw/PxZ1U0+i6tR+C1htjoc+vL+bctk7c?= =?us-ascii?Q?Ibb13QbruyPJx703Zux1esJSv1VvRkaVNRn48STLIfNEB2k+ulxUOSJJJvwy?= =?us-ascii?Q?lBEvwqqfwtxm1Ku/TOWRpk6QfQ07goEkKzqJPl+hf3wLJ8+T/hdpgAiDhfJB?= =?us-ascii?Q?GznY7YBcPYKeX1hwV0H+t+SzYXoz7ckT71lLTVpgbTV5/LfODJS4SJQcLu96?= =?us-ascii?Q?7NzGuYD0Yz15pAidvuly+MbZkIex33EpUt+bqKGY2XTHjTL+1fm0Ik6Qjrbg?= =?us-ascii?Q?DM1l5cjzH9Rp0r/updKljJan2mpDqflijajV7p8jV119cjs+nYjbDh/e4XeA?= =?us-ascii?Q?uc2GwR/ykMi129U=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(1800799024)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?pbsfXYhHQNHJ8ThFhalQhQp2gGxXqSP81ENK9M/B3BuRta8zJ7gHgJVIOZJr?= =?us-ascii?Q?eR2mE6RRvC7D3z12ux55nCrWi7DKo+0vquqCPdE114y0H+Ebv6eWMEVJJnmD?= =?us-ascii?Q?RbwtiPzpdlHyL8SbqWGKMYbmsyoItov1OFent6GKGK2mzWLUVeAcEnQsbEDh?= =?us-ascii?Q?/qMZqt3G+dER8znEduly8+eS4Zls3qYBJhSiG1PsRa1Wp3JKuzrJpYQGGCyr?= =?us-ascii?Q?hq1iX8DlwaMJdfQU8HHLCuOhngCuNCZqnB64Azjl5LljF/4j9f58Gc3mNDFj?= =?us-ascii?Q?W4neTXs+Z3OmQrh+bGFkgMozsStRjlodcYEhjjjOz+c7NQspVixhzVpgSHGL?= =?us-ascii?Q?0lXbU/7iq4HoFJUEwKqfB11bcvklgy8hZW1fkgp27Q9gWY+MsICqw0Qx2BzS?= =?us-ascii?Q?CIWVkYpPAlvte8vAU1K0wxMyX/g2QFiaC4FRTPyzwM9nZdoyIAOVEkRvzmsl?= =?us-ascii?Q?vC/mYBs88liVznaDoBS0uW/adrJu6aFjktWarKOgjAAHr9nf4f77wYVIi/rq?= =?us-ascii?Q?LN0PonfDklvv7XROfYb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8TAcibVnpyJ/z?= =?us-ascii?Q?88tDxrZYQUi5lncVmv8Be/DHbYyjBxa282ZtxbtrsLyqfdfFRmvPZ1P2An7Z?= =?us-ascii?Q?tqLz41j3VJ2AvEAeX2+I+cjgKUzDttICIvzlWnryaG/wZL9AOtenn4LHnU7h?= =?us-ascii?Q?sfAPKSGIBeYX/cQV/ku8Nv0y7dclBitnd5XsYmp8?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 436316e2-bc1c-446b-2f55-08de128942de X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:47.6862 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WwXc68lJxpUV+BowDYRFOJfcR6mTcxWI6RFNYWFRgRp2qQwXfu4NJPTyKXHW1yAv X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6652 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: nvidia.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Change the signature of nvgrace_gpu_ioctl_get_region_info() Signed-off-by: Jason Gunthorpe --- drivers/vfio/pci/nvgrace-gpu/main.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/vfio/pci/nvgrace-gpu/main.c b/drivers/vfio/pci/nvgrace-gpu/main.c index e346392b72f6ab..d3a5253473e002 100644 --- a/drivers/vfio/pci/nvgrace-gpu/main.c +++ b/drivers/vfio/pci/nvgrace-gpu/main.c @@ -205,9 +205,9 @@ static int nvgrace_gpu_mmap(struct vfio_device *core_vdev, return 0; } -static long +static int nvgrace_gpu_ioctl_get_region_info(struct vfio_device *core_vdev, - unsigned long arg) + struct vfio_region_info __user *arg) { struct nvgrace_gpu_pci_core_device *nvdev = container_of(core_vdev, struct nvgrace_gpu_pci_core_device, @@ -220,7 +220,7 @@ nvgrace_gpu_ioctl_get_region_info(struct vfio_device *core_vdev, u32 size; int ret; - if (copy_from_user(&info, (void __user *)arg, minsz)) + if (copy_from_user(&info, arg, minsz)) return -EFAULT; if (info.argsz < minsz) @@ -232,8 +232,7 @@ nvgrace_gpu_ioctl_get_region_info(struct vfio_device *core_vdev, */ memregion = nvgrace_gpu_memregion(info.index, nvdev); if (!memregion) - return vfio_pci_core_ioctl(core_vdev, - VFIO_DEVICE_GET_REGION_INFO, arg); + return vfio_pci_ioctl_get_region_info(core_vdev, arg); size = struct_size(sparse, areas, 1); @@ -285,16 +284,13 @@ nvgrace_gpu_ioctl_get_region_info(struct vfio_device *core_vdev, } kfree(caps.buf); } - return copy_to_user((void __user *)arg, &info, minsz) ? - -EFAULT : 0; + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; } static long nvgrace_gpu_ioctl(struct vfio_device *core_vdev, unsigned int cmd, unsigned long arg) { switch (cmd) { - case VFIO_DEVICE_GET_REGION_INFO: - return nvgrace_gpu_ioctl_get_region_info(core_vdev, arg); case VFIO_DEVICE_IOEVENTFD: return -ENOTTY; case VFIO_DEVICE_RESET: @@ -690,6 +686,7 @@ static const struct vfio_device_ops nvgrace_gpu_pci_ops = { .open_device = nvgrace_gpu_open_device, .close_device = nvgrace_gpu_close_device, .ioctl = nvgrace_gpu_ioctl, + .get_region_info = nvgrace_gpu_ioctl_get_region_info, .device_feature = vfio_pci_core_ioctl_feature, .read = nvgrace_gpu_read, .write = nvgrace_gpu_write, -- 2.43.0 From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id iI4dF961+mhVIi8AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:22 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:22 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Rp-0000000DIwc-3K25 for hi@josie.lol; Thu, 23 Oct 2025 23:10:22 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 64B3D3B66EA for ; Thu, 23 Oct 2025 23:10:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 048FB2D2397; Thu, 23 Oct 2025 23:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="P3a0GtLV" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 021082C21EF; Thu, 23 Oct 2025 23:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260993; cv=fail; b=UplWprO/Qk9ta4Zpebf+tR9CcBrBOocUDKbOvrxMdZnkn6k4kDcsQ0PBSqM8nmEax+gLHE8zOKUfmEWqNr7XcsHfHgsErRHSHEJPZk6tBV+wBFNvax+Vj37c3hnO6OmSK22lCJGIj7CJaIjsdFqvDC/4pWCnCQX5dgXuw1e6gfI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260993; c=relaxed/simple; bh=xT7wxCPXGFWs2/8D8GJpnzKUPW25aDlHRwlkuWz2S10=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=YDt3tPJHWFzqgz6aBhrHIYJ5dm1uNgjOQNQLAparIg6J7t1p/TbNb5HF9hurFrv870hqlFxE9a1VZLkpk+69DcOYg53/5jjq2u0aGVcZW5cgiGl9/1PhytOktAdtckqlC43OqG4mQdeN0GvIZqj/CHzqKvVDOOBTZ9xyOpRWqh0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=P3a0GtLV; arc=fail smtp.client-ip=52.101.62.6 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=joifCk59fdjHuArAbkCIQgcwDZqy8lt7IyTV/e7dr19iXzZI2vFweLYm9RXiUSH3JU9tbmnAxXc4gEHt7luPEE50Wfl0gne1KfbFKEVf1Cs25/JGXocHdJtrnWiqH3ZE7T/jRFLLyHVRoHjVrSk9cNH2zp8zoy5oMYU7u7/bjV+QN/nearTnsELgELFh/imeqaOPDMzc4dGQ0uGAZrXL9RuY+LcOE3H5nFqgZc6NpDxNy15vDQri/eyue0D6cdujDivnDDqpb8/pIgEHoeBnU+i6H0vXCHIatqdeQAaWc14owixe8cQBgwrKBkrZmJpSrBInLJy+bois5D99tCILOA== 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=96oEibw/XTSvHPGMgILEZZqLmlEesB+47+6i9j2XZk4=; b=GfFI4HENFwgpo3OJ9jba35MsnTMEZ3ioIRNG6m4HUiDZ9RdAseb2CAuE4U4tLzRy31r5WK/dQSngqz2mtz17WVC4APpPbl0Rk8DNcOIMRKRPPrY4n8l9BVlhtVJLYhvuuWMzvkA7063cCKD6GYNPb9wYZGPP4FNIG/bKMPBLTzmvuRmu0NPcocP09wSUoFM1UQNBwvTddG07ie6/z33AaATf/BOmadfvL4uT03Ad1r9AV8v20NWuQIT1TkcybYBlbfrRBzutHV/aN8irqiTmZETpuj1bzN31JKgi8/5UbufmricGJA8wp9MgfzHrvJ/hHFQ/G2KXc33R8/tO+ry1Hw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=96oEibw/XTSvHPGMgILEZZqLmlEesB+47+6i9j2XZk4=; b=P3a0GtLVNBfonBfDb8tHVk80SXZCXeYXe5ovT5+NRtzF8Q+C+a+xRb5DH/IuX66Y2zCcoJEfoJtCzLn4NJi8bfvAcPx5ZbKd0+sVQDljszMA3aSK5Cw+fbj89pneh40ruNlB+2EJe3b3l5JsB2butV1cZhcwQl2XPJOzgLQwOr/2KROfA42AysWfZLo9nXABXu4YaRg0bN+WPrKE9pzJh0ipVz5miTZtTFonPLl4wmsu0C7PpSTvP9M64dKNfrkXy+sm5vcDGE7Shb9wMUbCgjtmiN7bRHyHep1JfvwEB/WVjVK1OLZTiZLygsv8tcAGU6ovZBE5KUEAkxt+hZahow== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:44 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:44 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 02/22] vfio/hisi: Convert to the get_region_info op Date: Thu, 23 Oct 2025 20:09:16 -0300 Message-ID: <2-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR17CA0009.namprd17.prod.outlook.com (2603:10b6:a03:1b8::22) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 1a8a981c-0042-43b4-5c58-08de12893f8e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?YGhVF55NJH+9veeGhpZhsJYpNK4vZKxJ/ywFB+UPo+IwFVWJj7RUML+x7aC4?= =?us-ascii?Q?uvPfnKKPWlndzXV1VGzLJyW40mQH4/pEURhvY5cTKBBtZ+sK3R3xSbXmBMqi?= =?us-ascii?Q?xQBJypZWnxyJhyC/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ascii?Q?wQJWWKUPgtP7/H9F3OvpWlA9VxNbjbXH/1qu7cD27X5SPL11JRAZHIA1viae?= =?us-ascii?Q?Tna4LQ3eXDcnvZGeXomc4bnx0kqQp3OpCEWBTJSMN2qHs5dK02BL031voEDc?= =?us-ascii?Q?GlE/3SxB0Kzh6GvRSSXgKPbZ9GLLqF/ZwxQnQMySrPIhFp//s3zQkCkcyCA5?= =?us-ascii?Q?NdLThfrHbZ1NHtieIpKxS7EipLtLdODRRgVjTSvnxjhBlrC/6YRTxKd833MX?= =?us-ascii?Q?odHmFbUxFqg/udPT8A57dcUoCgChtOntSh03JHRVAECPTNt90zmI8ZL0aZxl?= =?us-ascii?Q?jKn6+X62uGJ25MQ72dMPggds5lsh1aVLWoaou5Nso0LWLi45aGpzOsZPGRBX?= =?us-ascii?Q?5+SkcJ66asa1ZhdNtPa9KaxiDx7g+i9pQBg85Uh7KjDish/d0o0kuE4M2gWf?= =?us-ascii?Q?4zEGL1ki1390HY1SPx+uQd5PWsR3ulUqtI2FEQXFYHzpQUebN0rbFx6j/gmJ?= =?us-ascii?Q?qJEsrXKC/5jubig=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ATw7lUyLDn3eXMqQzO2jAX+VLbWy8zy7NTy/X04DlkEA+6mw0Lqrff4HU14i?= =?us-ascii?Q?egTdAZOdPDaZHwT5+QvDppIyEUy4zvhccpCsact3df4turQXWD1heetMiGyf?= =?us-ascii?Q?T9Ched3uRVRZU9cYhpR2iUMGOzqV4VG3du+DZdwsAUtZHIOLpDXpgqXQFyeB?= =?us-ascii?Q?bEzOtIglNdXGEYokQUyU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Ma?= =?us-ascii?Q?SJcDYqnWkjZGHvuzMK4pHEEgd7Xckw1ZSRhxcOhMxJdQJUF21E5t6cMWPzvN?= =?us-ascii?Q?igGn8gm08zzaWZR4tyXSTqaEN5M5AL5a6COCoqXu00i8YPdOkVk+cZ1ym4I+?= =?us-ascii?Q?RvY5ORRIT88sOY2s4JuX7zpUgyoGxhHrl3dXZmVe+YhHldJu7EuqC9sVTb5/?= =?us-ascii?Q?0x17+G1FeK9ojwnUvZq0ZHwOf1FVDfGmLyQZHAlof8PsZoqu1mMAvuAXRWe/?= =?us-ascii?Q?RyxA7gKfErzq46223cNIwMXDxc9hjUtNj4rnuLj6mNXOIFqu7IOW/7iFEpGl?= =?us-ascii?Q?eXU8KYipQQ6wRhPvrbG40D60XjdY5gvY0NIi4ttJxDD1jnYvCDXwxg1efcam?= =?us-ascii?Q?sm+u9Im/5BDdzyAd0BSqJRYOoFATXM0uriucAWUzJe1+IXt7Orti/Y435w9+?= =?us-ascii?Q?49PyosDgfyFQKDPqNexLQC8OCVr/oB1chleISW3pPga7YKwBpWyX8o0tyh6U?= =?us-ascii?Q?FJwj1qY5hk364zPOVDalOh1/e/MrK7WMYim4hiAX?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1a8a981c-0042-43b4-5c58-08de12893f8e X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:42.2642 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: w/xZR7b4JwzWpkdoIFHwdmNtbIqVqyjAQ2j60T+EvWqdBwoDwNCGtrlPKVad4KWM X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [139.178.88.99 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Change the function signature of hisi_acc_vfio_pci_ioctl() and re-indent it. Signed-off-by: Jason Gunthorpe --- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 57 +++++++++---------- 1 file changed, 27 insertions(+), 30 deletions(-) diff --git a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c index fde33f54e99ec5..f06dcfcf09599f 100644 --- a/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c +++ b/drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c @@ -1324,43 +1324,39 @@ static ssize_t hisi_acc_vfio_pci_read(struct vfio_device *core_vdev, return vfio_pci_core_read(core_vdev, buf, new_count, ppos); } -static long hisi_acc_vfio_pci_ioctl(struct vfio_device *core_vdev, unsigned int cmd, - unsigned long arg) +static int hisi_acc_vfio_get_region(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg) { - if (cmd == VFIO_DEVICE_GET_REGION_INFO) { - struct vfio_pci_core_device *vdev = - container_of(core_vdev, struct vfio_pci_core_device, vdev); - struct pci_dev *pdev = vdev->pdev; - struct vfio_region_info info; - unsigned long minsz; + struct vfio_pci_core_device *vdev = + container_of(core_vdev, struct vfio_pci_core_device, vdev); + struct pci_dev *pdev = vdev->pdev; + struct vfio_region_info info; + unsigned long minsz; - minsz = offsetofend(struct vfio_region_info, offset); + minsz = offsetofend(struct vfio_region_info, offset); - if (copy_from_user(&info, (void __user *)arg, minsz)) - return -EFAULT; + if (copy_from_user(&info, arg, minsz)) + return -EFAULT; - if (info.argsz < minsz) - return -EINVAL; + if (info.argsz < minsz) + return -EINVAL; - if (info.index == VFIO_PCI_BAR2_REGION_INDEX) { - info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); + if (info.index != VFIO_PCI_BAR2_REGION_INDEX) + return vfio_pci_ioctl_get_region_info(core_vdev, arg); - /* - * ACC VF dev BAR2 region consists of both functional - * register space and migration control register space. - * Report only the functional region to Guest. - */ - info.size = pci_resource_len(pdev, info.index) / 2; + info.offset = VFIO_PCI_INDEX_TO_OFFSET(info.index); - info.flags = VFIO_REGION_INFO_FLAG_READ | - VFIO_REGION_INFO_FLAG_WRITE | - VFIO_REGION_INFO_FLAG_MMAP; + /* + * ACC VF dev BAR2 region consists of both functional + * register space and migration control register space. + * Report only the functional region to Guest. + */ + info.size = pci_resource_len(pdev, info.index) / 2; - return copy_to_user((void __user *)arg, &info, minsz) ? - -EFAULT : 0; - } - } - return vfio_pci_core_ioctl(core_vdev, cmd, arg); + info.flags = VFIO_REGION_INFO_FLAG_READ | VFIO_REGION_INFO_FLAG_WRITE | + VFIO_REGION_INFO_FLAG_MMAP; + + return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; } static int hisi_acc_vf_debug_check(struct seq_file *seq, struct vfio_device *vdev) @@ -1557,7 +1553,8 @@ static const struct vfio_device_ops hisi_acc_vfio_pci_migrn_ops = { .release = vfio_pci_core_release_dev, .open_device = hisi_acc_vfio_pci_open_device, .close_device = hisi_acc_vfio_pci_close_device, - .ioctl = hisi_acc_vfio_pci_ioctl, + .ioctl = vfio_pci_core_ioctl, + .get_region_info = hisi_acc_vfio_get_region, .device_feature = vfio_pci_core_ioctl_feature, .read = hisi_acc_vfio_pci_read, .write = hisi_acc_vfio_pci_write, -- 2.43.0 From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id aB4RE227+mhWUjEAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:34:05 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:34:05 +0000 Received: from dfw.mirrors.kernel.org ([142.0.200.124]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4on-0000000E4EN-05lx for hi@josie.lol; Thu, 23 Oct 2025 23:34:05 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.mirrors.kernel.org (Postfix) with ESMTPS id 34D2E4ED072 for ; Thu, 23 Oct 2025 23:34:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 831212E2DFA; Thu, 23 Oct 2025 23:33:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="eMgg8Oox" X-Original-To: linux-s390@vger.kernel.org Received: from PH7PR06CU001.outbound.protection.outlook.com (mail-westus3azon11010059.outbound.protection.outlook.com [52.101.201.59]) (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 DE4102E285B; Thu, 23 Oct 2025 23:33:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.201.59 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761262425; cv=fail; b=ejNQvuigz6OM8aRkz1jzjkmY03GOK4qZcyhVZH/fIaqh+YdZINE3e1vW6pfNLBM1Bz63Lif5TL5ATgO3wIZV2mIbVc8+ayNWqam7zmh5mqSRdLTtzj5osL/7jEQVnSWE4zip/+b8couOmwSB3MwF9B2UWoxSnWFAOwrd9jgDNmY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761262425; c=relaxed/simple; bh=+PzKTwUGGhxOH85ty0m00tLageqO6GXb88le0yJSvgI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=bK7NYtIEN8dcDDqSB0SRR3NQNtYpSlFr+xrRwbww0L5EMiv3gWtqHzmDg5eeaa++v/0DsRTpsh8nNwdsYfPuGPnMV4fsiJWOlvWo2qfbZvVhUZE1uNi4bGrUvzAuSXwFsjTZImIueb2txtwnwCCGoIfC7+PdpyiuFIC2DwzdC+M= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=eMgg8Oox; arc=fail smtp.client-ip=52.101.201.59 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fBsny9tXKTaHYpyG0GC4utP1fXgfbWf/9SFdsLYHM5nUQdGmQbxeovIg+xnX9CZ1xzHJGNmofTx68uaXqo2vDegk0KLrcCSSnyXgcGuX2W1CMGWDAHNKdRLDvpNnzvO/MyKlMKy4igIUEtxqthFeO+cbHGUYEZy3O+aQl0HufGkR46VQzrgb8yaqOzAJVlnHYSGvzfdsWejOcI/nSWH7BLwFkEy7iV75NyrPvtkZRxaSvXbqhsXrWaZ1n2Qi53qbJ5OI/+akgdGA0zzVPrnmDd6AfSce/JfWXPTPwxN0j8HGVV7bLEcqNsHjdhjQfnTmBFJuqkhxeWuua8Xjm0kLVw== 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=RY+Fr8ADvdG6iePOmN3dWrxKpliKEM40mOH+tyCu66k=; b=M34zZSjFiBw4lfAXh8659qW6cKdsd4roH6qpdws91yaCTUgxuyKLKcqaSIuxPIbBDNF369uPDwnp0Wj+DHX1hfYmPr6vn4PqVcV5H28axh2vX38xyg2Hc7YFqBFq7s+0bN7ahjCwZBSRPrQq62ofWZcT62y+/tPA6bAwlrcGD4fk+o5efRyyDQiCdDTjirKrjaKLp+TkCCTSNbb8xaYEc1BUor63rTWsK/tsfqh/awrT5SfuW2Or66IQmrRHNyG4qRNeHP6LR6ElWk99TdREhpnh/VtxyFbFlTXxk66EVEnjCY4Op8UjVIN+jXZKaovol7s3PwTeAvCcWb23Qq/APg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RY+Fr8ADvdG6iePOmN3dWrxKpliKEM40mOH+tyCu66k=; b=eMgg8OoxvnTCPrdgmVNzqqTYktmjhuWOM9sXFCAp9SUonKAe0suc2f7f7Sc7bIuqkfeu5Q1DZsfqgujOWyEO7r0Y1VdCyvZm0TXh8TdamzmMzj2tK9YpA0PLldn7Cl31KxKyfab8RkxIjIb/Zsrw/v8zCh2g3bD3csGziUynxAs1luKlbGzazvafnm5VUx83/TS/+n5aarscHhJ0oRjyLp29amtGrh8y21AynEXCCQGU2vIPs5TtCEMVfmhcsN6J5aF7ghdAhbKlK7k4KpJeNC9e6Q/khF5erw3YcfOnygxTrdnPJWpEdmH7GyT5yNJqMmNsaDeN0hcohchuskFg3Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by LV2PR12MB5943.namprd12.prod.outlook.com (2603:10b6:408:170::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:33:41 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:33:41 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 01/22] vfio: Provide a get_region_info op Date: Thu, 23 Oct 2025 20:09:15 -0300 Message-ID: <1-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> In-Reply-To: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0124.namprd13.prod.outlook.com (2603:10b6:a03:2c6::9) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|LV2PR12MB5943:EE_ X-MS-Office365-Filtering-Correlation-Id: 38b4657b-8522-4bc1-ef09-08de128c998d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?Gh+Y6HTFiMvofeT95vOM/k/zug2AVHnO6MT72YmhYgi0+6U2R0/aBgKSrQbv?= =?us-ascii?Q?z3PUJahWW8c+0CuEdCVa2fALIcDRSMLUz1aIMtyXHO+HbhSDAc/J5oMdOc0U?= =?us-ascii?Q?KRnFXHstigjFO2QGRYen2r7ubQxmQHkS+/T4t78UgCDciJvVG1Kq/yu/9Y8G?= =?us-ascii?Q?N6xm80n3p+7pbyrwmmV+8IUkrV1vb9772k6RMwGi0Jbzz95sIQOOxVJdOQ95?= =?us-ascii?Q?KgbfWT6XzcIwUtTP1LTYE0IA1Ae/nKs0lOXmbmoemyV5mo1I3Kr3KhVXvLBS?= =?us-ascii?Q?o3Z6k7m/nTCQCTNR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jcg1KSF?= =?us-ascii?Q?+0mQ6+TbAr7m8/DEpcZ18a1ttaDkB32C3oIiWU610l9HgC6SDR8q8rORT8NI?= =?us-ascii?Q?7vQyyGGR5pChy7ALUDm2W5QRdNaigeDRLvUpH/pWXX25TEFrN5WYk1wcP/km?= =?us-ascii?Q?eAMF5fiwc0n/KDdQs5BkMcqVA7G+a1daIXDPFrp0k9BDzEpVi6W9Yg0asEr+?= =?us-ascii?Q?pOQoDGl/vrWkaTXgseG5o6vcacQ4XkKPgbOBr3sMYInHKdmg3ddwKwNyo3tF?= =?us-ascii?Q?5GF4PH28kJJFU0zzMPw4qKuPkb9s9EAYJpbPuBhH0aOC9CKcYcErOLgzNKI+?= =?us-ascii?Q?jMyalnPRJAX94CQ=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?iYAAjK+LstEs1QPHIdyaAUGuwaBABgIqGCCgnmg2OTG7cVPQLnj42KxPmcSF?= =?us-ascii?Q?Hi5OA7P0DgcDte0j3XmjNXXIenPFha11ZYazOv8owC61Aj1FCknfjENJWiX0?= =?us-ascii?Q?NGItoREkg1TbY4YC522NoTTq3UyF6f8hmmBVT66yGmNLk0bqMKBKZfdhw7nY?= =?us-ascii?Q?F4POXYqiVocd5sxOUw/zo10vVn8OC/iprLi/cBCA9v3qk9DgZQ0a2eJdXUws?= =?us-ascii?Q?iyGop3pevB7BGNb59RRZnDR1MvBqgYOV8N+1IjogFqqdP8yB+RNxbOIvgP3k?= =?us-ascii?Q?W1RhDqPXSurFA0bP0pEOGqiOu8y8nLMzHHGvo+rBb5nrGaQwvwJzcxotqEij?= =?us-ascii?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nHx7Olr3rAnJ23A?= =?us-ascii?Q?oqA+kvUP9ySvVbt4C1NuZxZFhLS14QLjs3+21siVGeTZ+FrUFYRNR9sP6DQT?= =?us-ascii?Q?aYawc+2MJR1rV2H61ulq5y/5D+cMaTinuuCf33RpRHf9uEmyLndYQrBiMVFj?= =?us-ascii?Q?BYs0+EjE1UD8zC5q2TiuttxGWLgdTUlojRD9kdnJYyyKf/ETYChdhromgid8?= =?us-ascii?Q?3RbVArJZFJ62doMc0pqJQ1z9zSGO9JQpghz59h+vCroWmHNSiJGxwrtX7i67?= =?us-ascii?Q?Z+jTNG29ZkcRlR/ivSpVSJ3XhnJVv7lCa44BeCU/jADwByRAqUV8YWPK9NPp?= =?us-ascii?Q?vRubYVr00bcMVQiiCXmfFmBQxv5rz9liojAiBfgM?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 38b4657b-8522-4bc1-ef09-08de128c998d X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:33:41.5697 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MoXSWrdz1rRoOf0wDXEd4JKJkuIewJR+nls5qVfKMtXSLJh/34fo5uB6et+klX9Y X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR12MB5943 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 0.4 (/) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (0.4 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [142.0.200.124 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 4 Instead of hooking the general ioctl op, have the core code directly decode VFIO_DEVICE_GET_REGION_INFO and call an op just for it. This is intended to allow mechanical changes to the drivers to pull their VFIO_DEVICE_GET_REGION_INFO int oa function. Later patches will improve the function signature to consolidate more code. Signed-off-by: Jason Gunthorpe --- drivers/vfio/pci/vfio_pci_core.c | 9 ++++++--- drivers/vfio/vfio_main.c | 7 +++++++ include/linux/vfio.h | 2 ++ include/linux/vfio_pci_core.h | 2 ++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/drivers/vfio/pci/vfio_pci_core.c b/drivers/vfio/pci/vfio_pci_core.c index 7dcf5439dedc9d..1dc350003f075c 100644 --- a/drivers/vfio/pci/vfio_pci_core.c +++ b/drivers/vfio/pci/vfio_pci_core.c @@ -996,9 +996,11 @@ static int vfio_pci_ioctl_get_info(struct vfio_pci_core_device *vdev, return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; } -static int vfio_pci_ioctl_get_region_info(struct vfio_pci_core_device *vdev, - struct vfio_region_info __user *arg) +int vfio_pci_ioctl_get_region_info(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg) { + struct vfio_pci_core_device *vdev = + container_of(core_vdev, struct vfio_pci_core_device, vdev); unsigned long minsz = offsetofend(struct vfio_region_info, offset); struct pci_dev *pdev = vdev->pdev; struct vfio_region_info info; @@ -1132,6 +1134,7 @@ static int vfio_pci_ioctl_get_region_info(struct vfio_pci_core_device *vdev, return copy_to_user(arg, &info, minsz) ? -EFAULT : 0; } +EXPORT_SYMBOL_GPL(vfio_pci_ioctl_get_region_info); static int vfio_pci_ioctl_get_irq_info(struct vfio_pci_core_device *vdev, struct vfio_irq_info __user *arg) @@ -1458,7 +1461,7 @@ long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, case VFIO_DEVICE_GET_PCI_HOT_RESET_INFO: return vfio_pci_ioctl_get_pci_hot_reset_info(vdev, uarg); case VFIO_DEVICE_GET_REGION_INFO: - return vfio_pci_ioctl_get_region_info(vdev, uarg); + return vfio_pci_ioctl_get_region_info(core_vdev, uarg); case VFIO_DEVICE_IOEVENTFD: return vfio_pci_ioctl_ioeventfd(vdev, uarg); case VFIO_DEVICE_PCI_HOT_RESET: diff --git a/drivers/vfio/vfio_main.c b/drivers/vfio/vfio_main.c index 38c8e9350a60ec..a390163ce706c4 100644 --- a/drivers/vfio/vfio_main.c +++ b/drivers/vfio/vfio_main.c @@ -1296,7 +1296,14 @@ static long vfio_device_fops_unl_ioctl(struct file *filep, ret = vfio_ioctl_device_feature(device, uptr); break; + case VFIO_DEVICE_GET_REGION_INFO: + if (!device->ops->get_region_info) + goto ioctl_fallback; + ret = device->ops->get_region_info(device, uptr); + break; + default: +ioctl_fallback: if (unlikely(!device->ops->ioctl)) ret = -EINVAL; else diff --git a/include/linux/vfio.h b/include/linux/vfio.h index eb563f538dee51..be5fcf8432e8d5 100644 --- a/include/linux/vfio.h +++ b/include/linux/vfio.h @@ -132,6 +132,8 @@ struct vfio_device_ops { size_t count, loff_t *size); long (*ioctl)(struct vfio_device *vdev, unsigned int cmd, unsigned long arg); + int (*get_region_info)(struct vfio_device *vdev, + struct vfio_region_info __user *arg); int (*mmap)(struct vfio_device *vdev, struct vm_area_struct *vma); void (*request)(struct vfio_device *vdev, unsigned int count); int (*match)(struct vfio_device *vdev, char *buf); diff --git a/include/linux/vfio_pci_core.h b/include/linux/vfio_pci_core.h index f541044e42a2ad..160bc2e31ece75 100644 --- a/include/linux/vfio_pci_core.h +++ b/include/linux/vfio_pci_core.h @@ -115,6 +115,8 @@ long vfio_pci_core_ioctl(struct vfio_device *core_vdev, unsigned int cmd, unsigned long arg); int vfio_pci_core_ioctl_feature(struct vfio_device *device, u32 flags, void __user *arg, size_t argsz); +int vfio_pci_ioctl_get_region_info(struct vfio_device *core_vdev, + struct vfio_region_info __user *arg); ssize_t vfio_pci_core_read(struct vfio_device *core_vdev, char __user *buf, size_t count, loff_t *ppos); ssize_t vfio_pci_core_write(struct vfio_device *core_vdev, const char __user *buf, -- 2.43.0 From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id eOPrDVyr+mjTTioAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 22:25:32 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 22:25:32 +0000 Received: from lists.archlinux.org ([95.217.236.249]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC3kR-0000000Bvsd-3cUt for hi@josie.lol; Thu, 23 Oct 2025 22:25:32 +0000 Received: from [95.217.236.249] (localhost [IPv6:::1]) by lists.archlinux.org (Postfix) with ESMTP id A93C55ED1235; Thu, 23 Oct 2025 22:25:29 +0000 (UTC) Received: from mail.archlinux.org (mail.archlinux.org [IPv6:2a01:4f9:c010:3052::1]) by lists.archlinux.org (Postfix) with ESMTPS id 4F7685ED1184 for ; Thu, 23 Oct 2025 22:25:05 +0000 (UTC) Authentication-Results: lists.archlinux.org; dkim=pass header.d=archlinux.org header.s=dkim-rsa header.b=joDB43mG; dkim=pass header.d=archlinux.org header.s=dkim-ed25519 header.b=pQ6yvKac; dmarc=pass (policy=none) header.from=archlinux.org; spf=pass (lists.archlinux.org: domain of heftig@archlinux.org designates 2a01:4f9:c010:3052::1 as permitted sender) smtp.mailfrom=heftig@archlinux.org X-Gm-Message-State: AOJu0YwkyoLqvJEndzKXqTPNuYN0w322TbFWmsK2XYMPT40mSuH5wmWr 9pz8CEK2iWpp9GeVpBXEQVD+Jm1jwWF26zwOjbzCwxaQfEVbXuJPvE2sFDSOt2x1W7rSQB3tNnm TG28gzL1cQVPiLF29z7FrR+my4FarA0Q= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-rsa; t=1761258305; 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: in-reply-to:in-reply-to:references:references; bh=uUaoMAgXNkAfnUfX5vX3PTIwRci5mcNIqPa/mkCMeso=; b=joDB43mGVCuTiZoR2EsXKER4j0zJIsPxH4TWKNhlz+FKlur2aNszdeOrcXYg8Eqs7okRy4 14MJLL82+JiwMwxsflIz6u6Ns1Z3p0mWr66IfRRU32urVFKlRYdqMLVi40jb8YKx6SgBvr H5CzegRZ+UwCn51nt6d7hOI/XyRDlLohWLvhJndPo+C+9A9S/0yOTl6lVJ2rPQs9X7qMGl nLPVfRwWLtKqNB1yeTSgBojdCDuoczdP/84oj3xTs9yaykHObEETWM35qCMFrBYgOfgKht SBbnwHSOCTfYYjCcv2fOdhvQCDv4uSdn9RMEBXg6fSs+9zZXfcclO5rfZdAEHUGZZbfW47 JaTWbH+pqG+MhMX077C+hF0SNHS0uO4kGZOXO0CVYqenheGpY2tdrOQOoGOHjhUEmm0Pty z6/FUAPHnj8U3AiZkIPau2sXpit98BAWiIh7QJ9rBh7cQWXCj/S5VJL7FRSRJCPoRqsQ3k f4fbAuhb2WeWeiga19DOiq2ER7yCDHHk4Q097aCB1ME1xOeMZ0KE0PDp3r7h+fWUZ4byrW GzBoKMhEvrk9h/fqSzoBkOasYywtni6fjYEplQL02V2pL2NPzj5AbkprWMDX76X5Zefwop vHeigRg3J7hMTmSTGGOIJBOygelpikbdfxkbEXHM3qY6EwNRM/gIs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=archlinux.org; s=dkim-ed25519; t=1761258305; 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: in-reply-to:in-reply-to:references:references; bh=uUaoMAgXNkAfnUfX5vX3PTIwRci5mcNIqPa/mkCMeso=; b=pQ6yvKactUv588rA+EFeWMyOfetnzloLqXKhTlbh3/HokQcMPOIlbF7TcDu5IeJ/LvcobY /cUlSE7/hQbor0BQ== X-Google-Smtp-Source: AGHT+IGS0LQMM8k5gKQDN/fUCRnLWre2LlBKwubjPIdwvHalZGefDEyyS9CBtwoEF5PKrxOwYi9VgaKprig02RuZc1Y= X-Received: by 2002:a17:90b:3803:b0:332:250e:eec8 with SMTP id 98e67ed59e1d1-33fd65fe245mr84657a91.15.1761258303682; Thu, 23 Oct 2025 15:25:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "Jan Alexander Steffens (heftig)" Date: Fri, 24 Oct 2025 00:24:51 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AS18NWB3IOYDocX_hwVI5CMGINsVWayQnv4xRJZhFyLdVCC8JqN9-lUSUvnvJcY Message-ID: Subject: Re: Remove GTK2 from the official repositories To: =?UTF-8?B?QmFsbMOzIEd5w7ZyZ3k=?= Cc: arch-dev-public@lists.archlinux.org Content-Type: multipart/alternative; boundary="0000000000008c80400641dae73c" X-Rspamd-Queue-Id: 4F7685ED1184 X-Spamd-Result: default: False [-3.70 / 15.00]; DWL_DNSWL_MED(-2.00)[archlinux.org:dkim]; DMARC_POLICY_ALLOW(-0.50)[archlinux.org,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[2a01:4f9:c010:3052::1:from]; R_DKIM_ALLOW(-0.20)[archlinux.org:s=dkim-rsa,archlinux.org:s=dkim-ed25519]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f9:c010:3052::1:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MISSING_XM_UA(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:24940, ipnet:2a01:4f9::/32, country:DE]; RCVD_COUNT_ZERO(0.00)[0]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[archlinux.org:+] X-Rspamd-Action: no action X-Rspamd-Server: lists.archlinux.org Message-ID-Hash: RYDOMOJK3IZWCY57ZQXS6NVOF5UR3KI4 X-Message-ID-Hash: RYDOMOJK3IZWCY57ZQXS6NVOF5UR3KI4 X-MailFrom: heftig@archlinux.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: "Public mailing list for Arch Linux development (staff only)" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-DKIM: signer='archlinux.org' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: -99.7 (---------------------------------------------------) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (-99.7 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [95.217.236.249 listed in list.dnswl.org] -0.0 USER_IN_WELCOMELIST User is listed in 'welcomelist_from' -100 USER_IN_WHITELIST DEPRECATED: See USER_IN_WELCOMELIST 1.5 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: -996 --0000000000008c80400641dae73c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Oct 24, 2025 at 12:13=E2=80=AFAM Ball=C3=B3 Gy=C3=B6rgy wrote: > Hi all, > > I think we've reached the point when we can remove the very old GTK2 > package from the official repositories. I recently dropped the GTK2 > version of LXDE, and there are only a few applications left that still > depend on GTK2: > > - alltray > - amsynth > - bless > - calf > - eq10q > - gimp-nufraw > - gkrellm > - gpsim > - gtk2fontsel > - gtk-chtheme > - hexchat > - hexter > - leafpad > - mono-tools > - nitrogen > - nspluginwrapper > - osdlyrics > - parcellite > - pidgin > - sbxkb > - trayer > - xboard > - xdialog > - xlockmore > > Most of these have no active development a long time ago. If no one has > objections, I'll drop these packages to AUR in the next days if it's > not possible to build them without GTK2. > > Any opinion? Please. Thanks for tackling this! --0000000000008c80400641dae73c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, Oct 24, 2025 at 12:13=E2=80=AFAM Ball= =C3=B3 Gy=C3=B6rgy <bgyorgy@arc= hlinux.org> wrote:
Hi all,

I think we've reached the point when we can remove the very old GTK2 package from the official repositories. I recently dropped the GTK2
version of LXDE, and there are only a few applications left that still
depend on GTK2:

- alltray
- amsynth
- bless
- calf
- eq10q
- gimp-nufraw
- gkrellm
- gpsim
- gtk2fontsel
- gtk-chtheme
- hexchat
- hexter
- leafpad
- mono-tools
- nitrogen
- nspluginwrapper
- osdlyrics
- parcellite
- pidgin
- sbxkb
- trayer
- xboard
- xdialog
- xlockmore

Most of these have no active development a long time ago. If no one has
objections, I'll drop these packages to AUR in the next days if it'= s
not possible to build them without GTK2.

Any opinion?

Please. Thanks for tackling this!
=C2=A0
--0000000000008c80400641dae73c-- From - Fri Oct 24 06:52:27 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 0Hl6J9+1+mjjFioAYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:10:23 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:10:23 +0000 Received: from am.mirrors.kernel.org ([147.75.80.249]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4Rr-0000000DJ3E-04Ag for hi@josie.lol; Thu, 23 Oct 2025 23:10:23 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 28EBD19A273E for ; Thu, 23 Oct 2025 23:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0FD42D3A9C; Thu, 23 Oct 2025 23:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="LMc1qbh9" X-Original-To: linux-s390@vger.kernel.org Received: from CY7PR03CU001.outbound.protection.outlook.com (mail-westcentralusazon11010014.outbound.protection.outlook.com [40.93.198.14]) (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 F0A622D0615; Thu, 23 Oct 2025 23:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.93.198.14 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260994; cv=fail; b=aJcPiy59cKEKsmBH4gtprH/HrSRI4L+Q5m3mq3K1oHDrg41MLuMuVklQmuJbx4OiAsM74CNSWbiRl9yVsWcFk8Lrd7jWKmW0ioHOuViDie+hCNCfsSC1HktSx8odEMGeVNJMAXEXOTyEDfwMVUA4oVsD/z+jC3+gzofN2eal5zI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260994; c=relaxed/simple; bh=Wmqu3YRD5+Ff59lDHqH2QWwnVWqEw8ISEaquH9wP8kw=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=pvw27OMcbR9TMBwvyKfa7Hzzcgjak7wQDeduZqBeptLqaenz+xqkL3LF3SjFPtJVv1lDP0wscb5EEJ/1QBDC5EQd9amdoxedtiuv+UhGKtXDlh8FdJgSbYLj8YZoqul7caueTkw7mEmyr9hISVJTBrcWWxRa351WxCY1AnfcpjE= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=LMc1qbh9; arc=fail smtp.client-ip=40.93.198.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sGEnkULzLdjVjpUwF/2Qkwi1UAe88RX0s9lkjl5Xf6GSERFIxJDkzM4TxqhUBMU3LADqhz/drwskUdgtuy3Izk4Z7n+kBsHch1FL/lo19ym9H309+NsjI1DZBpQOmZMlVf7zCKnSaIbpQKbHw7DWAX3a6kXAFwd+QyawK5tsnedJETeQ1LKay8xgoDzhwZ/adAX9/cVDBlpB2Gtg5MA3F0DzxG7NAi7ZKnATZqir7qbyozq/zbGQRhcJzhz6ovQS2sFXCA0oJb0lS/6XQTG31EzViXVrV/oKfGWZsI510OwZ5g7h1rU3/5c4NptYuMG0lgJMfOPJx8YFv9JNo8tlSw== 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=UXsrjPLvZWHxtOZq/LSmrbxapzUipJGoJCMMC0J+61Q=; b=IHoPLhmrVJkt5FrhRHet5i/cawqF9ooDnkNTSU23Isqrom1a3hGoEyozZoWiswItOF/CAamdXKvE+gHn/fhreT0Di7bZtabhIAddbfgJdqZG99PQ4F+7uvZG6RRX4w/cCh+9ArXl3nvplt/NoZo1rqWw1hVa2L5etPwHBMlJfcR21n6W6bo1PjjrvmWYp+5/Zh6msEoCvKJ5kMGnCKaMt6GHrsgkBeZr1Y7aBrTRWLt2MGenv4pYz9ty9jvg48NoibhJSVAx8ezhUvWntWhDiIfoi/GfMtDDEv7tKkeqkW5C7oJ88dIPE689DCSmBdlhzKqI/gP4EYFVF2UfhEHvgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UXsrjPLvZWHxtOZq/LSmrbxapzUipJGoJCMMC0J+61Q=; b=LMc1qbh9tuALSgaGPr7oAtKbEardZ4iRJA64M2Wfwxc+jVoVbLPPh+uQMe3sg0jgozROKWTHMm6rj454CsS+NN0b+Mn/+qS/DymWHLJRLI+28qiqSCV8F6NB1lyBB7DsdcdGpxl56E03RbnhTAuQARarhaHPlpBcvvLEm+0faktkSPNQpYYWKFs6whm1j1wuI7vuljCfBsEnVwSDJfFsAmvTjWUQiwM6BoTU2XvFdimBwIzXTs3BhjiNztHKqswiC1ZxP36CNRWFigTZvzRxmjp5jBPPATsB52Mo4i700JwFotBvtCiIpT+G/129tiaFBsupHfh68Zdk3yj29KTcZQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) by SJ2PR12MB9138.namprd12.prod.outlook.com (2603:10b6:a03:565::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9253.13; Thu, 23 Oct 2025 23:09:45 +0000 Received: from MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b]) by MN2PR12MB3613.namprd12.prod.outlook.com ([fe80::1b3b:64f5:9211:608b%4]) with mapi id 15.20.9253.011; Thu, 23 Oct 2025 23:09:45 +0000 From: Jason Gunthorpe To: Alexander Gordeev , David Airlie , Alex Williamson , Ankit Agrawal , Christian Borntraeger , Brett Creeley , dri-devel@lists.freedesktop.org, Eric Auger , Eric Farman , Giovanni Cabiddu , Vasily Gorbik , Heiko Carstens , intel-gfx@lists.freedesktop.org, Jani Nikula , Joonas Lahtinen , Kevin Tian , kvm@vger.kernel.org, Kirti Wankhede , linux-s390@vger.kernel.org, Longfang Liu , Matthew Rosato , Nikhil Agarwal , Nipun Gupta , Peter Oberparleiter , Halil Pasic , Pranjal Shrivastava , qat-linux@intel.com, Rodrigo Vivi , Simona Vetter , Shameer Kolothum , Mostafa Saleh , Sven Schnelle , Tvrtko Ursulin , virtualization@lists.linux.dev, Vineeth Vijayan , Yishai Hadas , Zhenyu Wang , Zhi Wang Cc: patches@lists.linux.dev Subject: [PATCH 00/22] vfio: Give VFIO_DEVICE_GET_REGION_INFO its own op Date: Thu, 23 Oct 2025 20:09:14 -0300 Message-ID: <0-v1-679a6fa27d31+209-vfio_get_region_info_op_jgg@nvidia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: BY5PR17CA0036.namprd17.prod.outlook.com (2603:10b6:a03:1b8::49) To MN2PR12MB3613.namprd12.prod.outlook.com (2603:10b6:208:c1::17) Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB3613:EE_|SJ2PR12MB9138:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fcb4de7-7969-4140-2fb1-08de12893fe8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|7416014|376014|366016|921020; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?+ZgqWJBF28ap01s/uhon6y7ya5nkraO4UXn1dUtmG0WXxGUWr7XWhyHbpGfM?= =?us-ascii?Q?0/56SMSeu3roOt5slsIV2qbl/bC8nGzhu2I5eYHPmwZk3TEL6OU47B4qSw7V?= =?us-ascii?Q?KLJv3Z6qBNRzQzjYuI5mtiaPW+HNTArI16GsPT8dT3InyM0u+rSn4vq4q8AY?= =?us-ascii?Q?ti4/9t+fWBlVz9MAFpQ38k8sDlrr1Gm35BkcEwNc73r+M8d96OQNzV728PBA?= =?us-ascii?Q?paQIZoxq4YQ7wgBBGlnNjQc73UO18m42BxxWrENlG/LmGhJgetiNgfkl5xx5?= =?us-ascii?Q?GqjmxVGqB1Mv8gA2EQNg6a94uNDHfpJfR2vKprKlV3Sd5KyevJXrploWyErp?= =?us-ascii?Q?Ej5QH0ueTwMGiMbXUSJKrsHmnqvYgIu+3I8IDRjIhvBF7yn4aOZS+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xGxa1C7I12/PIyDgdGDSKHKHZY0qUeD++5cUuYQND?= =?us-ascii?Q?fWBl7to0gmbz0uxE+RuCxecduSgP3ajJmggTOLsWVxdVYgb99J1W7IrMfa61?= =?us-ascii?Q?33FeOue4GExsZFevi6bjYS14Rf0aga8cIOX/yCeVIUg596b09Yw7wRRuir42?= =?us-ascii?Q?LVa4c9xQgnVdHe7a7XPAEqGDQHpX9gvDM82QuSt8GuS7m0HqE4pKfiRVHjZ0?= =?us-ascii?Q?+AKN04K/QA7/CUg=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB3613.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(7416014)(376014)(366016)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?TjwtkCNm91ZjJQ4Brrx4FF+6Vc4ZYa6doJZlQkh/L2XyOfQSmL0i67jg/c/N?= =?us-ascii?Q?/l5aHsugyuhJ7oQ0nntLL+GdWUZfLuJaG9aOqFJ46tSESAaDtljPbno1KhqB?= =?us-ascii?Q?ukmq52krRf6lEyZNe/DxH4WB7q+5Nj47ccQmL+QPLid2+GdT33EqKI4OsqHK?= =?us-ascii?Q?w6JM7LUy1MQ5GYDrWSL5U9vQiO8bPZVPuBcYBnAzLmzxxHgrvMj9+Dnueifi?= =?us-ascii?Q?FZbG79mbeVjyrTMrfeOuQ+2atkIzxtdkbamEVVGrePpzVfdxtd8q+Tr4ZQR0?= =?us-ascii?Q?+fhDc/YxjT1iMX1EdWdtBALCJl2HobD5nLy4qN02mrUE1R3jgjJQMA7V3uDr?= =?us-ascii?Q?sv+JPcGLU1awfU6Bf+/YJnWBnMCVA68UD0+aESseTeGuQ11DxProion6Fl21?= =?us-ascii?Q?VxTUVEeQ1J1vFSzvLqau79QUzmRMOcyMyKgv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?Q?Ajlv3CuunthuRjkLgj940G7y/eNDLvyTukKK69HahKOPsIIKMBmuMJRALE3s?= =?us-ascii?Q?VFR9MGAEDX+JgO5b4sVEUK3dSro65HxWIEfeUM3r5NVIJdg5suR+G6IbyEs+?= =?us-ascii?Q?DreeedJJg0t8LJo3YziNA8QDUB79Z2kjX5kYEbhupvlijEcopJLmAHCXV1BX?= =?us-ascii?Q?jJBBhLf85FuiBINJGMAKcIhAb5iby5qgcfnZUBseZHEN/cx92kIed/jBoxgE?= =?us-ascii?Q?PJPPXAL3L/6b8hLe0CQxSHClReI2K7wemWwQjosC?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fcb4de7-7969-4140-2fb1-08de12893fe8 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB3613.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2025 23:09:42.7333 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /OsV3UXLWE/xVfC7yfPB15bzGg2lqhjSMgEX/BDnLFCU38RDyU82Q1+gpj9UejXp X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR12MB9138 X-DKIM: signer='Nvidia.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: -1.9 (-) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (-1.9 points) --- pts rule name description ---- ---------------------- ----------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [147.75.80.249 listed in list.dnswl.org] 1.5 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: -18 There is alot of duplicated code in the drivers for processing VFIO_DEVICE_GET_REGION_INFO. Introduce a new op get_region_info_caps() which provides a struct vfio_info_cap and handles the cap chain logic to write the caps back to userspace and remove all of this duplication from drivers. This is done in two steps, the first is a largely mechanical introduction of the get_region_info(). These patches are best viewed with the diff option to ignore whitespace (-b) as most of the lines are re-indending things. Then drivers are updated to remove the duplicate cap related code. Some drivers are converted to use vfio_info_add_capability() instead of open coding a version of it. This is on github: https://github.com/jgunthorpe/linux/commits/vfio_get_region_info_op Jason Gunthorpe (22): vfio: Provide a get_region_info op vfio/hisi: Convert to the get_region_info op vfio/virtio: Convert to the get_region_info op vfio/nvgrace: Convert to the get_region_info op vfio/pci: Fill in the missing get_region_info ops vfio/mtty: Provide a get_region_info op vfio/mdpy: Provide a get_region_info op vfio/mbochs: Provide a get_region_info op vfio/platform: Provide a get_region_info op vfio/fsl: Provide a get_region_info op vfio/cdx: Provide a get_region_info op vfio/ccw: Provide a get_region_info op vfio/gvt: Provide a get_region_info op vfio: Require drivers to implement get_region_info vfio: Add get_region_info_caps op vfio/mbochs: Convert mbochs to use vfio_info_add_capability() vfio/gvt: Convert to get_region_info_caps vfio/ccw: Convert to get_region_info_caps vfio/pci: Convert all PCI drivers to get_region_info_caps vfio/platform: Convert to get_region_info_caps vfio: Move the remaining drivers to get_region_info_caps vfio: Remove the get_region_info op drivers/gpu/drm/i915/gvt/kvmgt.c | 272 ++++++++---------- drivers/s390/cio/vfio_ccw_ops.c | 45 +-- drivers/vfio/cdx/main.c | 29 +- drivers/vfio/fsl-mc/vfio_fsl_mc.c | 43 ++- .../vfio/pci/hisilicon/hisi_acc_vfio_pci.c | 54 ++-- drivers/vfio/pci/mlx5/main.c | 1 + drivers/vfio/pci/nvgrace-gpu/main.c | 53 +--- drivers/vfio/pci/pds/vfio_dev.c | 1 + drivers/vfio/pci/qat/main.c | 1 + drivers/vfio/pci/vfio_pci.c | 1 + drivers/vfio/pci/vfio_pci_core.c | 110 +++---- drivers/vfio/pci/virtio/common.h | 5 +- drivers/vfio/pci/virtio/legacy_io.c | 38 +-- drivers/vfio/pci/virtio/main.c | 5 +- drivers/vfio/platform/vfio_amba.c | 1 + drivers/vfio/platform/vfio_platform.c | 1 + drivers/vfio/platform/vfio_platform_common.c | 40 ++- drivers/vfio/platform/vfio_platform_private.h | 3 + drivers/vfio/vfio_main.c | 45 +++ include/linux/vfio.h | 4 + include/linux/vfio_pci_core.h | 3 + samples/vfio-mdev/mbochs.c | 71 ++--- samples/vfio-mdev/mdpy.c | 34 +-- samples/vfio-mdev/mtty.c | 33 +-- 24 files changed, 363 insertions(+), 530 deletions(-) base-commit: 211ddde0823f1442e4ad052a2f30f050145ccada -- 2.43.0 From - Fri Oct 24 06:52:28 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id 4B2HJeD0+mgAPgoAYBR5ng (envelope-from ); Fri, 24 Oct 2025 03:39:12 +0000 Return-path: Envelope-to: pfeifferj@archlinux.ch Delivery-date: Fri, 24 Oct 2025 03:39:14 +0000 Received: from 174-205.static.mgt.uber.com ([204.220.174.205]) by witcher.mxrouting.net with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC8e0-00000003wF7-0LEy for pfeifferj@archlinux.ch; Fri, 24 Oct 2025 03:39:12 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mgt.uber.com; q=dns/txt; s=smtp; t=1761277151; x=1761284351; h=Content-Transfer-Encoding: Content-Type: Reply-To: Message-Id: To: To: From: From: Subject: Subject: Mime-Version: Date: Sender: Sender; bh=sng0JyATFjBgcGQQh0NaC+5vLCM2NWzKrpxeFuDHhfs=; b=dWQ6m+0LtPm1DxMDCN3XO+7NMYypVdukZRwNXuHlisKiAst8iPBLM24YRcAX8OMJjTMaaSsNGm1fi6MZiWZPq7is9IK6m0CouAcJAVssClHWU8KBYlTQqBV0tTB0i1yzBVTgTDFbpa9jO61qunbIsEdrERpVXuJ0fsTvbGgFoiQ= X-Mailgun-Sid: WyJiNjU2NCIsInBmZWlmZmVyakBhcmNobGludXguY2giLCIzOTg1NmMiXQ== Received: by f8a88640745cec950188686ad2aa5d68b745eac4f17247e3a334997699cc7165 with HTTP id 68faf4df6a40f311da0fd465; Fri, 24 Oct 2025 03:39:11 GMT X-Mailgun-Sending-Ip-Pool-Name: Transactional - mgt.uber.com X-Mailgun-Sending-Ip-Pool: 65ce974fb237599bd52e73ed X-Mailgun-Sending-Ip: 204.220.174.205 Sender: noreply=uber.com@mgt.uber.com Date: Fri, 24 Oct 2025 03:39:11 +0000 Mime-Version: 1.0 Subject: [Personal] Your Thursday evening order with Uber Eats From: Uber Receipts To: pfeifferj@archlinux.ch X-Mailgun-Tag: completed_receipt Message-Id: <9e038b7e-b238-54b3-a9dd-35dc0952affb@mail.uber.com> X-Uber-Id: 9e038b7e-b238-54b3-a9dd-35dc0952affb Reply-To: no-reply@replies.uber.com X-Mailgun-Variables: {"client_uuid": "90a81795-750c-407b-aecc-ddc495de7c18", "from_email": "noreply@uber.com", "job_uuid": "729b1da3-75c6-525b-8dc0-d6732084c387", "mainRecipient": "", "message_type": "transactional", "message_uuid": "9e038b7e-b238-54b3-a9dd-35dc0952affb", "receipt_templater": "completed_receipt", "to_user_uuid": "90a81795-750c-407b-aecc-ddc495de7c18", "unique_id": "9e038b7e-b238-54b3-a9dd-35dc0952affb"} Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-DKIM: signer='mgt.uber.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 6.2 (++++++) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (6.2 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: cloudfront.net] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [204.220.174.205 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [204.220.174.205 listed in wl.mailspike.net] 1.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or identical to background 1.5 HTML_MESSAGE BODY: HTML included in message 0.0 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area 2.0 MIME_HTML_ONLY BODY: Message only has text/html MIME parts 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 1.7 LOTS_OF_MONEY Huge... sums of money 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders SpamTally: Final spam score: 62
3D"" From - Fri Oct 24 06:52:28 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id UN+cAfoU+2hWUBwAYBR5ng (envelope-from ); Fri, 24 Oct 2025 05:56:10 +0000 Return-path: Envelope-to: pfeifferj@archlinux.ch Delivery-date: Fri, 24 Oct 2025 05:56:10 +0000 Received: from webgridi128.slgnt.de ([91.230.177.128]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vCAmT-00000007wyp-0wnt for pfeifferj@archlinux.ch; Fri, 24 Oct 2025 05:56:09 +0000 From: "Austrian Airlines" To: "Josephine Pfeiffer" Reply-To: "" Subject: Not just a winter trend: Vienna from CHF 189 MIME-Version: 1.0 Date: Fri, 24 Oct 2025 05:56:03 +0000 List-Unsubscribe: , List-Unsubscribe-Post: List-Unsubscribe=One-Click X-MA-Reference: SIM_fSgfIxN_QRxVzI_PH6I8n%2B0iLyTQUFnup1ykdzaqgziCrUcLc X-MA-Instance: SIM_fSgfIxN_QRxVzI_PH6I8n%2B0iLyTQUFnup1ykdzaqgziCrUcLc.bbe68d54f6a459d298aef88817608874 X-rpcampaign: lufthansa_1882_1000300_6341 Feedback-ID: 233b92887a1f434988e47869f75b06a4:1882:SLGNT X-CSA-Complaints: csa-complaints@eco.de List-ID: <19.1882.newsletter.austrian.com> X-MailingID: 1882_0 X-GRID-REF: SDCPrd.PATT3L0_233b92887a1f434988e47869f75b06a4_mmgpyVpDfsY-117HorB1BmmHFOUeYe/OBs9iGEmAL-IvffYSVHbaQP59VNzaKT9NYL7XS1ImLakXRKJUoGosb5YKVoNAZVcMr5sVpO4qG/U5Qi3AWNLafyYCGJitdzcQ X-SDC-Acc: 1c3886c6-b7de-485b-b2de-265dee135025 X-SDC-Shard: avalon X-SDC-ExtRef: 233b92887a1f434988e47869f75b06a4_282940997 Message-Id: <8805ba90d63644a4ae933d2576e30b9d@slgnt.eu> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newsletter.austrian.com; s=sim; x=1761890163; i=@newsletter.austrian.com; h=from:to:reply-to:subject:mime-version:date:list-unsubscribe:list-unsubscribe-post:feedback-id:x-csa-complaints:list-id:message-id; bh=Kra4Vlwk1cbdwVY8RCT3sVX1/TGx6am6DgAA+9akkLk=; b=XT+GcZhXxzfqOplU+K8ysrgk/quIN7j7uv6auWzNuKVosVcbW+tT1HovzhumNLgQetnfKB6017U8nIGEdeIM0QqrvLnB61U0gA9Uq+rAxo5CPbQ56pX9pMJRrjhoH2W3akrapmLYPP+klhnu17xDEcY+akkx6t8Dd17toZoMP5EDGbuXi/0JtEM781vp9rWbNPZtgCM8M0Finf2XGE0zxQu4XvMWBnM4VYwaOv/k1NvPuWzUVsV8AfkaKfmwGGz+KwROtW70mZL1zQrAMAzQWqDKrQq0k3hVJs9tS3PMQZ3b08cGo9IH04KowAf1BAyKLc0t+0ddvLOkysE2aGJExw== Content-Type: multipart/alternative; boundary="_NexPart_001_" X-DKIM: signer='newsletter.austrian.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-DKIM: signer='@newsletter.austrian.com' status='pass' reason='' X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (2.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: slgnt.eu] 1.5 HTML_MESSAGE BODY: HTML included in message 0.1 MIME_HTML_MOSTLY BODY: Multipart message mostly text/html MIME 1.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or identical to background -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [91.230.177.128 listed in list.dnswl.org] 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 25 --_NexPart_001_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Servus Josephine Pfeiffer, You have received the Austrian Newsletter=21 Please click here to read th= e newsletter: https://newsletter.austrian.com/sLkYjHTcFKyPGc9b_nS4__/vHna8WJY9KoIhxRL/c= CEW0JT6bqonzcYg/R7T8TFQqGz6rbvlb/z2XRApZCJ5pX9yt3/d_Aobp7ZgIRo7COP/om0/XO= Fi.php?ID=3DQQGkLKya  --_NexPart_001_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <=21DOCTYPE HTML PUBLIC =22-//W3C//DTD HTML 4.01 Transitional//EN=22 =22h= ttp://www.w3.org/TR/html4/loose.dtd=22>Not just a winter trend: Vienna fr= om CHF 189 <=21--=5Bif (gte mso 9)=7C(IE)=5D>96<=21=5Bendif=5D--> =09
Timeless beauty - where cult= ure, style and indulgence meet
 ‌ ‌ ‌ &zwn= j; ‌ ‌ ‌ ‌ ‌ &zwnj= ; ‌ ‌ ‌ 
3D=22=22
=
<= /table>
@media screen and (max-width:450px){.imgLogo{max-width:160px}}<= table width=3D"100%" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" style= =3D"border:none;border-collapse:collapse;border-spacing:0;mso-table-lspace:= 0;mso-table-rspace:0;width:100%">
&= nbsp;
<= tbody>
 <= tbody>
Total CHF=C2=A028.95
23 October 2025
 
 
<= tr>
 
 
<= table width=3D"100%" border=3D"0" cellpadding=3D"0" cellspacing=3D"0" style= =3D"border:none;border-collapse:collapse;border-spacing:0;mso-table-lspace:= 0;mso-table-rspace:0;width:100%">
Powered by Uber on behalf of your restaurant partner.
=
Here's your receipt for LUIGIA (Z=C3=BCrich).
=
= =
 
 
<= !--[if (gte mso 9)|(IE)]>
Total= CHF=C2=A028.95
=
 
To view your full receipt go to Uber Eats , or download this PDF
 
<= td class=3D"Uber18_text_p2" valign=3D"top" align=3D"left" style=3D"color:#0= 00;font-family:uber18-text-bold,helveticaneue-light,helvetica neue light,He= lvetica,Arial,sans-serif;font-size:16px;line-height:20px;padding-bottom:5px= ;padding-right:12px;padding-top:5px;direction:ltr;text-align:left">Payments= <= /tbody>
 
=
<= td data-testid=3D"payments_0_Card.String" class=3D"Uber18_text_p1" align=3D= "left" style=3D"color:#000;font-family:uber18-text-regular,helveticaneue-li= ght,helvetica neue light,Helvetica,Arial,sans-serif;font-size:16px;line-hei= ght:20px;padding-bottom:2px;padding-right:5px;padding-top:2px;direction:ltr= ;text-align:left;font-weight:bolder">Mastercard =E2=80=A2=E2=80=A2=E2=80=A2= =E2=80=A22196
24/10/2025 05:39
CHF=C2=A028.95
Visit the o= rder page for more information, including invoices (where available).
xid729b1da3-75c6-525b-8dc0-d6732084c387
pGvlI2ANUbXFfyEOgxta1RMV082993
=
Switch payment method >
=
 
=
You orde= red from LUIGIA (Z=C3=BCrich)
Delivered to<= tr>
General-Wille-Strasse 8, 8002 Z=C3=BCrich, Switz= erland
=
3D"Restaurant
=
Delivered by Peter
=
 
<= !--[if (gte mso 9)|(IE)]>
=
 
 
Forgotten password
Privacy
Terms<= /a>
Uber= Eats Switzerland GmbH
Dufourstrasse 49
8008 Z=C3=BCrich
 
 <=21-- WCAG Compli= ant Version - OS CSS --> <=21-- WCAG Compliant Version - OS CSS --> <=21-= - :: Start Short Preheader Fix--> <=21-- :: This code will remove all ext= ra text characters from the preheader line so that only subject + prehead= er are visible -->
 ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌ 
=
3D=22=
=

Cannot see this email? Click here to view in a bro= wser.

 =
 
<=21--=5Bif gte mso 9=5D> <=21=5Bendif=5D--> <=21-- Add conditional code: if no off= ers available, padding-top:360px and hide offers -->
<=21-- padding-left:34px;padding-right:= 34px; --> <=21-- (1) Offer --= >
<=21-- padding-left:20px;paddin= g-right:20px; --> <= /tr>
=
Vienna
<= tr>
from
189 CHF
<=21--=5Bif = gte mso 9=5D> <=21=5Bendif=5D-->
 
 
 =
 
 
= =
3D=22Discover
=
=
Highlights for every taste
<= td class=3D=22darkConvertGrey=22 style=3D=22padding-bottom: 20px; color:= =23000000; font-weight:normal; font-family: 'Core Sans Regular', Arial, = Helvetica, sans-serif; font-size:15px; line-height:20px; mso-line-height-= rule:exactly;=22 > <=21--=5Bif mso=5D><=21-- --> <=21--<=21=5B= endif=5D-->
=

Elegant, indul= gent and full of culture =E2=80=93 Vienna always enchants, but in winter = the city reveals why it=E2=80=99s truly timeless. Between glittering ligh= ts and cosy coffee houses, music and museums, dazzling balls and fine din= ing =E2=80=93 an experience that warms both heart and senses.

  • Winter magic: Q= uiet courtyards, coffeehouse charm & special moments
  • = Ball season: Glamorous nights filled with = tradition & waltz melodies
  • Pure cul= ture: Blockbuster exhibitions & seasonal highlights
  • =
  • Hungry for more: A star chef o= n a culinary tour through Vienna
<=21--table cellpadding=3D=220=22 cellspac= ing=3D=220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22presentation=22= >
Discover Vienna
&nb= sp;
=
=
3D=22starting
A classic - and still a trend
<= td class=3D=22darkConvertGrey=22 style=3D=22padding-bottom: 20px; color:= =23ffffff; font-weight:normal; font-family: 'Core Sans Regular', Arial, = Helvetica, sans-serif; font-size:15px; line-height:20px; mso-line-height-= rule:exactly;=22 > <=21--=5Bif mso=5D><=21-- --> <=21--<=21=5B= endif=5D-->
Some cities come and go with seasons = - Vienna endures. Discover winter elegance that never fades and savour th= e city's unmistakable charm and timeless joie de vivre.
=
<=21--table cellpadding=3D=22= 0=22 cellspacing=3D=220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22= presentation=22>
<= /table>
Book flight to Vienna
=
 

Be well-prepared and you=E2=80=99re half way there

<=21---->
3D=22Newsp=
Travel briefing =E2=80=93 everything at = a glance
= <=21---->
3D=22Plane
Travel ID =E2=80=93 lots of options<= /strong>
=
-->
3D=22Riesenrad
<=21--
Discover Vienna=
<=21--<= td style=3D=22font-family: 'Core Sans Regular', Arial, Helvetica, sans-se= rif; color: =23d81e05; font-size: 14px; line-height: 20px; text-align:lef= t; mso-line-height-rule:exactly; max-height: 999999px; word-wrap: break-w= ord; word-break: break-word; text-decoration: none;=22> = -->
3D=22C=
Vienna City Card
<= /th>
 
 
 
<=21-- QR TravelID OS NL Perm TravelID OS DCP MM OS NL Perm= MM OS DCP Premium Mailing Contact types: MAM NEWSLETTER ONEID_BASIC ONEID_FFP Contact sub types: FTL HON INST SEN BASE --> <=21-- WCAG Compliant Version - OS Footer --> <=21-- Socials -->
3D=22Facebook=22
3D=22Facebook=22
3D=22TikTok=22
3D=22TikTok=22
3D=22YouTube=22
3D=22YouTube=22
3D=22Instagram=22
3D=22Instagram=22
3D=22=
<= img class=3D=22darkimage=22 src=3D=22https://newsletter.austrian.com/ima= ges/SMC/OS/i-myaustrianblog-dark.png=22 alt=3D=22Austrian=22 border=3D=22= 0=22 width=3D=2260=22 style=3D=22width:60px; max-width:100%; display:bl= ock;=22 />
3D=22Contact=22
3D=22Contact=22
=
<=21-- Disclaimers --> <= table class=3D=22darkConvertGrey=22 cellpadding=3D=220=22 cellspacing=3D= =220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22presentation=22 = >

<=21-- TRAVELID NL --> You are receiving this email to pfeifferj=40archlinux.ch because yo= u have given your consent to receive Austrian=E2=80=99s newsletter in you= r Travel ID profile under =E2=80=9CMy profile=E2= =80=9D =E2=80=93 =E2=80=9CCommunication settings=E2=80=9D= . <=21-- TRAVELID DCP --> <=21-- MAM NL --> <=21-- = MAM DCP --> <=21-- QR --> <=21-- Fallback -->

3D=22Arrow <= a href=3D=22https://newsletter.austrian.com/sLkYjHTcFKyPGc9b_nS4__/4dPWHU= IKrllVctnb/NSGT60OkXGEo6ZQc/3gH9eAE86kI3xG87/pWkP3FSCGvnHfCJG/WaUV5bO_BNa= UFGR8/-s4/XOFi.php?ID=3DQQGkLKya=22 unsubscribe-link=3D=22true=22 targe= t=3D=22_blank=22 style=3D=22font-family: 'Core Sans Regular', Arial, Hel= vetica, sans-serif; color: =23d81e05; font-size: 15px; line-height: 15px;= text-align: left; text-decoration: none;=22 aria-label=3D=22Unsubscribe= from emails=22 > Unsubscribe
3D=22Arrow Data
=
3D=22A For scheduled flights this includes: Outward and return= journey including all taxes, fees and charges. Terms and conditions appl= y. Limited number available. Errors excepted.
Please do not reply to this email. If you have any ques= tions please click here.
<=21-- Links -->
=
Imprint=
Ter= ms & Conditions
Privacy Policy
<= /td>
<=21-- Company info -->
=
Austrian Airlines AG
Office Park= 2
P.O. Box 100
A-1300 Vienna-Airport
www.austrian.com
=
Head office: Vienna
Legal form: = public limited company
Commercial register number: 111 000k, Vienna C= ommercial Court
Executive Board:
Annette Mann, S= tefan-Kenan Scheib
Chair of the Board: Dr. Till Streichert
 
  --_NexPart_001_-- From - Fri Oct 24 06:52:28 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id ALrCGTsU+2hgURwAYBR5ng (envelope-from ) for ; Fri, 24 Oct 2025 05:52:59 +0000 Return-path: Envelope-to: milesandmore@josie.lol Delivery-date: Fri, 24 Oct 2025 05:52:59 +0000 Received: from webgridi031.slgnt.de ([91.230.177.31]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vCAjS-00000007rab-1HF1 for milesandmore@josie.lol; Fri, 24 Oct 2025 05:52:59 +0000 From: "Austrian Airlines" To: "Josephine Pfeiffer" Reply-To: "" Subject: Not just a winter trend: Vienna from CHF 189 MIME-Version: 1.0 Date: Fri, 24 Oct 2025 05:52:56 +0000 List-Unsubscribe: , List-Unsubscribe-Post: List-Unsubscribe=One-Click X-MA-Reference: SIM_w%2Bvw37t7rBNaeOMxESFez2ItXVGPOvWX%2B7K%2BzfPQQEAnIUUwB X-MA-Instance: SIM_w%2Bvw37t7rBNaeOMxESFez2ItXVGPOvWX%2B7K%2BzfPQQEAnIUUwB.bbe68d54f6a459d298aef88817608874 X-rpcampaign: lufthansa_1882_1000300_6341 Feedback-ID: 2b9173f5e7c24ed8847d0b09a01fb3ae:1882:SLGNT X-CSA-Complaints: csa-complaints@eco.de List-ID: <19.1882.newsletter.austrian.com> X-MailingID: 1882_0 X-GRID-REF: SDCPrd.PATT3L0_2b9173f5e7c24ed8847d0b09a01fb3ae_qluxs-3P-bW2l0FggjtyVwwMy/69vmqvj/gRjCvFiQD8FfjJYTvKqMFIIZrHp0t6skvsMaJt5nguf5oL0yqTES3Xq8-HyGNowHju1qm2m5zFQpRJ50-mGcyeIAc9ITBq X-SDC-Acc: 1c3886c6-b7de-485b-b2de-265dee135025 X-SDC-Shard: avalon X-SDC-ExtRef: 2b9173f5e7c24ed8847d0b09a01fb3ae_282797270 Message-Id: <19cfc23036c845c4be7212198bc5ed03@slgnt.eu> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newsletter.austrian.com; s=sim; x=1761889976; i=@newsletter.austrian.com; h=from:to:reply-to:subject:mime-version:date:list-unsubscribe:list-unsubscribe-post:feedback-id:x-csa-complaints:list-id:message-id; bh=/LpWk7m1nPRZTfjDXene+IAhiOv0z14hnc9YxWnIiNQ=; b=b++1k9ChhHK8+Uhd6eyQ+TSbqAyU13p3A3XxKHPJLpl4hB0oEJL1zXewsOE4hoUbj+XmCCTjLnKFTxgUfru2wigjoDUHXUVuvxKbrHf/R36215PEMygUqKAUI1/g93l2T0sjKMPOocrQqfxzWBx5k3YcHVDkCqlshxK48QhX8w6YSS/OFGz1Lsz8AnuYdPcPcFCSoaJhilhilnThgInSAZhToEgf/M4xT2sCLYPXbMFfSE7BopCgBLLSOC94dyWHwwTEWhJ38ajoXiVujKTA0+IXc5+p4NDsiQGxfSP64qCmuH3ACq9Zl6+10auf30kCUWKGUMoX+gWz96v+YJT/4w== Content-Type: multipart/alternative; boundary="_NexPart_001_" X-DKIM: signer='newsletter.austrian.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-DKIM: signer='@newsletter.austrian.com' status='pass' reason='' X-Spam-Score: 2.5 (++) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (2.5 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: austrian.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [91.230.177.31 listed in list.dnswl.org] 1.5 HTML_MESSAGE BODY: HTML included in message 0.1 MIME_HTML_MOSTLY BODY: Multipart message mostly text/html MIME 1.0 HTML_FONT_LOW_CONTRAST BODY: HTML font color similar or identical to background -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender SpamTally: Final spam score: 25 --_NexPart_001_ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Servus Josephine Pfeiffer, You have received the Austrian Newsletter=21 Please click here to read th= e newsletter: https://newsletter.austrian.com/8GOiXGx3xhM7_BlUmgUcMS/iPoAnW0OnTHAnNKY/6= SGTNXWU_ccTPBC8/Ee5SJy8jn-sc1UxT/plvPRS6uCV4ChRXX/M2A5BhgKCiZDu33J/woE/Hg= Ru.php?ID=3DdPMUhfeS  --_NexPart_001_ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable <=21DOCTYPE HTML PUBLIC =22-//W3C//DTD HTML 4.01 Transitional//EN=22 =22h= ttp://www.w3.org/TR/html4/loose.dtd=22>Not just a winter trend: Vienna fr= om CHF 189 <=21--=5Bif (gte mso 9)=7C(IE)=5D>96<=21=5Bendif=5D--> =09
Timeless beauty - where cult= ure, style and indulgence meet
 ‌ ‌ ‌ &zwn= j; ‌ ‌ ‌ ‌ ‌ &zwnj= ; ‌ ‌ ‌ 
3D=22=22
 <=21-- WCAG Compli= ant Version - OS CSS --> <=21-- WCAG Compliant Version - OS CSS --> <=21-= - :: Start Short Preheader Fix--> <=21-- :: This code will remove all ext= ra text characters from the preheader line so that only subject + prehead= er are visible -->
 ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌   ‌ ‌ ‌ ‌ ‌ &zw= nj; ‌ ‌ ‌ ‌ ‌ &zwn= j; ‌ 
=
3D=22=
=

Cannot see this email? Click here to view in a bro= wser.

 =
 
<=21--=5Bif gte mso 9=5D> <=21=5Bendif=5D--> <=21-- Add conditional code: if no off= ers available, padding-top:360px and hide offers -->
<=21-- padding-left:34px;padding-right:= 34px; --> <=21-- (1) Offer --= >
<=21-- padding-left:20px;paddin= g-right:20px; --> <= /tr>
=
Vienna
<= tr>
from
189 CHF
<=21--=5Bif = gte mso 9=5D> <=21=5Bendif=5D-->
 
 
 =
 
 
= =
3D=22Discover
=
=
Highlights for every taste
<= td class=3D=22darkConvertGrey=22 style=3D=22padding-bottom: 20px; color:= =23000000; font-weight:normal; font-family: 'Core Sans Regular', Arial, = Helvetica, sans-serif; font-size:15px; line-height:20px; mso-line-height-= rule:exactly;=22 > <=21--=5Bif mso=5D><=21-- --> <=21--<=21=5B= endif=5D-->
=

Elegant, indul= gent and full of culture =E2=80=93 Vienna always enchants, but in winter = the city reveals why it=E2=80=99s truly timeless. Between glittering ligh= ts and cosy coffee houses, music and museums, dazzling balls and fine din= ing =E2=80=93 an experience that warms both heart and senses.

  • Winter magic: Q= uiet courtyards, coffeehouse charm & special moments
  • = Ball season: Glamorous nights filled with = tradition & waltz melodies
  • Pure cul= ture: Blockbuster exhibitions & seasonal highlights
  • =
  • Hungry for more: A star chef o= n a culinary tour through Vienna
<=21--table cellpadding=3D=220=22 cellspac= ing=3D=220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22presentation=22= >
Discover Vienna
&nb= sp;
=
=
3D=22starting
A classic - and still a trend
<= td class=3D=22darkConvertGrey=22 style=3D=22padding-bottom: 20px; color:= =23ffffff; font-weight:normal; font-family: 'Core Sans Regular', Arial, = Helvetica, sans-serif; font-size:15px; line-height:20px; mso-line-height-= rule:exactly;=22 > <=21--=5Bif mso=5D><=21-- --> <=21--<=21=5B= endif=5D-->
Some cities come and go with seasons = - Vienna endures. Discover winter elegance that never fades and savour th= e city's unmistakable charm and timeless joie de vivre.
=
<=21--table cellpadding=3D=22= 0=22 cellspacing=3D=220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22= presentation=22>
<= /table>
Book flight to Vienna
=
 

Be well-prepared and you=E2=80=99re half way there

<=21---->
3D=22Newsp=
Travel briefing =E2=80=93 everything at = a glance
= <=21---->
3D=22Plane
Travel ID =E2=80=93 lots of options<= /strong>
=
-->
3D=22Riesenrad
<=21--
Discover Vienna=
<=21--<= td style=3D=22font-family: 'Core Sans Regular', Arial, Helvetica, sans-se= rif; color: =23d81e05; font-size: 14px; line-height: 20px; text-align:lef= t; mso-line-height-rule:exactly; max-height: 999999px; word-wrap: break-w= ord; word-break: break-word; text-decoration: none;=22> = -->
3D=22C=
Vienna City Card
<= /th>
 
 
 
<=21-- QR TravelID OS NL Perm TravelID OS DCP MM OS NL Perm= MM OS DCP Premium Mailing Contact types: MAM NEWSLETTER ONEID_BASIC ONEID_FFP Contact sub types: FTL HON INST SEN BASE --> <=21-- WCAG Compliant Version - OS Footer --> <=21-- Socials -->
3D=22Facebook=22
3D=22Facebook=22
3D=22TikTok=22
3D=22TikTok=22
3D=22YouTube=22
3D=22YouTube=22
3D=22Instagram=22
3D=22Instagram=22
3D=22=
<= img class=3D=22darkimage=22 src=3D=22https://newsletter.austrian.com/ima= ges/SMC/OS/i-myaustrianblog-dark.png=22 alt=3D=22Austrian=22 border=3D=22= 0=22 width=3D=2260=22 style=3D=22width:60px; max-width:100%; display:bl= ock;=22 />
3D=22Contact=22
3D=22Contact=22
=
<=21-- Disclaimers --> <= table class=3D=22darkConvertGrey=22 cellpadding=3D=220=22 cellspacing=3D= =220=22 border=3D=220=22 width=3D=22100%=22 role=3D=22presentation=22 = >

<=21-- TRAVELID NL --> You are receiving this email to milesandmore=40josie.lol because yo= u have given your consent to receive Austrian=E2=80=99s newsletter in you= r Travel ID profile under =E2=80=9CMy profile=E2= =80=9D =E2=80=93 =E2=80=9CCommunication settings=E2=80=9D= . <=21-- TRAVELID DCP --> <=21-- MAM NL --> <=21-- = MAM DCP --> <=21-- QR --> <=21-- Fallback -->

3D=22Arrow <= a href=3D=22https://newsletter.austrian.com/8GOiXGx3xhM7_BlUmgUcMS/KSGB4o= IyL1cjgbvQ/VSHxpj-sVBWGJh7C/T5IO5yY24Jac-jUh/FQyj5680b9Z9RPDI/kQW1YpI8Yar= CeXLF/wrU/HgRu.php?ID=3DdPMUhfeS=22 unsubscribe-link=3D=22true=22 targe= t=3D=22_blank=22 style=3D=22font-family: 'Core Sans Regular', Arial, Hel= vetica, sans-serif; color: =23d81e05; font-size: 15px; line-height: 15px;= text-align: left; text-decoration: none;=22 aria-label=3D=22Unsubscribe= from emails=22 > Unsubscribe
3D=22Arrow Data
=
3D=22A For scheduled flights this includes: Outward and return= journey including all taxes, fees and charges. Terms and conditions appl= y. Limited number available. Errors excepted.
Please do not reply to this email. If you have any ques= tions please click here.
<=21-- Links -->
=
Imprint=
Ter= ms & Conditions
Privacy Policy
<= /td>
<=21-- Company info -->
=
Austrian Airlines AG
Office Park= 2
P.O. Box 100
A-1300 Vienna-Airport
www.austrian.com
=
Head office: Vienna
Legal form: = public limited company
Commercial register number: 111 000k, Vienna C= ommercial Court
Executive Board:
Annette Mann, S= tefan-Kenan Scheib
Chair of the Board: Dr. Till Streichert
 
  --_NexPart_001_-- From - Fri Oct 24 06:52:29 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id SJkJLm/O+mh0tTsAYBR5ng (envelope-from ) for ; Fri, 24 Oct 2025 00:55:11 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Fri, 24 Oct 2025 00:55:11 +0000 Received: from m238-87.eu.mailgun.net ([185.250.238.87]) by witcher.mxrouting.net with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC65G-0000000GcBb-0PGB for hi@josie.lol; Fri, 24 Oct 2025 00:55:11 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=cioeu98571.info.jamesedition.com; q=dns/txt; s=mta; t=1761267308; x=1761274508; h=Message-Id: To: To: From: From: Subject: Subject: Content-Type: Mime-Version: Date: Sender; bh=rcJdyu93FATY6n8VBB18XtrQqYwrKhvuQXRD2ZleHtg=; b=Su4CacKTOrjrG0e7qfv4EJANngj6eLjr9Uc5UnispDOoyfXlqMfU9X2V00kp0/3gonVOO9OV1EIbtm/aKorB/tAVNUz0mxqtGojFlB0qCBZJZHrVFJiZu36RcoY853JrLnsxbauTZaF5cZ8q3kNrHs5FdJMQ7d+OLA0wLjKANHQ= X-Mailgun-Sid: WyIwN2Q3MCIsImhpQGpvc2llLmxvbCIsIjM3MjI0MSJd Received: by 9b8092e55b44dc2a211d8b83ab68bf1d1be4e96b3bb99b90d7aaf2e57d3b70ac with HTTP id 68face6cdeaa1bd1b46cce36; Fri, 24 Oct 2025 00:55:08 GMT X-Mailgun-Sending-Ip: 185.250.238.87 Date: Fri, 24 Oct 2025 00:55:08 +0000 Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="85c252410e7956ad377c61edd736955991d751c8957085038d89458fcdf1" Subject: =?UTF-8?q?Iconic_Seafront_Gem:_A_Rare_Chapter_of_Marbella=E2=80=99s_Golde?= =?UTF-8?q?n_Era?= From: JamesEdition To: hi@josie.lol X-Mailgun-Dkim: true X-Mailgun-Native-Send: true X-Mailgun-Track-Clicks: false X-Mailgun-Track-Opens: false X-Mailer: Customer.io (dgTyogkAAPGWafCWaQGaE7ZWeBRe-M0_ERQsBDQ=; +https://whatis.customeriomail.com) X-Report-Abuse-To: badactor@customer.io X-Mailgun-Variables: {"email_id": "dgTyogkAAPGWafCWaQGaE7ZWeBRe-M0_ERQsBDQ="} Message-Id: <20251024005508.fe912ea16cdac75d@cioeu98571.info.jamesedition.com> X-DKIM: signer='cioeu98571.info.jamesedition.com' status='pass' reason='' DKIMCheck: Server passes DKIM test, 0 Spam score X-Spam-Score: 3.2 (+++) X-Spam-Report: Spam detection software, running on the system "witcher.mxrouting.net", has performed the tests listed below against this email. Information: https://mxroutedocs.com/directadmin/spamfilters/ --- Content analysis details: (3.2 points) --- pts rule name description ---- ---------------------- ----------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: jamesedition.com] 0.0 RCVD_IN_DNSWL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to DNSWL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#DnsBlocklists-dnsbl-block for more information. [185.250.238.87 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [185.250.238.87 listed in wl.mailspike.net] 1.5 HTML_MESSAGE BODY: HTML included in message 0.0 HTML_IMAGE_RATIO_04 BODY: HTML has a low ratio of text to image area 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 1.7 LOTS_OF_MONEY Huge... sums of money 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders SpamTally: Final spam score: 32 --85c252410e7956ad377c61edd736955991d751c8957085038d89458fcdf1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" James Edition Logo ( https://www.jamesedition.com/?utm_campaign=3DWeekly+Ne= wsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcu= stomer.io ) Trusted by 799,000 readers in the global luxury market. =E2=80=8A Week 43 - October 2025 Norway's Alpine Excellence: Premier Ski Properties in Geilo and Kvitfjell (= https://www.jamesedition.com/stories/real-estate/norways-alpine-excellence= -premier-ski-properties-in-geilo-and-kvitfjell/?utm_campaign=3DWeekly+Newsl= etter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcusto= mer.io ) Norway's Alpine Excellence: Premier Ski Properties in Geilo and Kvitfjell Read More =E2=86=92 ( https://www.jamesedition.com/stories/real-estate/norw= ays-alpine-excellence-premier-ski-properties-in-geilo-and-kvitfjell/?utm_ca= mpaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Dema= il&utm_source=3Dcustomer.io ) >From Aristocracy to A-Listers: Inside Villa Annabel, a Rare Chapter of Marb= ella=E2=80=99s Golden Era ( https://www.jamesedition.com/stories/real-estat= e/from-aristocracy-to-a-listers-inside-villa-annabel-a-rare-chapter-of-marb= ellas-golden-era/?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+New= sletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) >From Aristocracy to A-Listers: Inside Villa Annabel, a Rare Chapter of Marb= ella=E2=80=99s Golden Era Built in the 1950s, Villa Annabel stands as one of the few remaining beachf= ront estates preserving Marbella=E2=80=99s original allure and elite herita= ge. Read More =E2=86=92 ( https://www.jamesedition.com/stories/real-estate/from= -aristocracy-to-a-listers-inside-villa-annabel-a-rare-chapter-of-marbellas-= golden-era/?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newslette= r&utm_medium=3Demail&utm_source=3Dcustomer.io ) Curated by JamesEdition: Top Listings Architectural Masterpiece Near Golf & Natural Park ( https://www.jamesediti= on.com/real_estate/sotogrande-spain/sotogrande-detached-house-15854591?utm_= campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3De= mail&utm_source=3Dcustomer.io ) Architectural Masterpiece Near Golf & Natural Park Sotogrande, San Roque, Spain 8,800,000 EUR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/sotogrand= e-spain/sotogrande-detached-house-15854591?utm_campaign=3DWeekly+Newsletter= &utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.i= o ) Exquisite Georgian Townhouse on Portland Place ( https://www.jamesedition.c= om/real_estate/london-united-kingdom/portland-place-an-exceptional-georgian= -townhouse-recently-renovated-into-a-5-bedroom-home-steeped-i-15588691?utm_= campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3De= mail&utm_source=3Dcustomer.io ) Exquisite Georgian Townhouse on Portland Place London, United Kingdom 18,500,000 GBP View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/london-un= ited-kingdom/portland-place-an-exceptional-georgian-townhouse-recently-reno= vated-into-a-5-bedroom-home-steeped-i-15588691?utm_campaign=3DWeekly+Newsle= tter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustom= er.io ) Villa Harmony: Modern Residence with Sea Views and Pool ( https://www.james= edition.com/real_estate/anavyssos-greece/excellent-villa-with-sea-view-in-a= navyssos-16122078?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+New= sletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) Villa Harmony: Modern Residence with Sea Views and Pool Anavyssos, Attica, Greece 2,500,000 EUR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/anavyssos= -greece/excellent-villa-with-sea-view-in-anavyssos-16122078?utm_campaign=3D= Weekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_so= urce=3Dcustomer.io ) Villa S=C3=A3o Paulo: Seafront Mansion with Beach Access ( https://www.jame= sedition.com/real_estate/cascais-portugal/mansion-cascais-15277119?utm_camp= aign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail= &utm_source=3Dcustomer.io ) Villa S=C3=A3o Paulo: Seafront Mansion with Beach Access Cascais, Lisbon, Portugal 14,500,000 EUR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/cascais-p= ortugal/mansion-cascais-15277119?utm_campaign=3DWeekly+Newsletter&utm_conte= nt=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) Exceptional Alpine Estate with Historic Mountain Lodge ( https://www.jamese= dition.com/real_estate/oberstdorf-germany/einzigartiges-alpengut-198-ha-alp= e-mit-wald-und-weideflachen-in-den-allgauer-alpen-16415043?utm_campaign=3DW= eekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_sou= rce=3Dcustomer.io ) Exceptional Alpine Estate with Historic Mountain Lodge Oberstdorf, Bavaria, Germany. 5,950,000 EUR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/oberstdor= f-germany/einzigartiges-alpengut-198-ha-alpe-mit-wald-und-weideflachen-in-d= en-allgauer-alpen-16415043?utm_campaign=3DWeekly+Newsletter&utm_content=3DW= eekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) Contemporary Estate Designed by Renowned Architect ( https://www.jamesediti= on.com/real_estate/saint-jean-cap-ferrat-france/saint-jean-cap-ferrat-seafr= ont-modern-villa-decorated-by-renowned-architect-15095029?utm_campaign=3DWe= ekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_sour= ce=3Dcustomer.io ) Contemporary Estate Designed by Renowned Architect Saint-Jean-Cap-Ferrat, PACA, France 60,000,000 EUR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/saint-jea= n-cap-ferrat-france/saint-jean-cap-ferrat-seafront-modern-villa-decorated-b= y-renowned-architect-15095029?utm_campaign=3DWeekly+Newsletter&utm_content= =3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) Rare Seaside Villa on Tuscany=E2=80=99s Prestigious South Coast ( https://w= ww.jamesedition.com/real_estate/ansedonia-italy/a-rare-gem-on-the-south-coa= st-of-tuscany-ansedonia-grosseto-italy-16178959?utm_campaign=3DWeekly+Newsl= etter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcusto= mer.io ) Rare Seaside Villa on Tuscany=E2=80=99s Prestigious South Coast Ansedonia, Tuscany, Italy POR View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/ansedonia= -italy/a-rare-gem-on-the-south-coast-of-tuscany-ansedonia-grosseto-italy-16= 178959?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm= _medium=3Demail&utm_source=3Dcustomer.io ) Sculptural Industrial Home with Circular Motor Court ( https://www.jamesedi= tion.com/real_estate/beverly-hills-ca-usa/single-family-home-house-beverly-= hills-united-states-15986784?utm_campaign=3DWeekly+Newsletter&utm_content= =3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.io ) Sculptural Industrial Home with Circular Motor Court Beverly Hills, CA, United States 64,995,000 USD View Listing =E2=86=92 ( https://www.jamesedition.com/real_estate/beverly-h= ills-ca-usa/single-family-home-house-beverly-hills-united-states-15986784?u= tm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium= =3Demail&utm_source=3Dcustomer.io ) Trending in the Journal The 5 Most Viewed Castles This Month =E2=80=94 From Italy to the UK ( https= ://www.jamesedition.com/stories/real-estate/europes-castle-market-goes-digi= tal-france-leads-as-heritage-estates-move-online/?utm_campaign=3DWeekly+New= sletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcus= tomer.io ) The 5 Most Viewed Castles This Month =E2=80=94 From Italy to the UK JamesEdition data charts the digital reinvention of Europe=E2=80=99s castle= market =E2=80=94 a shift exemplified by 5 of the continent=E2=80=99s most = coveted ch=C3=A2teau listings. Read More =E2=86=92 ( https://www.jamesedition.com/stories/real-estate/euro= pes-castle-market-goes-digital-france-leads-as-heritage-estates-move-online= /?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medi= um=3Demail&utm_source=3Dcustomer.io ) JamesEdition Announces Partnership with Chestertons Global ( https://www.ja= mesedition.com/stories/real-estate/jamesedition-partners-with-chestertons-g= lobal/?utm_campaign=3DWeekly+Newsletter&utm_content=3DWeekly+Newsletter&utm= _medium=3Demail&utm_source=3Dcustomer.io ) JamesEdition Announces Partnership with Chestertons Global The global platform joins forces with the storied brokerage to elevate visi= bility and expand cross-border reach. Read More =E2=86=92 ( https://www.jamesedition.com/stories/real-estate/jame= sedition-partners-with-chestertons-global/?utm_campaign=3DWeekly+Newsletter= &utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.i= o ) =E2=80=8A James Edition Logo ( https://www.jamesedition.com/?utm_campaign=3DWeekly+Ne= wsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcu= stomer.io ) Instagram ( https://www.instagram.com/jameseditioncom/?utm_campaign=3DWeekl= y+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source= =3Dcustomer.io ) TikTok ( https://www.tiktok.com/@jameseditioncom?utm_campaign=3DWeekly+News= letter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcust= omer.io ) Facebook ( https://www.facebook.com/thejamesedition/?utm_campaign=3DWeekly+= Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3D= customer.io ) Twitter ( https://twitter.com/JamesEdition?utm_campaign=3DWeekly+Newsletter= &utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustomer.i= o ) LinkedIn ( https://www.linkedin.com/company/jamesedition/?utm_campaign=3DWe= ekly+Newsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_sour= ce=3Dcustomer.io ) Pinterest ( https://www.pinterest.com/jamesedition/?utm_campaign=3DWeekly+N= ewsletter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dc= ustomer.io ) Radarweg 29 =E2=80=94 1043 NX =E2=80=94 Amsterdam, The Netherlands Unsubscribe ( https://www.jamesedition.com/unsubscribe?type=3Dweekly_journa= l&token=3Dd3a49883-d5d9-48b0-b9a1-210062a14cc0&utm_campaign=3DWeekly+Newsle= tter&utm_content=3DWeekly+Newsletter&utm_medium=3Demail&utm_source=3Dcustom= er.io ) --85c252410e7956ad377c61edd736955991d751c8957085038d89458fcdf1 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"
Norway's Alpine Excellence: Premier Ski Properties in Geilo and Kvitfje= ll =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87= =CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2= =80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD= =8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87= =CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2= =80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD= =8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87= =CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2= =80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD= =8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87= =CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2= =80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD= =8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87= =CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2= =80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD= =8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80= =87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F =E2=80=87=CD=8F = =E2=80=87=CD=8F =E2=80=87=CD=8F =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD = =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2=AD =C2= =AD =C2=AD =C2=AD =C2=AD =C2=AD=C2=A0
3D""/ --85c252410e7956ad377c61edd736955991d751c8957085038d89458fcdf1-- From - Fri Oct 24 06:53:15 2025 X-Mozilla-Status: 0001 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: hi@josie.lol Received: from witcher.mxrouting.net by witcher.mxrouting.net with LMTP id aEIWJgW2+mgvzS4AYBR5ng (envelope-from ) for ; Thu, 23 Oct 2025 23:11:01 +0000 Return-path: Envelope-to: hi@josie.lol Delivery-date: Thu, 23 Oct 2025 23:11:01 +0000 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by witcher.mxrouting.net with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1vC4ST-0000000DLA1-1FsR for hi@josie.lol; Thu, 23 Oct 2025 23:11:01 +0000 Received: from smtp.subspace.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 432633B70F1 for ; Thu, 23 Oct 2025 23:10:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4EDE2D97B8; Thu, 23 Oct 2025 23:09:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="RkIJaT8/" X-Original-To: linux-s390@vger.kernel.org Received: from DM5PR21CU001.outbound.protection.outlook.com (mail-centralusazon11011006.outbound.protection.outlook.com [52.101.62.6]) (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 CB61E2D7DE8; Thu, 23 Oct 2025 23:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.62.6 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260999; cv=fail; b=aTHlyoRwe8cH7ZeGNq6NhDoLTY1d4f3DjPC+5Bd1WKYw7wT64RQaP+P68Lx8QapNIlwOUxn9Ki5KWNvVC61QSQhf+1NiCGjt0SbK7kr6qNTamqI4VVtEmFsC2Wk0eiXXpg2cxR/KOAgsMzSU2fqBet+dM/ZIXUyJy8ScGxovZZI= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761260999; c=relaxed/simple; bh=7Qc0TcaTeGzoPQCjhBCTptgGrVx5YOrh1nr/gTmbk90=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=uhy965PG+wYsktDWONl3241ipS43zH4B7e9CR553bFwTIMrDzVsf7V1t8CWdUe7b+wmjKQtYTpRrcC4bjfeZ4y81sYM9ti92B4lunFNiUaecTLAuwZ0cAraoKg9SiVyWUdAp0UsF9rvgUO2D+fyO2mkgayBi+UYHZV8fncFymDQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfr
3D"James Trusted by 799,= 000 readers in the global luxury market.
=E2=80=8A

Week 43 - October 2025

=20
3D"Norway's

Norway's Alpine Excellence: Premier Ski Properties in Geilo and Kvitfje= ll

=3D"From

From Aristocracy to A-Liste= rs: Inside Villa Annabel, a Rare Chapter of Marbella=E2=80=99s Golden Era

Built in the 1950s, Villa A= nnabel stands as one of the few remaining beachfront estates preserving Mar= bella=E2=80=99s original allure and elite heritage.

Curated by JamesEdition: Top = Listings

3D"Architectural

Architectural Masterpiece Near Golf & Natural P= ark

Sotogrande, San Roque, Spain
8,800,000 EUR

3D"Exq=

Exquisite Georgian Townhouse on Portland Place

London, United Kingdom
18,500,000 GBP

3D"Villa

Villa Harmony: Modern Residence with Sea Views and Pool=

Anavyssos, Attica, Greece
2,500,000 EUR

3D"Villa

Villa S=C3=A3o Paulo: Seafront Mansion with Beach Access

Cascais, Lisbon, Portugal
14,500,000 EUR

3D"Exceptional

Exceptional Alpine Estate with Histori= c Mountain Lodge

Oberstdorf, Bavaria, Germany.
5,950,000 EUR

3D"Contemporary

Contemporary Estate Designed by Renown= ed Architect

Saint-Jean-Cap-Ferrat, PACA, France60,000,000 EUR

<= img src=3D"https://userimg-assets-eu.customeriomail.com/images/client-env-1= 51922/1761158235057_6_01K86KC15K7PMB03CDDHXPVN9X.jpg" style=3D"box-sizing: = border-box; display: block; height: auto; border: 0; width: 100%;" width=3D= "285" alt=3D"Rare Seaside Villa on Tuscany=E2=80=99s Prestigious South Coas= t" title=3D"Rare Seaside Villa on Tuscany=E2=80=99s Prestigious South Coast= " height=3D"auto"/>

Rare Seaside Villa on Tuscany=E2=80=99= s Prestigious South Coast

Ansedonia, Tuscany, Italy
POR

=3D"Sculptural

Sculptural Industrial Home with Circul= ar Motor Court

Beverly Hills, CA, United States
64,995,000 USD

Trending in the Journal

3D"The

The 5 Most Viewed Castles T= his Month =E2=80=94 From Italy to the UK

JamesEdition data charts th= e digital reinvention of Europe=E2=80=99s castle market =E2=80=94 a shift e= xemplified by 5 of the continent=E2=80=99s most coveted ch=C3=A2teau listin= gs.

3D"JamesEdition

JamesEdition Announces Part= nership with Chestertons Global

The global platform joins f= orces with the storied brokerage to elevate visibility and expand cross-bor= der reach.

=E2=80=8A
3D"James
3D"Instagram"3D"TikTok" 3D"Facebook" 3D"Twi= 3D"Pinterest"

Radarweg 29 =E2= =80=94 1043 NX =E2=80=94 Amsterdam, The Netherlands

Unsubscribe