From nobody Tue Dec 16 16:41:21 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54B78C4167B for ; Fri, 8 Dec 2023 18:13:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574598AbjLHSNF (ORCPT ); Fri, 8 Dec 2023 13:13:05 -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 ); 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" 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 , Dave Hansen , Jarkko Sakkinen , Kai Huang , x86@kernel.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Message-ID: <170205918069.398.17416852974013342906.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/sgx branch of tip: Commit-ID: 4f812df8f37463767c2a74c2bd77de94acdb2be6 Gitweb: https://git.kernel.org/tip/4f812df8f37463767c2a74c2bd77de94a= cdb2be6 Author: Jo Van Bulck AuthorDate: Thu, 05 Oct 2023 17:38:47 +02:00 Committer: Dave Hansen 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 Signed-off-by: Dave Hansen Reviewed-by: Jarkko Sakkinen Acked-by: Kai Huang Link: https://lore.kernel.org/all/20231005153854.25566-7-jo.vanbulck%40cs.k= uleuven.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/test= ing/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 =20 push %rcx # push the address after EENTER - push %rbx # push the enclave base address =20 call encl_body =20 - pop %rbx # pop the enclave base address - /* Clear volatile GPRs, except RAX (EEXIT function). */ xor %rcx, %rcx xor %rdx, %rdx