Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp134106iob; Tue, 17 May 2022 21:23:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5SxUtiswLB7Z0SLLC+nqd+WjMZTopGkavtZXY+hlxCVMtydp0l2F4kS/ZwZ+J8mMjvZWV X-Received: by 2002:a65:6e42:0:b0:3f2:78fd:da9b with SMTP id be2-20020a656e42000000b003f278fdda9bmr9685220pgb.297.1652847823489; Tue, 17 May 2022 21:23:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652847823; cv=none; d=google.com; s=arc-20160816; b=fpaEQT2BPkjT+4aQRdhaAx+CaWYb0RUi9u4DgU9Jf6HVnHg/PVrSXKpYd8XMKnuyyX zyidI7vb5zyZ8CJWJGaRGqZ2k+cfXhcH6JQvKr+7TxfEs8TSqxAtj1nikt2fCXvdO9HF k+V8Rn1CTQIiqUtX8dfKh7Qo9LM8XD9yKvR6ZDzIAXH91UvwacGlV/g3cMeCu5Px7n2p pqGmHaJE68HZzzhbdIpS4K3+UGCwxCU6BHvdmsuyqirAw6gpQx/yXlABhv5257hrW6FF 35b75tO0ZHQiJbhb9L3EVJxjUZ2w2EXvYbgFpHcn0XT3w/jUyG9Ql4yQHkCfoLYgJScy Jz6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=IteN9ICL3vHHQMXeE78rzjKCW/+s+R1bzkPHD4BhrHE=; b=GW2SXNtFcx9df+JmQwI+DQYszEbyqIpwoaqcn6BktdkmTzdeLgaNN5vwi2kF2OKkeW AKzSJX6sgfKTqdjcZT+C/GZTMDyh3gyyXkGrBnz6t7qbjrw+Rui8r3Bu5FrR8s4f66Hm piLt0zQHcALl+1JEbIY6D+Ddn5vRBj1zCLSHmGk1mKklMlp4kOLogjopmxnEGyvZf66k sbxZOEnJiUk9bZgz3pcMHHyS5lwe/mFqgUEAUbtmvNs9HCQAN6BIWKid2UWwZQcp8KEM C45U3lGIjXi6qiebm1IESDdOf9R1T0Iy+VIASEMcMHuQlaP+Y+Uo5MFPH627YvK5pOx8 Ndmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@amazon.de header.s=amazon201209 header.b=jNGHWE4e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i26-20020a63585a000000b003f26b211c78si1169746pgm.608.2022.05.17.21.23.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:23:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@amazon.de header.s=amazon201209 header.b=jNGHWE4e; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A04674ECFB; Tue, 17 May 2022 20:48:09 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239446AbiEQQbz (ORCPT + 99 others); Tue, 17 May 2022 12:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232072AbiEQQby (ORCPT ); Tue, 17 May 2022 12:31:54 -0400 Received: from smtp-fw-80007.amazon.com (smtp-fw-80007.amazon.com [99.78.197.218]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF0414D1E for ; Tue, 17 May 2022 09:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1652805112; x=1684341112; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IteN9ICL3vHHQMXeE78rzjKCW/+s+R1bzkPHD4BhrHE=; b=jNGHWE4exEF9jzdP5+0zeSB1dH0UvztDW3mIVGXc9Ln2IkCnWVlb7B4y vDo+kZbfUPnST6P1OiRM1I/QDqOwMyxd62gX+LCeztO8mN9IS9v2j9wSs oLb0rj/AYav73tqW6OC+g59BUPPMQkNldho/s5ztqOS+cpPbuW4/3wb+N c=; X-IronPort-AV: E=Sophos;i="5.91,233,1647302400"; d="scan'208";a="89313648" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2b-718d0906.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-80007.pdx80.corp.amazon.com with ESMTP; 17 May 2022 16:24:43 +0000 Received: from EX13D08EUC002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-pdx-2b-718d0906.us-west-2.amazon.com (Postfix) with ESMTPS id 2584E3E00E4; Tue, 17 May 2022 16:24:43 +0000 (UTC) Received: from EX13MTAUEA002.ant.amazon.com (10.43.61.77) by EX13D08EUC002.ant.amazon.com (10.43.164.124) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Tue, 17 May 2022 16:24:41 +0000 Received: from dev-dsk-mheyne-1b-c1524648.eu-west-1.amazon.com (10.15.60.66) by mail-relay.amazon.com (10.43.61.169) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Tue, 17 May 2022 16:24:40 +0000 Received: by dev-dsk-mheyne-1b-c1524648.eu-west-1.amazon.com (Postfix, from userid 5466572) id DC06A41146; Tue, 17 May 2022 16:24:40 +0000 (UTC) From: Maximilian Heyne CC: Maximilian Heyne , Josh Poimboeuf , Boris Ostrovsky , Juergen Gross , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H. Peter Anvin" , , Subject: [PATCH] x86: xen: remove STACK_FRAME_NON_STANDARD from xen_cpuid Date: Tue, 17 May 2022 16:24:25 +0000 Message-ID: <20220517162425.100567-1-mheyne@amazon.de> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit 4d65adfcd119 ("x86: xen: insn: Decode Xen and KVM emulate-prefix signature"), objtool is able to correctly parse the prefixed instruction in xen_cpuid and emit correct orc unwind information. Hence, marking the function as STACKFRAME_NON_STANDARD is no longer needed. This commit is basically a revert of commit 983bb6d254c7 ("x86/xen: Mark xen_cpuid() stack frame as non-standard"). Signed-off-by: Maximilian Heyne CC: Josh Poimboeuf cr: https://code.amazon.com/reviews/CR-69645080 --- arch/x86/xen/enlighten_pv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c index 5038edb79ad5..ca85d1409917 100644 --- a/arch/x86/xen/enlighten_pv.c +++ b/arch/x86/xen/enlighten_pv.c @@ -30,7 +30,6 @@ #include #include #include -#include #include #include @@ -165,7 +164,6 @@ static void xen_cpuid(unsigned int *ax, unsigned int *bx, *bx &= maskebx; } -STACK_FRAME_NON_STANDARD(xen_cpuid); /* XEN_EMULATE_PREFIX */ static bool __init xen_check_mwait(void) { -- 2.32.0 Amazon Development Center Germany GmbH Krausenstr. 38 10117 Berlin Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B Sitz: Berlin Ust-ID: DE 289 237 879