Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5759391rwr; Mon, 1 May 2023 10:17:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75B02MAR3rKrba9BRnzMXJezibETtODoQCrbPJKSWDJY2t6jT7aYdoZH/ojLDp7vtaJxOn X-Received: by 2002:a05:6a00:1348:b0:63b:19e5:a9ec with SMTP id k8-20020a056a00134800b0063b19e5a9ecmr22715997pfu.33.1682961465269; Mon, 01 May 2023 10:17:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682961465; cv=pass; d=google.com; s=arc-20160816; b=qJ4a0hooLACri0E+yJl76Ff/vvTbJtJNP4puTKvQ7gphw7Gfc9ttFcbnonxCbe1EQy u9u0AqQv4S816qI0lSiP+Rh9X8RaGIIkiav4FLecVqREaeKIor15Cubt05AZhaB1QZ+i npjLZtYa0fIcJ12QL+odT8QE4cpbcdM2VPxChs8pZNHE8fJOLyjh2ePbe3srruvhZx0b ALThuliRxOVcMS/gAjywlDivLX+a226+PSWdprvhwnUtZokfs6nxlqXpNCyptk9zQn0n +XrE4EmH7mlVD77M/lIdIheOcbfdod3mV2dwkZQhuebuAcsamDtw6uXlAht9yD5KGl6i js5A== 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:to:from :dkim-signature; bh=j/+jyv0mLqRd2TzuclSnhXcnq0o7yJCMgWcaaoWBXN0=; b=c8+5lUGGdO1Tx8pSVhQ6IvGGX6nEsgKfaSMbwsUJe60+1Eu9WcAOwsHEUP5QYO6lyT XQW30u2zH/T2eDLH7pbzdSEbecICiETX3YcaaCPDLEgqRhOsjJOKU2J+z8mqsl8AD/3g PvQz9x74QacVm/5pP71vBkuSevX4WS841aPyVsKLgsCLXefU728ecpRlJpkOczuyRsMY WL33oYuvO0TZJckRl2Og6s8HTCt4SlJge5Ie8hfMrSb5ySRZ67faXO4iEL74wE0iqSrq 6ZtitRVsBY/i+xdA5NE/ZegyiSKA3yoZ/dRy3AW2UP5DONETPrShjJqNlFwCWRBMRzNr TOxA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=K4YfO0qb; 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 k4-20020aa79984000000b0063b8982c669si28019636pfh.317.2023.05.01.10.17.28; Mon, 01 May 2023 10:17:45 -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=K4YfO0qb; 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 S232941AbjEARFy (ORCPT + 99 others); Mon, 1 May 2023 13:05:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbjEARFH (ORCPT ); Mon, 1 May 2023 13:05:07 -0400 Received: from BN6PR00CU002.outbound.protection.outlook.com (mail-eastus2azon11021016.outbound.protection.outlook.com [52.101.57.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBA9A4EF8; Mon, 1 May 2023 09:58:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LZXLFbuN5Fsp4MuIvE6aPk8OuFpGVVgHZyNhct/Fkb6iksHwdfCuXCP+dX8kswqfG5zHqWTBxBWhhwrD4NqGKux86Pv7fKc2izqwjHAuOkxWaf0iUc36yvTuxeAj36SdHB+/nxF0o+3SEiNA8LRA9SxKe6d/iSbXZH1tGl11vrUpPB2FeRdAd4Yf2Lb694QK30C3yvpVs0/Zk2MC6uPeKYSrkYYaiU7zbmVCAsZZZTato+AmGBTPO+SZ1SUYtTH1v0v5MGMAn4MIYgEM1CzhWV4QDaFMtG3FFVoV/fPLB7/ZH4GVQ6QJiJXYjWybadonq400ayiWBJ8/A3u9SOIpbg== 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=j/+jyv0mLqRd2TzuclSnhXcnq0o7yJCMgWcaaoWBXN0=; b=GsSjoIzfzm99vtKgkjvPk4idwUyYw3syT3iLwWdIODOh7BYhB9CEeoB8/IaVrKE+mbDKki/qYNkGM6HMqsV1APEsRmO/L0yPpUuUmyfGDpbbp+fJcoW4xvoWfWTSTUArc+ZhRQyuiAN9uRD8l7jh4Nk21zZ0OzGM9Lf4okGpfjfA2Z/0opWzoSMHG3APe/G9UfLNOBleSJfixy9qLkzgw95mpmaUmW8pZx+55JdLI/vBiX9XVNL2e8r0FPs7FJs13yk+CyuDXeNw9Msg9RVgGpoSwOS4bukvbzqsBNpmtnVooFtIC3KHeDNRI8GXCmVgmo3n+HfGfHxtqOSRNJKlbg== 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=j/+jyv0mLqRd2TzuclSnhXcnq0o7yJCMgWcaaoWBXN0=; b=K4YfO0qbkwdZlu8UxWCbJcxHsOBN/8tB1Kgp8yTymYx0CL1hbmzvVB/Sep6cO1zy3EMNGAynL7+fQyUT8fnOavO8nz6wwxnLJG5BANGl/spPYXH9uMQJdAiT3oOLd+3WadSBHyfQq3U+qhGWZP/t/kaa+XzZVryLPgroCbdBU2k= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by SA3PR21MB3932.namprd21.prod.outlook.com (2603:10b6:806:2f0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.24; Mon, 1 May 2023 16:57:57 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::89f5:e65e:6ca3:e5a7]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::89f5:e65e:6ca3:e5a7%6]) with mapi id 15.20.6363.018; Mon, 1 May 2023 16:57:56 +0000 From: "Michael Kelley (LINUX)" To: Saurabh Sengar , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "x86@kernel.org" , "hpa@zytor.com" , KY Srinivasan , Haiyang Zhang , "wei.liu@kernel.org" , Dexuan Cui , Saurabh Singh Sengar , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" Subject: RE: [PATCH] x86/hyperv/vtl: Add noop for realmode pointers Thread-Topic: [PATCH] x86/hyperv/vtl: Add noop for realmode pointers Thread-Index: AQHZdpT9Z0UV1Ykq5UyxGk0VlUOcFK9FruAA Date: Mon, 1 May 2023 16:57:56 +0000 Message-ID: References: <1682331016-22561-1-git-send-email-ssengar@linux.microsoft.com> In-Reply-To: <1682331016-22561-1-git-send-email-ssengar@linux.microsoft.com> 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=8ee2fbc2-9802-421e-8837-b1390483d7e1;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-05-01T16:57:31Z;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_|SA3PR21MB3932:EE_ x-ms-office365-filtering-correlation-id: d94a96c8-a8f6-41d1-1d53-08db4a65362f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: mtUCCPLTwPWSheslKUYJZJbIFml5WYN/0xDMXz+eQMvCoSKzFcfobdV7DFt/HRK2uOp8hz0Xy6r6+hNxWs06yCD+Y+zvHpPRuNonD/fAKiI4WK5RDwNYlofDCPHMBrXpFYRLnchBLzG+hcHcER0AFLeCneQeV74RiUSH7DCFbrcAoQVInO+TyzR+HLMpDd43Z30u36+wMLuD9Az7Eb9iGC4zKN4S0MpPXmEk34i0ane6fFVEqCCShCph6NdySkPeh/MjTN2x2EQc7/c7QzA/fJIwcqGegMtYEarRnVAWjrlu1s4tGtTBe9NFNlf0izGccuV0eB8IIrRjuVbffBVAITeNTgTXyoPrpE86yJzvKO2+ez6+cGDIBu5SRZzvkRFH9H4omqb78oyTPLq0ehzJkOd3eYkUz/FR15e2MsGvasdnddFgB/+7Wl87afPq5GdK7ctsyBDzrhTHdgdZdXcajWMPojmvn4GT29c7RQ11QT7Rk1Y6zJNeX2DpvPyseat+m0514UUQQGm1m8vJFDZ9XjpKcDeXLy0I5ytvlh5n3VLCV9jSi4+RGIMqOg2ATQreTDUwKA+TQnizM77R17IpZb2UHTaN/2B9gfz48HDV2anAQw/xfvoTqn5qdweJA5q4gIC55FZbn24pqnATwwPWfUt6F1KxbJ1XQf0/u2ZcHFNRIx2k15sJeaem0QwIz1Yz x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(346002)(136003)(366004)(39860400002)(376002)(451199021)(186003)(71200400001)(7696005)(55016003)(110136005)(26005)(6506007)(9686003)(64756008)(316002)(76116006)(66946007)(66556008)(10290500003)(478600001)(921005)(82950400001)(786003)(82960400001)(66476007)(66446008)(8676002)(8936002)(52536014)(5660300002)(38070700005)(2906002)(38100700002)(4744005)(41300700001)(122000001)(33656002)(8990500004)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?2BJQSFaB3oPX3VczHpLUJvUGBorxQscfnl1OrMtOgNmtaykXPb6AlOFfzVIj?= =?us-ascii?Q?RXOrNQa8LGN0sxiQvTMZ0ihEyW0fmqgbCbnXxbIwSJw1f/6pr6PDfIhb/QXL?= =?us-ascii?Q?y7iqPHozaY+co1TSo/ACOvEcKWK3SIe4AJZpSXiVqXfAktzhEGS8ETJI/PHv?= =?us-ascii?Q?JL5YCEPvMPasQiDpFJdLHSBSO2Bbg5POmyg4e2n2w3GNuXQl7MZAY+1YB1eE?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zaP8cB4U5xHm72UceEb?= =?us-ascii?Q?rDrnptlHQjdPRdEKix3zuWu3b6yjns2uE3wcYnRY7RSREi0cCdDbfqpezlNs?= =?us-ascii?Q?do3jzun8vttApExaljnkNBrNv0d189eWDZaoJmkvVUZ272UvdGBOUQUDDuxz?= =?us-ascii?Q?gXuPYpI34K4ifEaXY9mYs7GoSpFavDZLZfPBfE1CzqGLr3LOh0s2yWFi5Ph7?= =?us-ascii?Q?oXJS+Nefil5rySiJMiMzRkRq0B1kt49o+wxhDR7joghDHsX+zz/4zL/Wcb/b?= =?us-ascii?Q?2yU0t7+a7XARIfmbdIMtNt0CYDiQRTT7Lma7xUg9+ArGVui5HrWMdgzCe5Pr?= =?us-ascii?Q?5jnl99wnepMANsToPCgjauZ6fcGn19tmBx9XGoBUcCdhr/2xj+EAKOVVqcw1?= =?us-ascii?Q?cb7+z7AHdMaf+OYV64d4k3tS20A7MLmm4B/G1CM6eMtL7uKTMcRXaP+bKQ/k?= =?us-ascii?Q?5rkL6XwzabyMtUqdG37oHN78yOz8n4PZMCrSc9a7+gbWoQTMcqtLic7GL75F?= =?us-ascii?Q?+A=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: d94a96c8-a8f6-41d1-1d53-08db4a65362f X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2023 16:57:56.4103 (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: eJR+Zy8VhOd9kMKMzhvSjdhwq2+QAl/JGagHVxxqUlvZ+m9teZFyaGFLS7nx+ymqHdYOCebeT5gFAuk3yPOj+ntwL0RctvkB9ilSULw59A8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR21MB3932 X-Spam-Status: No, score=-2.3 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: Saurabh Sengar Sent: Monday, April 24, = 2023 3:10 AM >=20 > Assign the realmode pointers to noop, instead of NULL to fix kernel panic= . >=20 > Signed-off-by: Saurabh Sengar > --- > arch/x86/hyperv/hv_vtl.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/arch/x86/hyperv/hv_vtl.c b/arch/x86/hyperv/hv_vtl.c > index 1ba5d3b99b16..85d38b9f3586 100644 > --- a/arch/x86/hyperv/hv_vtl.c > +++ b/arch/x86/hyperv/hv_vtl.c > @@ -20,6 +20,8 @@ void __init hv_vtl_init_platform(void) > { > pr_info("Linux runs in Hyper-V Virtual Trust Level\n"); >=20 > + x86_platform.realmode_reserve =3D x86_init_noop; > + x86_platform.realmode_init =3D x86_init_noop; > x86_init.irqs.pre_vector_init =3D x86_init_noop; > x86_init.timers.timer_init =3D x86_init_noop; >=20 > -- > 2.34.1 Reviewed-by: Michael Kelley