Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5380137rwr; Mon, 24 Apr 2023 03:20:58 -0700 (PDT) X-Google-Smtp-Source: AKy350YOBXmgBDLFfOA/w4B/TIfvBbaZa/X/WWuEeViEP2r19fpW1zdJ30nQg4xEXBh1BzEnjmMO X-Received: by 2002:a05:6a00:14d2:b0:63b:7af1:47c9 with SMTP id w18-20020a056a0014d200b0063b7af147c9mr17954709pfu.13.1682331658339; Mon, 24 Apr 2023 03:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682331658; cv=none; d=google.com; s=arc-20160816; b=dcAeFMp7LcD2CA3iEhdythidKmg5scKIxbSTlruc+rt6WZEpQj1y8qCJPfWkyyC1Uo fwuxsJZhxkCCvaaQvES/+5ACm/mPHlM84TNyrGkVEBG18J5zdOjybRupEYXqoJMeLvnX AmlqSFADPfLJVQBXOCYjdgwQpvRNcLuLUleHfcBOZqVwjmi21wIml8xKzhEQk3vDFsPB 1OBzlbwm445A3QplV5ysCFGIXSqwPYTMB3Xax0J9RFn194ILNQBK32qXE+kDgH6v2bOQ MXVbsLwf42fK8dojbi5/ciuYcf9vanvdSj/XtKz7d+XN3JpQST1CrlrCxU9QwTHdWQRB rxGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:dkim-signature :dkim-filter; bh=UGMDSWKniiiMF4nfVZC4aEO7PzMRp2dXPX6lu/CtL34=; b=K97XdPRPf4T76Wa67WNuxiGrAcM/P7AOqCF87oOU3lreA/Dy14OqOVtrqapgBrcv2d fcBlD6IuZjZjMB0NHOOuO/pSyrCGDG3d6Z5+pcV49QpdVgxYIYZKOVUDSgG2canCGSeL VmCYm/t97y0Ae5iH92I6B8FPE+7OYy4keEmypPlzZepjRpl6G2jOX6Q1UtQIzjM/4jdC J3Nd93L8B6e+6hWea7mOkZZjp8fPdIhdvJ+8BiPEmZglVzi07lcbe5p68SM4hp/nE16y s/nMZwdXLmBqw5tT/OgbSq400iBeqwhDcIse7vb1WHYSHS7laMsAIaDG3qUqGGNcDPSs 4vaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=rzXITFHu; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l123-20020a622581000000b0063d232464absi10780092pfl.214.2023.04.24.03.20.45; Mon, 24 Apr 2023 03:20:58 -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=@linux.microsoft.com header.s=default header.b=rzXITFHu; 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=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbjDXKKi (ORCPT + 99 others); Mon, 24 Apr 2023 06:10:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231478AbjDXKK2 (ORCPT ); Mon, 24 Apr 2023 06:10:28 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 116B63581; Mon, 24 Apr 2023 03:10:23 -0700 (PDT) Received: from linuxonhyperv3.guj3yctzbm1etfxqx2vob5hsef.xx.internal.cloudapp.net (linux.microsoft.com [13.77.154.182]) by linux.microsoft.com (Postfix) with ESMTPSA id 71F7921C2B07; Mon, 24 Apr 2023 03:10:22 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 71F7921C2B07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1682331022; bh=UGMDSWKniiiMF4nfVZC4aEO7PzMRp2dXPX6lu/CtL34=; h=From:To:Subject:Date:From; b=rzXITFHuf699LSLy47iAfyos3RLvo5iQXImjcpasZma8VS9WLZyIMEhzT2YRW7J3c aXoDvde+eoac8MRYi8o4RsLNq5UzyDaWmGfNMIVLglAV7oZXyEzPHe5JkzXMW8/K1y /xWKPYJr/TO4IlBX8ByBtgn6/2duiE7xqoiXjsow= From: Saurabh Sengar To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, kys@microsoft.com, haiyangz@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, mikelley@microsoft.com, ssengar@microsoft.com, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org Subject: [PATCH] x86/hyperv/vtl: Add noop for realmode pointers Date: Mon, 24 Apr 2023 03:10:16 -0700 Message-Id: <1682331016-22561-1-git-send-email-ssengar@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 Assign the realmode pointers to noop, instead of NULL to fix kernel panic. Signed-off-by: Saurabh Sengar --- arch/x86/hyperv/hv_vtl.c | 2 ++ 1 file changed, 2 insertions(+) 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"); + x86_platform.realmode_reserve = x86_init_noop; + x86_platform.realmode_init = x86_init_noop; x86_init.irqs.pre_vector_init = x86_init_noop; x86_init.timers.timer_init = x86_init_noop; -- 2.34.1