From patchwork Tue Aug 1 08:35:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Xin3" X-Patchwork-Id: 129131 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp2567064vqg; Tue, 1 Aug 2023 03:16:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlH4Ts3bcqF5kfIxDDa5mWO975QSuFhtmjf/Eg/Db6CM/rNyAaWZyIabQ2EtfmPw0L2kmAvT X-Received: by 2002:a17:902:a405:b0:1bb:b86e:8d6d with SMTP id p5-20020a170902a40500b001bbb86e8d6dmr10591290plq.29.1690884960575; Tue, 01 Aug 2023 03:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690884960; cv=none; d=google.com; s=arc-20160816; b=vuIpEKe3a03FSHslqV7c34TrE13ZB+cB3l7UVqLaFCaZAwDzEz8vdit8h7+VyreEa5 Xv7VQq15ryltRh6lfV8c1qNCPHTaO/bAwqOX4Bwq+gbrlV7Xp2R63YDetPpPQdrq78ne Z4viIdhgce6zDuZs5pe2umICwMutb12j4B3ihN9EOTy0m3wE5+ldPYrRPKqRqorqnhnq OAlehO9hQJLizWpGGBCK3ihJh+R8nQv4RZ0cAkH0+td6Je2hcmwyETuCeAFvcM+iRjwQ zEW2LA1jYx3OKC4/QtW5HLBOgPVh14saVwapuXhEYm/cG2fn6TInly/qYTr0VZhtrJMO lWQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=GpORAyE0EGCh+s73nrSUCeGbxlFBda+sXmreWL15Sxk=; fh=nYO9ukkM7JnAAJZcChGC8UWBlCLXeJxIDT82cxoIaf0=; b=MYyQYDXMHiQg0dRcLJ7KqDAzsC/j8em6klQ4O7LJ2aiBsIa10NN8ITh4CDhu9gR4wn h6Q++CDxnVvvvLvBxxvmXkhSGz1DnfSAIj/e9Ll4Ncxy////tjbIL2GNmpHD4YoLuP2U 3Py1jYurEd8nnwzGFZKGwp1bxSPdxOV1cL1Qut5Sl/pCV2vw6HCDrEJyeDbnulmNIoP8 zpoyn7T34rSQ+kyg5SfJlv737wCVVaOq85ng2nhHHRoKJ6FVmX2ZzPr1xk21I0pdflW7 DexhY9l3d2TDkM4Jvd1wUgnGYrRwDH170HF5jIZ6wOcCCpkWX+j6gBg4ec/iFSv4KBAU W3mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NvdfRlSp; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a170902d50100b001b89b1bae72si1136499plg.528.2023.08.01.03.15.48; Tue, 01 Aug 2023 03:16:00 -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=@intel.com header.s=Intel header.b=NvdfRlSp; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232516AbjHAJI6 (ORCPT + 99 others); Tue, 1 Aug 2023 05:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232990AbjHAJI3 (ORCPT ); Tue, 1 Aug 2023 05:08:29 -0400 Received: from mgamail.intel.com (unknown [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872B53AB7; Tue, 1 Aug 2023 02:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690880776; x=1722416776; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0k0T0+NBS4NOJOU0xtkOh6eqcDmcObEt/EaW35o1kMc=; b=NvdfRlSpnYWtYkivMSslU5HoqVAZO5MQ7ib5oXatIjKqPGNMmIAZ+aUM sp86G4iHt4UJJynjwlOeja80G3f7TBDuMucDotcw4bCCuT9XW+jAVR50o t1RfOpU9Uy7Vcv6ozEI/eQj9+c/+P/fS8O1Pb3paVf7KVGfo01v6QFRS/ de8gYf1vwC4uYo2aE5agpvJNAe9li5gGxKvCiav3IH9+eVTjGboIzlK1N B5BlG6MZFGRDAL8tBHx7CNfe5PdXY/Ak27GBXQDndKzbiNK2AZjYG+MLi MrXdaR49jLbc5DCwlfAcKbFU/32RRUR6piMwXg4v7ejRxaIXkYncvsUj9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="366713647" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="366713647" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2023 02:04:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="722420743" X-IronPort-AV: E=Sophos;i="6.01,246,1684825200"; d="scan'208";a="722420743" Received: from unknown (HELO fred..) ([172.25.112.68]) by orsmga007.jf.intel.com with ESMTP; 01 Aug 2023 02:04:34 -0700 From: Xin Li To: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org Cc: Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Andy Lutomirski , Oleg Nesterov , Tony Luck , "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Sean Christopherson , Peter Zijlstra , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Josh Poimboeuf , "Paul E . McKenney" , Catalin Marinas , Randy Dunlap , Steven Rostedt , Kim Phillips , Xin Li , Hyeonggon Yoo <42.hyeyoo@gmail.com>, "Liam R . Howlett" , Sebastian Reichel , "Kirill A . Shutemov" , Suren Baghdasaryan , Pawan Gupta , Babu Moger , Jim Mattson , Sandipan Das , Lai Jiangshan , Hans de Goede , Reinette Chatre , Daniel Sneddon , Breno Leitao , Nikunj A Dadhania , Brian Gerst , Sami Tolvanen , Alexander Potapenko , Andrew Morton , Arnd Bergmann , "Eric W . Biederman" , Kees Cook , Masami Hiramatsu , Masahiro Yamada , Ze Gao , Fei Li , Conghui , Ashok Raj , "Jason A . Donenfeld" , Mark Rutland , Jacob Pan , Jiapeng Chong , Jane Malalane , David Woodhouse , Boris Ostrovsky , Arnaldo Carvalho de Melo , Yantengsi , Christophe Leroy , Sathvika Vasireddy Subject: [PATCH RESEND v9 32/36] x86/fred: Export fred_entrypoint_kernel() for handling NMI in NMI induced VM exits Date: Tue, 1 Aug 2023 01:35:49 -0700 Message-Id: <20230801083553.8468-6-xin3.li@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230801083553.8468-1-xin3.li@intel.com> References: <20230801083553.8468-1-xin3.li@intel.com> MIME-Version: 1.0 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_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773021388494008313 X-GMAIL-MSGID: 1773021388494008313 Export fred_entrypoint_kernel() for handling NMI in NMI induced VM exits. Tested-by: Shan Kang Signed-off-by: Xin Li --- arch/x86/entry/entry_64_fred.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/entry/entry_64_fred.S b/arch/x86/entry/entry_64_fred.S index d24bf7f10ac8..12063267d2ac 100644 --- a/arch/x86/entry/entry_64_fred.S +++ b/arch/x86/entry/entry_64_fred.S @@ -4,6 +4,7 @@ */ #include +#include #include #include "calling.h" @@ -54,3 +55,4 @@ SYM_CODE_START_NOALIGN(fred_entrypoint_kernel) FRED_EXIT ERETS SYM_CODE_END(fred_entrypoint_kernel) +EXPORT_SYMBOL(fred_entrypoint_kernel)