Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp657231rdb; Thu, 15 Feb 2024 11:04:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXWvpdgqwWmMXEaC752WqEZRvUKs8jBuOZCIUUSYfQ4fdemSDkdqEftUHIrwWiqo/BIaWj/kOyb/QPNnROIsu85+ur6bCXxRbNw0ZGQyw== X-Google-Smtp-Source: AGHT+IHVcmPmaMdyJQZEBgB3XM1Ocy8vmktCLe9rd7o5uan2fOR7AfswPEEqM7Jm5sa0nkq6tjR6 X-Received: by 2002:a05:620a:44c5:b0:785:d89a:df51 with SMTP id y5-20020a05620a44c500b00785d89adf51mr2936689qkp.6.1708023889093; Thu, 15 Feb 2024 11:04:49 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v6-20020ac87486000000b0042dc7c0b171si1914131qtq.660.2024.02.15.11.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:04:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=EioZS31x; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-67549-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67549-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C8DE21C23DF5 for ; Thu, 15 Feb 2024 19:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8941813A25A; Thu, 15 Feb 2024 19:04:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="EioZS31x" Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12olkn2104.outbound.protection.outlook.com [40.92.23.104]) (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 779D013959E; Thu, 15 Feb 2024 19:04:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.23.104 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708023864; cv=fail; b=Cr1kuy0fJKFyDlk9KMSwufG2MDpoAc3Q4RyiXsyGqZ4ISIhQAsNplbNIfw8cLMRgiY+JVx6fLD55parfwbt/0rfPVDIlgt7BTlsNPVqVi37U7EcR5YlkKoH8yRc6IYjtByAyXbSryc/EpHFqho/1oyoIsw0D1zVzRipz9ktP5iE= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708023864; c=relaxed/simple; bh=ylbo6S9RLhptQOpd09gDEboc32aSBwjQ6chPGMcthiY=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Ps0bBl1eJ7Be573VkzE8Ir6vOEJtnwoF7krzMiDwNTe0IdIPNL0P8pe1Iv8/UaTjSStC54V7SdLeHxCm6ORFHeyPGfR3QVdUKBjtNepw7j3M1oJjgPuVwdcPy+NFtBOFWkCb9Dmm2YH++dpzs7G8IDchLooWXThK2ArCPLkOUD8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=EioZS31x; arc=fail smtp.client-ip=40.92.23.104 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qs9+zrAg72jnNOmNxh+LxPZU6sOE4tR6NjxdbkdaWUQWnGyRPVn41FeOBkt9jQf/CjN4tvvpjmV/Ur8EHxFMTnom8sisHMWHX35KMMEoRNdNSFCuD9F3GHNEmqcFJb4gv61e383kMrLGh9ClDCsmTCe9zthkt4+bvI34agLJVfirqOXmATDlvag6TQM8L/ircMTX1AbYogrp564p5lx9FF1BxgdMufk9CBNBxzKSZoEf6B2V5mEnuYvpuNHcdOC27EzwpeLqyKGBfXB4aqOUUcrRWpY0lzXmKc2MW5vDox0AQQ1xr4x6HnpuftoG9obKcru42Gcse00YHjPw5+b3Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=X2LMhw2QMoMory3JT58Hpz1UUTreL8GDgbKC+UcBGtM=; b=k5OUR+QMbGGDJKfvqjDKw0iKFhqXCEZkWbzZLCHXfUgRxf10r0LDaELHpNyNMeXPl5lBv1QTHxWc6gl5DxcLJyYgS6fNmjvkcOBlp5WdZxMrGbgdAyiPXMCZBkA9DOsrD31HvIrzXhXZb1L/WYxP8uRd9eJsIFKXD/5/Wf2FWN+ddoMvuEHO6D+VxRF8z75Ufo0fajbgCoYlanaYgscGGQaOIWYHWfGXWRbbFMFkJ8lhvGtjCVr5TK87HB7WgqxlOVgBQl4Y0A3LRs+IcFhE2PD2wZaBVv8jQnphkGLyHcc7iIQ9JcB+gTQ5n2Eww12mGKckddPeM1cAGd5zm13bfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=X2LMhw2QMoMory3JT58Hpz1UUTreL8GDgbKC+UcBGtM=; b=EioZS31xfHt1D7R0TtuZ69jNdv39+cLAzFtN6TjfuMOGG3wUh7eQy28onuGNnPkzLAeSNFhRQKS5v7nT+xY7VyZNmjFDtR3rsGWBh0rl9NlqiAwD4q/kSzbERjqjC1AEwHAH053FghbzGDNNYPmTZwW/dZ6N1FdtPr5fwCPohgrjbFzaQgPkLprjMKUuQk2CgLSWiUd2D/IGble3CUHLeCxYP/FS+ZWmNpkDBNUVBGovFrYP1KmgWyRCP8+i6hlTfrrwwGsq/OjZARnFT1UI7S5FzUr3sOKqgg3tDoxF6OKCGyaezH5bcdPRDFV1WLHYaei9Zsbtrh/Yf2rqLy7Xwg== Received: from SN6PR02MB4157.namprd02.prod.outlook.com (2603:10b6:805:33::23) by PH7PR02MB10135.namprd02.prod.outlook.com (2603:10b6:510:2e9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.39; Thu, 15 Feb 2024 19:04:19 +0000 Received: from SN6PR02MB4157.namprd02.prod.outlook.com ([fe80::67a9:f3c0:f57b:86dd]) by SN6PR02MB4157.namprd02.prod.outlook.com ([fe80::67a9:f3c0:f57b:86dd%5]) with mapi id 15.20.7270.033; Thu, 15 Feb 2024 19:04:18 +0000 From: Michael Kelley To: Easwar Hariharan , "haiyangz@microsoft.com" , "wei.liu@kernel.org" , "decui@microsoft.com" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-doc@vger.kernel.org" Subject: RE: [PATCH 1/1] Documentation: hyperv: Add overview of PCI pass-thru device support Thread-Topic: [PATCH 1/1] Documentation: hyperv: Add overview of PCI pass-thru device support Thread-Index: AQHaX5zLjfItck7t3UmPns+zVTEYbrELvbYAgAAFLlA= Date: Thu, 15 Feb 2024 19:04:17 +0000 Message-ID: References: <20240214232253.4558-1-mhklinux@outlook.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [5ZycXhGFGTIpS12A/Ktbpfxo2zDQfrG3] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR02MB4157:EE_|PH7PR02MB10135:EE_ x-ms-office365-filtering-correlation-id: 23e1f20c-3691-4843-19f7-08dc2e58e8c4 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: T4V3kXbgZp3TPCsREdXlYmEhBENESJR+/SQCqVWujGzBhSekIpAku/ZrfR+6TGpHlnyfYBl4n6QjGV7EJd+U65fn8zRApPLbKy7A3YjEfp6qAVAXkI3KZpN9W/RQjHlSsliAR4e9LsEM9sn3q/HRA8Q4iSfBbXi20NfX08IQfXZXCJrI0p/M3F4QMsBdJePKt8Vio7WaFoc1umCo4IeId200OvE0SLgdjNOVWP1Zz2EHn0ebbbh4rTx4KKFZ8TdrjXDLG64MZd6SDceT0XFsPFLBAzlmUX7khgEXX5okxRoJIZCHwgu/FkkVfX73vYjFFxSqwH3m20Uo2QbxUHB1u+5XqpqYbLvRr21cmNDy0FEQLheJLCBoC190dpBzaE9mCJZtmqAVpM9bd2siJx5YS6MiNVudq99WU4gzI3Inwrw1OF4RlBplQ7SjVAiLT5ULn7FaJ70HVvth/rQTG6NS5o54tdB2xij2ZjnbjBMuPf0HKLXT/3XUHArOBVd8XVt2QfCCojPi6L/yN98OWQMKN2Kv5icnK3BznavSI0Eefa1RJnyIJwq46Hj7D19Bv3u9 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jMJ+R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X?= =?us-ascii?Q?D5XFI5+vEjQZYJggU+I98SP5/zB9QFooDOhhLXUuc6Fkryoz0MpRQZV9UKmq?= =?us-ascii?Q?le7ZBIbUnmXyHDBRgI9bhwyrOGcmEOQ7hOaJ49hJMnV1PVujVji9l6xZdPdx?= =?us-ascii?Q?mFFPGIo2VNvdfsRdhXc23o1K/9jxmBxw2OvpkbN8DPyUqOyucWuTHMOofHeV?= =?us-ascii?Q?KGIQW4jSp3zI1YAe87pV7+M2qSXdByTnLPwCmQIQwnKkFrU8qTMvqvxfjgyh?= =?us-ascii?Q?+PHxE640uTFYrsFwbtSitR/azYzrl+fqiNrBTOyXLPIJNu7pQWHcJRf5o17g?= =?us-ascii?Q?obhJdD49Dkyav1VJ4uv8IsK3IfdK6F/xtc2wc+7qFfUVzm0dac1SPNvN3ZI?= =?us-ascii?Q?=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR02MB4157.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 23e1f20c-3691-4843-19f7-08dc2e58e8c4 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2024 19:04:17.6818 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR02MB10135 From: Easwar Hariharan Sent: Thursday, Febru= ary 15, 2024 10:41 AM >=20 > On 2/14/2024 3:22 PM, mhkelley58@gmail.com wrote: > > > > Add documentation topic for PCI pass-thru devices in Linux guests > > on Hyper-V and for the associated PCI controller driver (pci-hyperv.c). > > > > Signed-off-by: Michael Kelley > > --- [snip] > > + > > +With this approach, the vPCI device is a VMBus device and a > > +PCI device at the same time. In response to the VMBus offer > > +message, the hv_pci_probe() function runs and establishes a > > +VMBus connection to the vPCI VSP on the Hyper-V host. That > > +connection has a single VMBus channel. The channel is used to > > +exchange messages with the vPCI VSP for the purpose of setting > > +up and configuring the vPCI device in Linux. Once the device > > +is fully configured in Linux as a PCI device, the VMBus > > +channel is used only if Linux changes the vCPU to be > > +interrupted in the guest, or >=20 >=20 > > ..............................if the vPCI device is removed by > > +the VM while the VM is running. >=20 > This seems to conflict with the statement called out below. Did you > mean to say "if the vPCI device is removed *from* the VM..."? >=20 Oops! Yes, that should be "from the VM". [snip] >=20 > Otherwise, FWIW >=20 > Reviewed-by: Easwar Hariharan >=20 Thanks for reviewing and spotting that error. I'll see what other comments accumulate and then send out a v2 with updates. Michael