Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1742405rwl; Sun, 26 Mar 2023 08:17:31 -0700 (PDT) X-Google-Smtp-Source: AKy350bdlGm/UaCcbJenfW0T0Ur3JD4WmcVeJDF3FSfimyXlCoDyjvcTofh8oCy9bC0JgcdjsI8G X-Received: by 2002:a17:90b:3ece:b0:233:ee67:8eb3 with SMTP id rm14-20020a17090b3ece00b00233ee678eb3mr9804932pjb.24.1679843851081; Sun, 26 Mar 2023 08:17:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679843851; cv=pass; d=google.com; s=arc-20160816; b=iQeqLL4uO9Z22ZDy3rHDxqCpJdU4RgLZ9/BZqwshYB+/oCI1njDjuPbtUkqAYS/Q0j CERyl2g6PwwD2dxHqotF1xOVNL7CtRN+S4z0O0VuJ2+EO3YlGAPoTXmYzOJvBtHtXs/6 jnxw+NnVFYyGWdjLwkZHRaDT1jU6FopNqxWTfMY1sGQUzg+WN0fF9IAdZPb0UrDayySi P0Kao9IN21k+1P5MPXiDktal20CynckY+Ht7ZShkjRbJWUD7eY1R44aZmH6N2f8kAsAk 7CwtsB0IWrZMjAtxxV/QrOHB7IW+UlpAnHM4T05NZKHoWw9TlW51bQ2qP78OFY5+38ym JZpg== 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=sCBNaREg6P2AiCes7s+XX3UGO6khb6Riffgllh1RKQU=; b=OOsp7RCgfcxk3UF69bjLtBsgunj1pror6X6ism5cw1cU3nrPFSyb8QPQzYRqekMXm7 Kw/DkclmcrHvub6ZhnNJq+EgOAObkP4yN+I8b8Xyi88eoBqc18AgP9W9mv+jzIGoxwJ8 AjTK1xZ/Gn/LLcUn4Wi68MDhfOsviMCu/6/sp+IOTMrqx6ijPidwyAppLwiVIpPfiHAL VW6KbvlL66CJFR3JU+63+s/Hmcgx5VjlcGgrJTKEeef8EHp9QEDBDgvKb7t/GQ5+5gAb 3qmXlsNLjXJuilB4X8ZC3+cONhGd0F+JJOHVT+6Ko6wnII6z4uk/tmuK7AD/WN7iTX76 a68w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=XNKuceey; 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 c10-20020a17090abf0a00b0023bdb8f6176si4079686pjs.128.2023.03.26.08.17.15; Sun, 26 Mar 2023 08:17:31 -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=XNKuceey; 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 S232369AbjCZPG0 (ORCPT + 99 others); Sun, 26 Mar 2023 11:06:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232314AbjCZPGY (ORCPT ); Sun, 26 Mar 2023 11:06:24 -0400 Received: from DM6FTOPR00CU001.outbound.protection.outlook.com (mail-cusazon11020016.outbound.protection.outlook.com [52.101.61.16]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F0B55BB4; Sun, 26 Mar 2023 08:06:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BUOL3vZjQ+e3qBvLf1AWiL1oaVMxgE34aEP0SDGOSYQ5BLenTcQ3ljIbTX8sI2wp1dkL8P1HVaS4LOlskAax2wlD5S4y5Z+ttN4eujcQ0cw82j4oNW8Sjv/cO8mw6wRtNQDbrsNAL6k8aJ/5oaOzh60aSddIN+Od/yBvHu67DCKHiap9ifccqkJzl+6XsUJEbk0TKJCGDkdezNsjpcCulq7oqd6NwBh635M1DpcXwKpz4nyS/J62jCXaHNi6BFkUIE44GCGbSs1/uAjlLHohg0F1jvgR9qFgxJq9TTTKlWWpEo63rJDj0yG9Al50CohpJ7DRL5i6RxbtrUM6nBK6Jw== 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=sCBNaREg6P2AiCes7s+XX3UGO6khb6Riffgllh1RKQU=; b=mhXCK3TCn6pDPiJr/q5DlPy9QAIacJYCWuhbNrOCvFWl84ngccwzqMlQXhAd8jadT9XNiMNYDcL2+sXLPL395q+QDyDpRbrVRxszWPW1Jn5H6PbaAivPcpW04IdeadP76RdE1bnE2YB8xt9eRrGwdJfus8zr9gQ0zinoOa9iStgLoLbZlwilWabofUMtXMhdoShevFtzRO/kZ8qV1xRy78C1s35535JtIHuEWVy0tNOfmie6useQOQtj6Exq1jXQGH9mxdbHNFoDCoo+hpoTUMfg9nAFt1pvr0JCGgBSpwaFEHBbMT6Q5Lle2fA6K3d0iSUQRFksAsxgwbERDASoRQ== 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=sCBNaREg6P2AiCes7s+XX3UGO6khb6Riffgllh1RKQU=; b=XNKuceeyTYvC/uwWW7yfcNcToyf4Zq5tLhReI9xlnzNsqxrrZzKRFY2qOW1bi48dospvMrLaw/dLOcSuslHjUUSom6D2aU+yfE4ieWbjZ5pYK8+eSSjc9zQjTiV7EivxYsPQ3L2YLanzENiPuYiXJncRr/HzEZjpgzix2HMc3gg= Received: from BYAPR21MB1688.namprd21.prod.outlook.com (2603:10b6:a02:bf::26) by MW4PR21MB1908.namprd21.prod.outlook.com (2603:10b6:303:7b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6254.16; Sun, 26 Mar 2023 15:06:15 +0000 Received: from BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c]) by BYAPR21MB1688.namprd21.prod.outlook.com ([fe80::acd0:6aec:7be2:719c%7]) with mapi id 15.20.6254.014; Sun, 26 Mar 2023 15:06:15 +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 , "arnd@arndb.de" , Tianyu Lan , "linux-kernel@vger.kernel.org" , "linux-hyperv@vger.kernel.org" , "linux-arch@vger.kernel.org" Subject: RE: [PATCH v3 3/5] x86/hyperv: Make hv_get_nmi_reason public Thread-Topic: [PATCH v3 3/5] x86/hyperv: Make hv_get_nmi_reason public Thread-Index: AQHZWxND4dSjEgaIXkungXho9wotBK8NMqwA Date: Sun, 26 Mar 2023 15:06:15 +0000 Message-ID: References: <1679306618-31484-1-git-send-email-ssengar@linux.microsoft.com> <1679306618-31484-4-git-send-email-ssengar@linux.microsoft.com> In-Reply-To: <1679306618-31484-4-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=9e1c3a2b-71d8-48d5-825b-31be5543e574;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-03-26T15:05:32Z;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_|MW4PR21MB1908:EE_ x-ms-office365-filtering-correlation-id: 09814f73-3829-468c-47a5-08db2e0ba52c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Qajr3ksEnbk0LHePZtwrHMpcZAjHewva68Jf56D2tDs82ueRxPNVWkzNtiK8zxk16fqhyZL69JAaf3Q3QB0GMu7yvJQCCFEb9pxBYmEWyGfWoF+im4chT108MhoTPlKdt1cq8wBGagh2WSXyDvseIKAQyc29mylgSmpycxRiSpWi/FG1Y0HIXxLwx5UTQv8QbDyObhMiEVfkOWoSILiQIpgrDgHj7dS2DdiI/3v+ciw28ZjcQAZCgyGW54qyMgCmNB3VWioAjrd+zxmxeFgOtDIoFlqU6wP614irVBq0JndW9MKkJnIO1cCQIgempc2h6Fjpt+CmsMJ/v5wxrvOt0bRVZxn98pOa7eM/Bcqrk11G4c5xjMSpLXNvfGqzCcN1ASz0XWuVWg3gY8nn9C9tg0X0dSHOCM7+lkbp8BlwhjmG3EE/yML5DqXSpy4LFtiwEpuK2bowPNn83z6DYnlT8gGT2t3R+q/IM00P/2CZfq9/tPqcKhtdli8txna6meHXztw8Gx6M786zULc7CjdwBjriwdc4bGTkMJ5DSf4oQ9UUovacIc/lsxiqxw5HXGdhb2SKRveaInv8e+U1WAqeeRW4VujnDim3s4POg6aQzah1YhnDyfpFRfnV8EOBbsrf00ng24ggKeuFJ4Y7tPZce1c62qGgVpJqWetPQCxV0jQ+eSBKZieoofUwWz2z6nDo x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:cs;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR21MB1688.namprd21.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(346002)(366004)(136003)(396003)(451199021)(122000001)(38100700002)(82950400001)(82960400001)(55016003)(33656002)(86362001)(38070700005)(921005)(2906002)(10290500003)(186003)(26005)(478600001)(6506007)(9686003)(5660300002)(7416002)(8936002)(71200400001)(7696005)(52536014)(41300700001)(110136005)(316002)(66556008)(64756008)(66446008)(66476007)(66946007)(8990500004)(8676002)(83380400001)(76116006);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?P6n/dpyo0rIe188JS85MWNGsT/R38hlIOcNjUyXRh3r6r5HkVeQstMtZYieM?= =?us-ascii?Q?/v+/DSKOJ6sSiHkGS4Z+7rI8880zdcyvxeS4yOWc/oudLQ+iQ0aqWM6MsV6X?= =?us-ascii?Q?M4Kp79kJ2Ssj+kjCxlQDzwFbE8eU3CnLFwpwHPOKgnvSihjuQOw9L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mIFKJV0TRqkExRDbIgvwk3qTYrmakzr0kI?= =?us-ascii?Q?0/FPpHVlcI5+3LGeAv1G+pLxGGHpatEDY7UxdxnyorbzMp6GHDegfjnNPk96?= =?us-ascii?Q?OL8QQ2N+0nL++XQ2788XyqC163SJ3Fs2Qr8vOP0REtDKnk6gOqj8hnTMsJrV?= =?us-ascii?Q?kHnnDSOmr8DiROlewA0HieSBkF8zFPzipZiqtt+o0xAQr8ARa+Iy3cAQJnJw?= =?us-ascii?Q?H5yAo5BqbhGdNjnvYfiicn3yHHxc7mroSxSC6EOwyFcvo4VTX1saofSY5e/Q?= =?us-ascii?Q?e71PLovs0DwZIy9RVWAlfcbVO9BJNaGpquqBvSDQ4HPeXcp+JkceGM3rpSwO?= =?us-ascii?Q?xIZo8PVj3nAyX4hIwTI1trJvEr4kQ57Dhz3CgJKjhzQ8kGK8zVyNwnwUlxTA?= =?us-ascii?Q?m7VoEwdoTs/YgYdQo+u4YRYTzObFjnxIl6B94Q/ctZKHt5xOkhNtpu2HlSVw?= =?us-ascii?Q?Uq5SAaqkuFTj4/tXxTphwIKPtFwTeVfosPVs5rzLTdNOu7b5Eg5zN34Zajh3?= =?us-ascii?Q?m9/JJjhWliBRXNCC9ejnVCcLptkMidY33zpVpwrvzxVkEPgjUQlc9j8b+yQR?= =?us-ascii?Q?lg=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: 09814f73-3829-468c-47a5-08db2e0ba52c X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2023 15:06:15.3452 (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: sijbFtvMb0AI/0S9zSXupnOT1UTLbb8NwJ45Qrp8FWsOYaNbcixtF+fKrjVF7XeZsmXnMjdaITWDZdVx6nnWS55LWAG6RClRz2y8BHxdE+w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR21MB1908 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 >=20 > Move hv_get_nmi_reason to .h file so it can be used in other > modules as well. >=20 > Signed-off-by: Saurabh Sengar > --- > arch/x86/include/asm/mshyperv.h | 5 +++++ > arch/x86/kernel/cpu/mshyperv.c | 5 ----- > 2 files changed, 5 insertions(+), 5 deletions(-) >=20 > diff --git a/arch/x86/include/asm/mshyperv.h b/arch/x86/include/asm/mshyp= erv.h > index 4c4c0ec3b62e..35b16b177035 100644 > --- a/arch/x86/include/asm/mshyperv.h > +++ b/arch/x86/include/asm/mshyperv.h > @@ -181,6 +181,11 @@ static inline struct hv_vp_assist_page > *hv_get_vp_assist_page(unsigned int cpu) > return hv_vp_assist_page[cpu]; > } >=20 > +static inline unsigned char hv_get_nmi_reason(void) > +{ > + return 0; > +} > + > void __init hyperv_init(void); > void hyperv_setup_mmu_ops(void); > void set_hv_tscchange_cb(void (*cb)(void)); > diff --git a/arch/x86/kernel/cpu/mshyperv.c b/arch/x86/kernel/cpu/mshyper= v.c > index f1197366a97d..61363ce0b335 100644 > --- a/arch/x86/kernel/cpu/mshyperv.c > +++ b/arch/x86/kernel/cpu/mshyperv.c > @@ -250,11 +250,6 @@ static uint32_t __init ms_hyperv_platform(void) > return HYPERV_CPUID_VENDOR_AND_MAX_FUNCTIONS; > } >=20 > -static unsigned char hv_get_nmi_reason(void) > -{ > - return 0; > -} > - > #ifdef CONFIG_X86_LOCAL_APIC > /* > * Prior to WS2016 Debug-VM sends NMIs to all CPUs which makes > -- > 2.34.1 Reviewed-by: Michael Kelley