Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1836674rwl; Wed, 12 Apr 2023 20:16:36 -0700 (PDT) X-Google-Smtp-Source: AKy350bkdapwHe7Qq6kuPkvDr2hbRLqKlFgsAnb1rtksu5y+ALCbsRAhHM0WSI6X6Tybg+VF2pv2 X-Received: by 2002:a17:902:c3c1:b0:19e:9807:de48 with SMTP id j1-20020a170902c3c100b0019e9807de48mr614221plj.23.1681355796515; Wed, 12 Apr 2023 20:16:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681355796; cv=pass; d=google.com; s=arc-20160816; b=NlBNrBTI7+6rkxwgWIb5bVCyAGqaQTWolNyjKP/s4v/HoOeRVkp01QuLOyA8N+6sGb hfEgpETWLGndpKWtp0Jc+Llzbi/N+uktnQVeqUTtTt/j0LRYy0wIXDVRaNJkakuSJLZD TWlyluCWw0Hhgs0O/mhn5LQPPIQgc8rL7xf3p8a6+gs4TS19JqD/esyDjqB2Tge+SutY TWIzKQ+aYXsEd1CJPvlvzU2fbx3AATbfxbJDUdVbSniG0SDCPeW1jXwXNHVKD1SpKHRT NMD44vtpaTTZYmz1xOQZJFmCGDP+BV5HhVs2Vr/zyCPRfT8iAN7S2YNcaKHPIENT83bc 4MIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=KvLBDgKeIjRYpMhYHxOc7u6QYdwKQYxOYvaxP2bJ7y8=; b=JNRb9IvVuwizqRg3Aws32Hj0uN3ht84c+STZKGvMm9XnoH/bD+rOGQRGr7/WDFGPut gm9ejFba+o662hCj02XOR3k9r+gEdOe4fceMQk0mtYXzdrnJwDzUhvYJXCtMZkZT2HzY YFJ8x4yQzfc9fBaGX1drhevvhSGX02UxnVcUac4UjyvrsWEDN/2QDX91DsSDE79xD9L4 d7d9wCyI5QEXEaJguREHkhL7f3SbgLyeuZ/+AlBQSBGlvG3zbJNQ0XDZ570axbwSXuZ1 GJ3BxlCusvw1JGpZehsC9TPMHg3o2vYAG/UX3V555cygW2MuPOGLfM7SoDOQfxaaAz2h Wg+g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=RWOma14O; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a170902bb9600b001a211b8e5b0si790632pls.338.2023.04.12.20.16.25; Wed, 12 Apr 2023 20:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=RWOma14O; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229821AbjDMDFR (ORCPT + 99 others); Wed, 12 Apr 2023 23:05:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229575AbjDMDFO (ORCPT ); Wed, 12 Apr 2023 23:05:14 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E59826A5; Wed, 12 Apr 2023 20:05:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CzqYnyYiYjg1aH6a1ES2V6+3zTj8v4diSoYanBXWG95O24V5StoNClXJh4KQh0kYWt4iZLP44f98Vn4X/Am0PU3pYx9JxXNwit0Zpqd7cDin1mxAThhtoWho1ZXR/7vPtl7fdn9/NEY4Ip+UHaeRyxDybys80vjWhY119Y2YuRBxLPqdy4OyGdd0HRWdGfb4AWHePt1LcGuhBpWfFIGZ56EeYnNyDe/QF8wovT/JuSKE6X/XxPAKucXiNB+XU17epiueoauR3bt3hpEHjIcboHL/uhVok3EDIvAv1oADXY8M4baROO5Y0RT/2lyusxHwG20lkmPP34xk3skTa/Hffg== 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=KvLBDgKeIjRYpMhYHxOc7u6QYdwKQYxOYvaxP2bJ7y8=; b=R4XoILq/7sfAOs92kxioahqT2yKp2qwyncuMVoVvUt49mJLfC293daKz/uWNAv7E7g+XCROcU8E8Lv/v03V4xlhcV0/f7CWvKspkoTZeQp0mlXEhoQPhnMwEsEQZMFxDcIv52cdlFxEgyHd2hpED45+OdmLd4/n8K4QWuvSYLChh5WORTV8DCgkcrDQ3aDG9ucM0r20uWe81LsR11JGzNmSXLuXnGAfqbOOp6I1FByl/hdcM4/vYICQkHk4aDma0/SbFieXP1pj+9NQsRUns7kg1FrwjvSFusjX0TxtotZyHwPEjCT+6Vae9MHQApB8jOlEQckSBYbgR7bQHr8zJPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KvLBDgKeIjRYpMhYHxOc7u6QYdwKQYxOYvaxP2bJ7y8=; b=RWOma14OKIK+H2QAbx9cI7D56qJMaFE1O3T/7S9MQibrWiEpIxlCqxI6Im3l2Q4NOK9tYyHcLZG+SAYvwgou30LaNsLu2WgImfFOwW5UBfiMkGc9G0g8uT6c6VMcvZUrtl9yQh8/nWuTeKqdx3Wc2RHqoNV8lN9ixTjHYlp/ppA= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by DS7PR21MB3575.namprd21.prod.outlook.com (2603:10b6:8:90::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.3; Thu, 13 Apr 2023 03:05:10 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c%7]) with mapi id 15.20.6319.004; Thu, 13 Apr 2023 03:05:10 +0000 From: "Michael Kelley (LINUX)" To: Wei Liu , Jinank Jain , "g@liuwe-devbox-debian-v2" CC: Jinank Jain , KY Srinivasan , Haiyang Zhang , Dexuan Cui , "lpieralisi@kernel.org" , "kw@linux.com" , "robh@kernel.org" , "bhelgaas@google.com" , "linux-hyperv@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "nunodasneves@linux.microsoft.com" Subject: RE: [PATCH] PCI: hv: Use nested hypercall for retargeting interrupts Thread-Topic: [PATCH] PCI: hv: Use nested hypercall for retargeting interrupts Thread-Index: AQHZZum56E4siTE08ESEN+SkV6gZ4K8ofwKAgAAbefA= Date: Thu, 13 Apr 2023 03:05:09 +0000 Message-ID: References: <20230404113546.856813-1-jinankjain@linux.microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=4a905326-46dd-45a6-b74f-ce90fccbfa39;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2023-04-13T03:00:50Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=microsoft.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BYAPR21MB1688:EE_|DS7PR21MB3575:EE_ x-ms-office365-filtering-correlation-id: 0085c623-6ebf-409e-b720-08db3bcbe468 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BUOFvDgd8ywgUwO+n4z5uoGVb8FIzQNt8ifkDYIMjh4GuTvnkKrJYtk8zSjXgvQM9O/JCr7yyPlaN1U6Fr+eomVDn6owxXqu4HMafp0fT+/x0xZnPhKN8eW0zdH0pSkHweshgJJnjLtLT2us/R2cRtnucr7u1QYPLyD1u8G+Oei9HhcCKoEK45GCnB5cwLazhZI+xPoV5j6wkMX9tclBNCBWq0NiO3qgRYa/SKjy5HiWnIbpN34jxWR2QTmwqS6x4gx3OdwXm4ab/NgA4cK/iSwYHIQfuYuaKtZjH5OpPkg3m/495ff9JGNeUgF6Thqt53hF+/hWqGpHyR/63ljcNxJomphS7Oz8utNdh3nbfKT6HGm6k6a3mUvOLwCojP0Jf4Z9RYys880AP2+zojwl5xl38TqhrfPG4viV/UMzytQWNL9rn4t7J54lf7DwNGlG5peAc+s4JBpcPcf57oQUMXlIfb5Geo3p547doQMsN+XNToX0iT7qCUQYFW6bPtQNfjAy0QhWPem86+WfpS9aZyaOsZOha7V4cq8y/1S75riDnnDV5uTWdjRH+qsRDYBDGIJlvtQeGtc/Dg47WhsPrTugP6cBG6WYPWlESirs3KDZWEwv9P2+4Yz+M/ZarfTQxC0CPt5X2S6RzUSdI/qnWSB8guiLty0TJwXoWZuE7LdhqPm5DP/wqUeUxdgKBXVy x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:cs;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(136003)(346002)(366004)(396003)(39860400002)(451199021)(66446008)(4326008)(66556008)(66476007)(64756008)(66946007)(76116006)(316002)(107886003)(786003)(2906002)(41300700001)(4744005)(8990500004)(8936002)(8676002)(52536014)(5660300002)(33656002)(54906003)(10290500003)(110136005)(478600001)(55016003)(86362001)(7696005)(71200400001)(6506007)(82950400001)(38100700002)(26005)(82960400001)(122000001)(38070700005)(9686003)(186003)(781001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?8xhn29fGjldJj8lRscABLOFE1rvVUt8HqLKJJ5a7YavdB4eXQohFudl/labk?= =?us-ascii?Q?RS9kNKdpSnyu0XvhDvbQLOHBOdEjXY3BXKn8DknGlYYo9IoGONcIAkH7xPMj?= =?us-ascii?Q?bkUVfzESujopjzJHg3Ad62Y6ei2umoWe9AjLWg0gOjIC7t3qJUBceW4oYX1B?= =?us-ascii?Q?ceQWsr7EzT/NMJpNL3Tvk7jdlw2u7Cecs7eVP6qLxH31nhw1RvNCY/wR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UmLTffzXxAbByrSghi2CwmRPtU9/6c7iLEK8HoXGjiRtb?= =?us-ascii?Q?1Jj0p0Q25qAPCxvUJcA5gVxAO/Gw0dd/SK4woDdyC6XXzd5gtHYSE13nMDoN?= =?us-ascii?Q?c9iTgHFNBxcw7OLzyFLjphTghdNHMa+AJ5yCkoAcuW3lwF4SRbq9+w5VLvFo?= =?us-ascii?Q?G4pgLPebwxp1kUbF6agNfB6zn9XfWbUZ5BX1uDHNYi1RqUCfIinJPenD9fJg?= =?us-ascii?Q?uDMknVoYdP0azfU+G8Sze839ikQfY9KBjs7151L0sghOWDt9/e/AZWJggq03?= =?us-ascii?Q?i8p+I6KBo77/YE7VnIiDGMNvILTLXd4gvlFhfOFmHif8sOBYpQ0bZ7U3a4Pc?= =?us-ascii?Q?JL5txw5C9n0Yk6qfBwdXFJsOSByTAs3mLwidRnoZCmQ9LIbLmPn7SI9Qy3Qw?= =?us-ascii?Q?EZxoGc7Xn64dTwrseJIY9SYg99wzsQzGncQ5mB1gKLKeQpfJ+DFjIDxFqbdX?= =?us-ascii?Q?nV4D4qJHXTRvJEmDwpYV5k7WeiakdSqfVucr87WydNvhBFUp/9Hh/zDVRCUL?= =?us-ascii?Q?TA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR21MB1688.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0085c623-6ebf-409e-b720-08db3bcbe468 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Apr 2023 03:05:09.9330 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: MLvqP5gkSZSPucrBPUWJbarS+MWDob8SVgdZl1Oi0B0lXqavkP/kpN7pCnFjIOiHPgJO6I7UcMiLoZlsAz55XA7ECFe8wnmsVtrhSHAGu1U= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR21MB3575 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wei Liu Sent: Wednesday, April 12, 2023 6:23 PM >=20 > On Tue, Apr 04, 2023 at 11:35:46AM +0000, Jinank Jain wrote: > > In case of nested MSHV, retargeting interrupt hypercall should be sent > > to L0 hypervisor instead of L1 hypervisor. > > > > Signed-off-by: Jinank Jain >=20 > Applied to hyperv-next. Thanks. I'd like to hold off on taking this change. Nuno and I are discussing how best to handle nested hypercalls. In addition to the proposed nested changes, we have hypercall changes coming as part of the TDX and fully enlightened SNP patch sets. If possible, I'd like to avoid adding logic at the hv_do_hypercall() call sites. It's not clear whether avoiding such logic will really be feasible, but I'd like to think about it for a bit before reaching that conclusion. Michael