Message ID | 170205918069.398.17416852974013342906.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp5632027vqy; Fri, 8 Dec 2023 10:13:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJiLxVn6Zf2ymL7aRmNEYD0UgQ4UbmSyiu6CtVHsrhzkQOXHt5d9hx5IkoJeY7DuvJVXtU X-Received: by 2002:a17:90a:d790:b0:286:7da5:6555 with SMTP id z16-20020a17090ad79000b002867da56555mr477218pju.50.1702059208054; Fri, 08 Dec 2023 10:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702059208; cv=none; d=google.com; s=arc-20160816; b=qf7jALrkQIbTec+qxiDASY9fR2PRC73fhqo3DCgOuJDRbcABffbkazOFduhJBzsUoT kacxlcM9ZOGu7BJzfhBrzYTBLTkaTmKBtipQCFbXUTK5s4oFgkLqJ10jclqV5hxc9rJy hJMu/w0U7Uf8fcoSNVBS5ouMAmKzX19+c/4LsS/ZYdn0A2xyXEijnJOttN3FiPZlYIBs S/sRdPHbTI+HvGace0LtBA1D+5sgIuAa5RjPOdWMXMUeVMTqayXUrYqjCrW01zmqAi/R GS+uKnF8Mpq+woldi0XMPl3xdaOMc6qcDa11KEP2s/GXlTuG4xTjxVs3NamYNfjqIidr W60Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:cc:subject:to:reply-to:sender:from :dkim-signature:dkim-signature:date; bh=yvm4+gDjc9yZRURvOF5hsHgmgIuQOiG3VThauBnHAuM=; fh=NdptIAQysOQlidYXeN2I+7Z8M3wdEdDWch6LHJ8uuCQ=; b=LDdjwaLkUPBuClIiN9vQzWuO+O17+BBWYCJx7aLGYsctKpBmdxVXqpXwgLm9jA/8ma ZIIWR0FE7UT5IgcbDEY4+p2afm2hGuBQ7mYPJY9rP+fpZmbcUnvWA77okin2GiNt99Qc MkFr/O4Mswk9cT5ByfpjoC3RfrSe350HDMDuYbvc8r7jan27rDQ8JM9LVdoJlS04qE8S xnk3x615G/a4jLGWAMiU1lf4Kc/o1fiaXBJElkWpejTfo8UqZc0NJK5PYgJ93+QNQttm Tb6ZXwqyPAkfF4TDcpa40VKbPEp3luCoYXtE7vASAgW8qAYf80pqaicZnaODxDwnirlG jGPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fZLsZDj2; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id i3-20020a170902c94300b001cffce3a2e2si1946117pla.426.2023.12.08.10.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 10:13:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=fZLsZDj2; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 327CA83B1E92; Fri, 8 Dec 2023 10:13:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574561AbjLHSNE (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Fri, 8 Dec 2023 13:13:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574490AbjLHSM4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 8 Dec 2023 13:12:56 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7CC211F; Fri, 8 Dec 2023 10:13:02 -0800 (PST) Date: Fri, 08 Dec 2023 18:13:00 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702059181; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yvm4+gDjc9yZRURvOF5hsHgmgIuQOiG3VThauBnHAuM=; b=fZLsZDj2W6KDZXbVMq6WgFFW3z1ROEn+G8dQ0q1ZbNpvWaluEv2XEYb0ezcy1FDA2NQPrg zKHaLjtpsYsbnjBE9C/iv5nJ0/wXI4EqYFnDMDiIF/YnhJXmpuumzRZL9WP3iP5ojse36s Gw4FHrq3Z776a0HC0PLlSTTwpgJ+P7PfB88FakU2BhpQaSRHV4N+gEkbUg5tBjPmLIsA7k 9uDxsPhFgv0wd30UBh1osbtPgLCgKmPhQ5JTKK1X5HvF5bNCfXaEHCafwWMdF9t0SGaoNw iJVoJeOkETctHb4W0AYdQ2JwryBTqeWIQG0CZOqKcMxBLpTQBg6qmLNHgnqCOQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702059181; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yvm4+gDjc9yZRURvOF5hsHgmgIuQOiG3VThauBnHAuM=; b=ykwsQkdMATCkFAftugd7iv8fmMHJDGUNWIsie3le/1SNNYWtw/+u7gb/2F9cm2+YKciZMp 7lfUoQUkhzZjY9Dw== From: "tip-bot2 for Jo Van Bulck" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/sgx] selftests/sgx: Remove redundant enclave base address save/restore Cc: Jo Van Bulck <jo.vanbulck@cs.kuleuven.be>, Dave Hansen <dave.hansen@linux.intel.com>, Jarkko Sakkinen <jarkko@kernel.org>, Kai Huang <kai.huang@intel.com>, x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205918069.398.17416852974013342906.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 08 Dec 2023 10:13:23 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784738436148470798 X-GMAIL-MSGID: 1784738436148470798 |
Series |
[tip:,x86/sgx] selftests/sgx: Remove redundant enclave base address save/restore
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Dec. 8, 2023, 6:13 p.m. UTC
The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 4f812df8f37463767c2a74c2bd77de94acdb2be6 Gitweb: https://git.kernel.org/tip/4f812df8f37463767c2a74c2bd77de94acdb2be6 Author: Jo Van Bulck <jo.vanbulck@cs.kuleuven.be> AuthorDate: Thu, 05 Oct 2023 17:38:47 +02:00 Committer: Dave Hansen <dave.hansen@linux.intel.com> CommitterDate: Fri, 08 Dec 2023 10:05:27 -08:00 selftests/sgx: Remove redundant enclave base address save/restore Remove redundant push/pop pair that stores and restores the enclave base address in the test enclave, as it is never used after the pop and can anyway be easily retrieved via the __encl_base symbol. Signed-off-by: Jo Van Bulck <jo.vanbulck@cs.kuleuven.be> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Acked-by: Kai Huang <kai.huang@intel.com> Link: https://lore.kernel.org/all/20231005153854.25566-7-jo.vanbulck%40cs.kuleuven.be --- tools/testing/selftests/sgx/test_encl_bootstrap.S | 3 --- 1 file changed, 3 deletions(-)
diff --git a/tools/testing/selftests/sgx/test_encl_bootstrap.S b/tools/testing/selftests/sgx/test_encl_bootstrap.S index 03ae0f5..e0ce993 100644 --- a/tools/testing/selftests/sgx/test_encl_bootstrap.S +++ b/tools/testing/selftests/sgx/test_encl_bootstrap.S @@ -55,12 +55,9 @@ encl_entry_core: push %rax push %rcx # push the address after EENTER - push %rbx # push the enclave base address call encl_body - pop %rbx # pop the enclave base address - /* Clear volatile GPRs, except RAX (EEXIT function). */ xor %rcx, %rcx xor %rdx, %rdx