Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2460943rwd; Fri, 2 Jun 2023 09:40:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ43eVWLS9oUjcCEi2DIPAuv/c4i/JVT7CvWQi5GbVjJCFhzgM54JBvsdbi2b5tM65klRkyl X-Received: by 2002:a17:902:c1c6:b0:1a9:86ca:38cd with SMTP id c6-20020a170902c1c600b001a986ca38cdmr455016plc.2.1685724056942; Fri, 02 Jun 2023 09:40:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685724056; cv=pass; d=google.com; s=arc-20160816; b=mxEnkxqsHNPk2dtO+parfRjeweucvjR6s+yjpYeHj0lnCJ4SClYWXr3pwURhqN3mKX Dhzi4JnqVFOSWAMklozJa43BAlHyNrH+MP1D/BJWrEQhD55NKpHubUq3EVepDaPq14k+ 9qxziwTCHfyQgYeEufHn1kHP1e+r6zXr7xE3za+UtFW4uNvtIdlxXBEKpM8j/OImXgdr kQDGSs7RMtk1FF1dBzZgB8iSP+ECG4mkAB6KeU6z7dwf8B+oDrfwC3OFAYsOFfdW94s2 TRmaowNC1kP8aCJq90bNLPHILF0bXrrV1gihujHYlMklkYou7p6eOvAfz4ZHykI0Bdgq 4j1Q== 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=FIIKYRrAKZyvl4eq/Q29C5A9O0xK+qTUS2n3oc/Xo/0=; b=Pf9qlBH8V/6ChZeqtUusKC4nd/hGVgyDD6LaXfIAkQPG/MY1Mwj/9VYwgyCwzefWiw UegGJsYjkh8Her+In2+VKjou5P8cGFiowr7A43QsN9G5p3fiSb9ZPU8wzN7e8jo+II7U qHcX8Ecg/1O4RrnCaBFAkoLmu/ctEzr6t99IBJ1PUnWfdKYaZlfYmHPI1kn/w7bw0mPS 9fFZlEE71V9c96uNsOrEI+weeAnSETCTweOdzAarGpqQymZKpmvkse6w/OpGEByHyCh+ 7SO04bGs/k0wwRtF+4YnKuwSu4OsY3Rz0Gi948naHXnBp0luKJFnDlJNuT/zPhbECWyA JKVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=OntN79rV; 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 n7-20020a170902d2c700b001b024322547si1141939plc.577.2023.06.02.09.40.45; Fri, 02 Jun 2023 09:40:56 -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=OntN79rV; 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 S234443AbjFBQ1e (ORCPT + 99 others); Fri, 2 Jun 2023 12:27:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236030AbjFBQ1c (ORCPT ); Fri, 2 Jun 2023 12:27:32 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2106.outbound.protection.outlook.com [40.107.255.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D5581AB; Fri, 2 Jun 2023 09:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=athI5JJ+X6fj3N3jmLg1EtnCmb9rHNajyaYlDWc+Pr7bfvozkbFVKCQ5gdLpPxYIGrE5B2fr2IJUG1h1wJpYRQQ6kq76XT+JQeOVmfy+iohDCJ4dkjppmX9GLcNfx/Zio/pTUdsiTOcpao6928h4NFD9L6KmQp19JNF3ilerURLKjxjUunGD2JzYcPmUdEWvKX66ZEE9sb8ZuOK1NEx+nN94dTV42TawmyQzNG8AJ1OjA0RL0Ow35GhUi2mdsbjj9cEx9zW23BeKF/ulL31CVodkIMmoPbPC8ipRPhEhoy3fAeX+IPuHcn9rFYQc5ZF4Sq3XcH8IX2NRzoDh0jON2A== 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=FIIKYRrAKZyvl4eq/Q29C5A9O0xK+qTUS2n3oc/Xo/0=; b=m0VW4JGKN6FhtFHSUxDBSkzEEAUg/ij7pQGcuGVC3Zt/KV6AocPyR9Sr7sxJh8FXllrH1+gGlQzzoBlsGYQUpWKVIuP+LbkRo2sAp6dMGxC4Xjq52pX6CM5OI6NmaeCGphFQGEeCuPtRCoa9y6YewNHxJzFI4c5i6YTb/lgJi6jexwlAykZ5pSLX2nOSjgAErjFvl5a1CSnYe372XRV2vztmUxtCTExv0nqzXKlfMsSwof0sLNsxqFMiMUqa/dn/SrGnWNbDy0h319u1FgERsa+tioxyQ1lJYjNDQsuDUfk+xg0cFC1nNcUeUfZSP3Eb4VZ5H8eHRksnZVoGqlMD3A== 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=FIIKYRrAKZyvl4eq/Q29C5A9O0xK+qTUS2n3oc/Xo/0=; b=OntN79rVR+t4z9JtQKhj7YwH1B3JworzPqBMFesH6pEMSQEQd695kbf//jpyhzTS7o0iU2UKqXu8lc8aaPS3et1M56xZuEIb64X22cHMqq1BZa2TX5uHhQxwIY4CV5mgU6UmLue7nI8/aJYXwJjvUcgJ+pfsfQbHarsP54Luu+g= Received: from PUZP153MB0749.APCP153.PROD.OUTLOOK.COM (2603:1096:301:e6::8) by SI2P153MB0703.APCP153.PROD.OUTLOOK.COM (2603:1096:4:19e::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6477.12; Fri, 2 Jun 2023 16:27:27 +0000 Received: from PUZP153MB0749.APCP153.PROD.OUTLOOK.COM ([fe80::1cc2:aa38:1d02:9a11]) by PUZP153MB0749.APCP153.PROD.OUTLOOK.COM ([fe80::1cc2:aa38:1d02:9a11%2]) with mapi id 15.20.6477.012; Fri, 2 Jun 2023 16:27:26 +0000 From: Saurabh Singh Sengar To: Wei Liu , Saurabh Sengar CC: KY Srinivasan , Haiyang Zhang , Dexuan Cui , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "Michael Kelley (LINUX)" , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "hpa@zytor.com" Subject: RE: [EXTERNAL] Re: [PATCH] x86/hyperv: add noop functions to x86_init mpparse functions Thread-Topic: [EXTERNAL] Re: [PATCH] x86/hyperv: add noop functions to x86_init mpparse functions Thread-Index: AQHZlW584J74wZLF+kuxJEQRlX5gPa93syvQ Date: Fri, 2 Jun 2023 16:27:25 +0000 Message-ID: References: <1685709712-13752-1-git-send-email-ssengar@linux.microsoft.com> In-Reply-To: Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=efe20317-45fa-4cf6-92e8-774a3fa0f607;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-06-02T16:26:43Z;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: PUZP153MB0749:EE_|SI2P153MB0703:EE_ x-ms-office365-filtering-correlation-id: f885ebae-30d9-4c0b-419e-08db6386406c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: A/QebfTpbcs0JN1Iu7o/cLdS7TmizZ7kyPWkpPjwPp6oJdF81SczsnVs86bmnVo5DlAI9kwBSbAEA+seIbxgzJxRMqK03I8GjKXrJyH9BBVvrRPE4Ma1u655CFt0ysej1oswbCDlK8vNAiMRBpJP2wpxJjXOF+YmRJKp28kJfUsGzgSp18G8aiLCpoO5abT2DI7+G2fZiExl3X+96cThNE2EzQydTzgs6VTtke0vvWF/5YsKpdWPJp/zfZdYyDU5+UE+pkcME7uCwd2FcZ362NWgd6sDI+UiPYrFhwfZzDmfcDTPMlvmFaTakaF3jpUCv123v4M3AZPMPv0NKoJxsIs8zNiOnV+K+QJYoyNNGfOruYoRHB5+V43OyQC6zFk02UCY7m3eVfJ52jv4hNwJeyhZwmzNIgqz56dzGbfPbjZKbxHT2f2nMHwOiOhmiSewgfWDkfmckor1bMd61QbcY4GWlIl9HZcuhNEZ8CCHMkuhwRgD8mFnAVZhUbBUE5/xstVcXBbi/DKHjHLPvxUzYuU+dCsSHI39LVxvA6twzh66vBjfkuFY3fsN6f0GAzF2KA7T1zopx6xlN/uZrb+OmP7bv3RbF1rQD2/yZhsKdZyPYxG+PGr68R/1mdh/BVdt24B/rKXjycSGQGMHkGepwf8vCjAEU13oelKYuuVQksc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZP153MB0749.APCP153.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(136003)(346002)(396003)(376002)(366004)(451199021)(33656002)(478600001)(10290500003)(9686003)(186003)(53546011)(6506007)(7696005)(55016003)(83380400001)(71200400001)(41300700001)(38100700002)(64756008)(82950400001)(82960400001)(122000001)(66446008)(4326008)(66556008)(66476007)(66946007)(316002)(786003)(86362001)(2906002)(52536014)(5660300002)(38070700005)(76116006)(8936002)(8676002)(54906003)(110136005)(8990500004);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?0Cg3UeBDm3BVQUXiWPzzpoiSLPyU9+cXN591d8E/Zl865fnMqvkkfrLmPgmQ?= =?us-ascii?Q?umDvrNDP53iYFFvHdpqO7EBt5KfIHznnb87XSdwGscgANZ+JSyNRILSCXsr9?= =?us-ascii?Q?DqSaqnf8wPP2w1OcpexG5fmo3hv2ujLVryN6/9MnWuh8URc9tpwSbRwXjOn3?= =?us-ascii?Q?MaH0oFza5ACkmyxOJyZcdsU21clui7iY6RZHIgkRdp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LlcE5yrUEk5YwUCqyeidODNtLMGEZawhcZDovwAsNDfTLTKUVMpDmRS?= =?us-ascii?Q?WkO7Y8XCMQuy1MuErYDYT+a1xBpZbaiWoKh0gAJBK0zgF72S4SlCL8Z8wNr7?= =?us-ascii?Q?VjgIkdioTljIPAbjd83+mHfSdWhR3vTBmWkJjU+zFjTw6qebUgTQ8pX0eiv6?= =?us-ascii?Q?dZp80JfEPxV7X3+goS7T9RrOkjJa1/SluNaHjmS06EEFWzzuZDzc4edmA1XJ?= =?us-ascii?Q?flDl9dlE6bA+uKfUEvRZ/yGsAtBy8St/Lzqs4UpOI6njeDtTHOVv8GzcbGT5?= =?us-ascii?Q?cyB404eAORkuTflrs0xiFbznjJKQaoCNtmwAsfNWIWK1q24OPy5YmP8F0F09?= =?us-ascii?Q?1TmsZs7r2HhjepwtymY3gOTiWAYRG4HIAXM6rQw4BSGKA4XuVvi9vfQQkWVt?= =?us-ascii?Q?vWyvyMknYmeb4Gmg3TaVkFwLCQvQHl2725ryRLSQqJTaT+j22lQ34dpPowLD?= =?us-ascii?Q?Om497KfEC15woksiGc5wOKNGhNgr3n4umzYWFhzZ?= 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: PUZP153MB0749.APCP153.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: f885ebae-30d9-4c0b-419e-08db6386406c X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2023 16:27:26.0119 (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: KzCyQff1g6zraMvhaTrN489681ooJHrA9nc4DqrFKXPLk+Mpc9pEA4rniJ5c2k6YhMt7T8k7i3fbE0bLHMKZ+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2P153MB0703 X-Spam-Status: No, score=-1.3 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, T_SCC_BODY_TEXT_LINE 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 > -----Original Message----- > From: Wei Liu > Sent: Friday, June 2, 2023 9:53 PM > To: Saurabh Sengar > Cc: KY Srinivasan ; Haiyang Zhang > ; wei.liu@kernel.org; Dexuan Cui > ; tglx@linutronix.de; mingo@redhat.com; > bp@alien8.de; dave.hansen@linux.intel.com; x86@kernel.org; Michael Kelley > (LINUX) ; linux-kernel@vger.kernel.org; linux- > hyperv@vger.kernel.org; hpa@zytor.com > Subject: [EXTERNAL] Re: [PATCH] x86/hyperv: add noop functions to x86_ini= t > mpparse functions >=20 > On Fri, Jun 02, 2023 at 05:41:52AM -0700, Saurabh Sengar wrote: > > In !ACPI system, there is no way to disable CONFIG_X86_MPPARSE. > > When CONFIG_X86_MPPARSE is enabled for VTL2, the kernel will scan low > > memory looking for MP tables. Don't allow this, because low memory is > > controlled by VTL0 and may contain actual valid tables for VTL0, which > > can confuse the VTL2 kernel. > > > > Signed-off-by: Saurabh Sengar > > --- > > arch/x86/hyperv/hv_vtl.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/arch/x86/hyperv/hv_vtl.c b/arch/x86/hyperv/hv_vtl.c index > > 1ba5d3b99b16..ea21d897b5da 100644 > > --- a/arch/x86/hyperv/hv_vtl.c > > +++ b/arch/x86/hyperv/hv_vtl.c > > @@ -23,6 +23,10 @@ void __init hv_vtl_init_platform(void) > > x86_init.irqs.pre_vector_init =3D x86_init_noop; > > x86_init.timers.timer_init =3D x86_init_noop; > > > > + /* Avoid searching for BIOS MP tables */ > > + x86_init.mpparse.find_smp_config =3D x86_init_noop; > > + x86_init.mpparse.get_smp_config =3D x86_init_uint_noop; > > + >=20 > The code looks fine. >=20 > Can you expand the commit message a bit so that people who are not > familiar with VTL and your setup can understand what's going on? Sure, I will add more details in commit message. >=20 > Thanks, > Wei. >=20 > > x86_platform.get_wallclock =3D get_rtc_noop; > > x86_platform.set_wallclock =3D set_rtc_noop; > > x86_platform.get_nmi_reason =3D hv_get_nmi_reason; > > -- > > 2.34.1 > >