Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1712154rwr; Thu, 20 Apr 2023 21:03:16 -0700 (PDT) X-Google-Smtp-Source: AKy350Z8M888v1P1dEy4lYXrNqjYJbSyiCqpdSG1+km0/vnJ14TXW5E4idxw/7/6TVj2dmDrmRub X-Received: by 2002:a17:902:e809:b0:1a2:1a5b:cc69 with SMTP id u9-20020a170902e80900b001a21a5bcc69mr4287655plg.32.1682049796018; Thu, 20 Apr 2023 21:03:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682049796; cv=pass; d=google.com; s=arc-20160816; b=SwTE97xfKSZHjXRsip+OUBk3/N/EmR8EBQFI36Um+OCbTgWY2Xth64OVtc2IG57Lzi BesBlMX8Tc8JpxkLbj+I8EmJPUdx1h2B6yEVd9/UBdfuSTwpUv3ETkQhJvJzJZ/h3Q7q ZZ96HNPbtCvjIzd1AVrNY0/T5D9bFhYwX+ga5VgO15QOOyPqmlOC8px+cX1+KTc5+2jx Vf5+zK6VkyFDA7EcwMPTRaMB6ct1GAe1PMfwtdgWs+jghjCLJK7qF9A5kNrXfTyybhWB oq78Z1Ohmp10KQcxHpS2TGCe/boQW2gqwuc7eb8XWduFmV10UhCfP02X0hyUHZyFRPj+ LwOQ== 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=MNwFRtf7YODf9RbVOxWLG0WU7xWujnUw3L0Xgt+DwLw=; b=ozaj5bw0pxcdDQYT+mSYR32BonRYMAgZN9X4ZxCeChw885KuA842Kkw/XVmdc0nNy0 2Cn3lJN0mnBKBxb2C9eQqvm2vvfGW66sve1EvodaO2Gc57CkuCU/ZT2e/QYYg7WCDiiv JWgOnrTn26lFSYmO3KjBt90c5VrLQiodGih9kVHWrB/0vO3rPSxhMns+abJyHCzCZp8H F8cMo04tCGWJ5v3kr5p03GPiXIZVBRtP0XPOV9LL1w7OZgjKjRWVsLVjylDZThPzj4/b f2ztPbJewkBRPmXPrxd5BuVEB2G7OythrkP+mpoG2/1RyyYv3TGZ+YR9iys27fAgHAg1 TpIQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=SbpIarU7; 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 co1-20020a17090afe8100b00233e2e1ff6csi3624226pjb.119.2023.04.20.21.03.02; Thu, 20 Apr 2023 21:03:15 -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=SbpIarU7; 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 S233722AbjDUDyO (ORCPT + 99 others); Thu, 20 Apr 2023 23:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbjDUDyK (ORCPT ); Thu, 20 Apr 2023 23:54:10 -0400 Received: from DM6FTOPR00CU001.outbound.protection.outlook.com (mail-cusazon11020026.outbound.protection.outlook.com [52.101.61.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21982271C; Thu, 20 Apr 2023 20:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GC17p1O2as+vQtc8r4w2kBU7Q9rJdir1rpRL/rbImnbbQfYbgg4X0URndvcTNuBwlWJZZH5heBhNA5lyusgjZ0Ar8PL0xDYhsJzl02JrOsqF9iKQiQyhPpKnqmE3uErYqGmGM2wK5AWPS8mNodXIg8R7azfRtxfuUmAJH5b7AUyh033olMG8/vh0heXJv0MOPysxDZ8HmlHjl4WWY3Tey5FI36HK/2Rrzrfl6rbBRzNEBtarxYo8HzhWyzfybh3cCa9aZ+1/FbjyAWeh+z49VusubCH5dVZbuWpIQwULSTLT4xT5Hdk5a9tfEK1kp8xzA4PP9F8W2DhDN8zhqsilrg== 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=MNwFRtf7YODf9RbVOxWLG0WU7xWujnUw3L0Xgt+DwLw=; b=TXHH6cM1ZHELaqXdHjA1GgMyqgNrsGcSMD9tDgLjc6j/hdVVRjsqdPu7QDnd71Qumnxp0Kgb6NltA2BTzEL9IFSwCfUH5wi7ppCqHjPGHY1+ocvRlwyOvEI2r9HMeJdFoaEJnoAdCnwq8Dw4c+uKCfIkr++ylkoWOKvY9JKOt+0TYQA6MLVFiGat9w9f251KaZXxGByByqTtC1G/xWR1Er58kUDwbJiosoMTzdn/IpswVsYGJImw7+Ffn4uK1VgCZPnV3gUwolfky16IxuhlZMcN/9I332VjLZ/N6qF4hS7cazagwPwVgmZeRG6mYpp9Y7T9hxkS2mU78LQjzVUGSg== 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=MNwFRtf7YODf9RbVOxWLG0WU7xWujnUw3L0Xgt+DwLw=; b=SbpIarU7pUKv8129rqIvh0tux35ek8Y8ngHeDK/+jQzvPDMzUzLm5exc5FqvqyERCzH1sKOnuISPjPh3nwky0utkLdHBjmjSB/8Uqsd/Ptl0mq/Q2nEv3SpgPiXaeg/GUlEeyl/hbXuViIiZiI43JfvXtQDL+PL0NL/MATQRNT8= Received: from SA1PR21MB1335.namprd21.prod.outlook.com (2603:10b6:806:1f2::11) by BL1PR21MB3331.namprd21.prod.outlook.com (2603:10b6:208:39c::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.9; Fri, 21 Apr 2023 03:54:06 +0000 Received: from SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::eeec:fa96:3e20:d13]) by SA1PR21MB1335.namprd21.prod.outlook.com ([fe80::eeec:fa96:3e20:d13%6]) with mapi id 15.20.6340.009; Fri, 21 Apr 2023 03:54:06 +0000 From: Dexuan Cui To: "Michael Kelley (LINUX)" , "ak@linux.intel.com" , "arnd@arndb.de" , "bp@alien8.de" , "brijesh.singh@amd.com" , "dan.j.williams@intel.com" , "dave.hansen@linux.intel.com" , Haiyang Zhang , "hpa@zytor.com" , "jane.chu@oracle.com" , "kirill.shutemov@linux.intel.com" , KY Srinivasan , "linux-arch@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "luto@kernel.org" , "mingo@redhat.com" , "peterz@infradead.org" , "rostedt@goodmis.org" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "seanjc@google.com" , "tglx@linutronix.de" , "tony.luck@intel.com" , "wei.liu@kernel.org" , "x86@kernel.org" CC: "linux-kernel@vger.kernel.org" , Tianyu Lan Subject: RE: [PATCH v4 6/6] x86/hyperv: Fix serial console interrupts for TDX guests Thread-Topic: [PATCH v4 6/6] x86/hyperv: Fix serial console interrupts for TDX guests Thread-Index: AQHZalujP8O9vIzAEkmR/lI5q4nag68mWtKAgA7Z2SA= Date: Fri, 21 Apr 2023 03:54:05 +0000 Message-ID: References: <20230408204759.14902-1-decui@microsoft.com> <20230408204759.14902-7-decui@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=213958c4-6372-417c-8b38-15aee46f618c;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-11T17:05:08Z;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: SA1PR21MB1335:EE_|BL1PR21MB3331:EE_ x-ms-office365-filtering-correlation-id: 86cc09eb-403e-43da-356c-08db421c0dab x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: NTwN7KL333yh3m5kp56q6wR6xEYzCoeXQk4yUrPuNlPFWWkDmAXnisUkR9HRVK77pJO96dLzoplRaGVbc1XkNbqtHJqZOi0qwbkximzOXSw96/wlkEsWxMh8VCo6HzkO83hILxgXLTpa+AImmeKnPSPeXbmifIHlBXdjgqQrdhlpZpSwoaGN9osLqbhU7+256jWkUQbFvTeWDboZn/MDY7KqVCfCgLvVSwuTrib76QljY+Ltx7NF8zqcke9kGqXYau5jB2c9uAvbu1S1TjvDdPRI7+0Ww4JdlA1UufZBCEhbc2zylgSJvOx+SpYp/dNAMrjcCHG2ppagVbTyxDkf6TCaO3HjY6yDH61SFy7FDjKnJ8XZNk3VCySvDJ8DISgVWVUNZV048fod3DC3nYzKrVKyNiuO17THngsxyuu6Nqfw9hGUXAuHLovvGcnqX9USDv3PE3FcLYs9x7g9nhV4zNBD0+a9hFA/rywPZd3b9Qwn9kFixefRtH96sSwyH2la2SO1Urb/5wOiZ131S5CDJuwGVlccFWYxlFOjPTIfRv0si6U9OOc5qk7dyYmcQ127N/DS0f6rtsCbn9wJ/FzMGzeiQhVfYwke3Ctc1B0QEgn507Z4TwlSDjMa+gKYgdRYo8oiAGW2s4kIfUgXz4RP6jqxaIeR5dm7aI+WtSNKK0YqtZzyjPkfxjUbpp5QhILc x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR21MB1335.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(39860400002)(366004)(396003)(451199021)(7416002)(122000001)(55016003)(921005)(26005)(82950400001)(6506007)(82960400001)(38100700002)(478600001)(66556008)(10290500003)(7696005)(76116006)(64756008)(66476007)(66446008)(4326008)(8990500004)(86362001)(54906003)(41300700001)(71200400001)(66946007)(786003)(110136005)(316002)(9686003)(107886003)(186003)(38070700005)(8676002)(33656002)(4744005)(2906002)(5660300002)(8936002)(52536014);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?eHhtcyyVt/4v/q00C4b+JMklACWimB9t5k6LpO6CrfN7pZ3VLgHM2Pp6X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QpjQt1Db7ZhNR790jXF4pvb4iX3Sy/yaGSj8o5oEPZ8n1AH?= =?us-ascii?Q?f++5yNU0ZHzjLmdCw5oajc+yGbYrD32iadM4QvliTiT6Y/W/PQDxOWb7Uhm+?= =?us-ascii?Q?k6Dzkz+TVjPCucpCuvBk9FTNin50C4PPX1LLzBj5ouiJ/9xfSZlgEk7to+Qp?= =?us-ascii?Q?dmgZlsiP22EVY0oXjuKU9rO2bKGHiqO9jzdsDkJsuKaq3HpQjNSkwWb6rpkT?= =?us-ascii?Q?Wyw7FVaEu3arq9NYtJ20pKlWwNKBvf+ZimTsDUMO5PnJHh0XfUOQoXXze3+T?= =?us-ascii?Q?/xcoybRL1IZTb3pIYSdSZbaiwyYDZZnPBdd7U6mpoqv1ydZjijueVBKDctwb?= =?us-ascii?Q?ghvL2UdNy2fNHZ3MV1vBiqPXbwqmOWCuaxhhfSIUYSjblLksQPrCw1LA2NGv?= =?us-ascii?Q?5b/kdgFBfK/hamu972CP9A4QoFAlzzCNpMmWvuSmkuOKD9izNQXUwg7dA456?= =?us-ascii?Q?5ydeKik3nwQrfkD/M5LvtWV1DUdSFd0e2zRqr3oksIZ6eJlJBG86h1jcg0dR?= =?us-ascii?Q?BZsDBHT8rV/3RyzX+s5kADofQPp83fS5/bOmjQ5r1lN7xzGRO3jtqhycoLMp?= =?us-ascii?Q?Gvg57EGh62ay+qNK78lMylq9UrnYPogtuYe7/VItfkNGmpWPSbSL0h0Q44Yv?= =?us-ascii?Q?OQA6X9iWWf7DzHkCVLLevMn7yExXmvHZvdprUygm?= 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: SA1PR21MB1335.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 86cc09eb-403e-43da-356c-08db421c0dab X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2023 03:54:05.8749 (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: hjISDWfeX77/TmJxWwEBBioP1Nv8VKu75rZovt1h+JTB9A14dhmU6tF4Hl6fwHel0Ccwc/lI+s7sT25KKrNCPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR21MB3331 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Michael Kelley (LINUX) > Sent: Tuesday, April 11, 2023 10:14 AM > > ... > > + * Copy arch/x86/kernel/acpi/boot.c: acpi_generic_reduced_hw_init() bu= t > > doesn't change 'legacy_pic', so it keeps its default value 'default_leg= acy_pic' in > > + * mp_config_acpi_legacy_irqs(), which sees a non-zero nr_legacy_irqs(= ), > > and eventually serial console interrupts can work properly. >=20 > I had a little trouble parsing this comment. Slightly better wording is: >=20 > * Clone arch/x86/kernel/acpi/boot.c: acpi_generic_reduced_hw_init() > here, > * except don't change 'legacy_pic'. It keeps its default value > 'default_legacy_pic'. > * mp_config_acpi_legacy_irqs() sees a non-zero nr_legacy_irqs(), and > * eventually serial console interrupts can work properly. >=20 > Otherwise, >=20 > Reviewed-by: Michael Kelley Thanks! Will use this in v5.