Message ID | 93e9c420dedf5f773ba6965c18245bc7d62aca83.1652137848.git.reinette.chatre@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7eb4370152beb2f1e25543088bce2e3f0621ab81 |
Headers | show
Return-Path: <linux-kselftest-owner@kernel.org> 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 C44B3C433EF for <linux-kselftest@archiver.kernel.org>; Tue, 10 May 2022 18:09:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348684AbiEJSNm (ORCPT <rfc822;linux-kselftest@archiver.kernel.org>); Tue, 10 May 2022 14:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348614AbiEJSN2 (ORCPT <rfc822;linux-kselftest@vger.kernel.org>); Tue, 10 May 2022 14:13:28 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC0012634; Tue, 10 May 2022 11:09:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652206170; x=1683742170; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gDgAdhOlLQrVJiRh1VDXKEev1BKuZqfrb/CBOr+gZrs=; b=fv98YOmhwWHL5asVKSikISxmXVFKg+aasuYlYW4MKhKGpBnJd55P7RzO taZZQJjvRnKGtaF1xz6Y1BhhaNUSXP+gtiEhq+v9uJXk/ltKL3rEFOsIC Y1HzNx1NSjO6oc+ZqEMsyBSPJ5pyV2nAZwbEqwDyN9GJiShf58vdGMcjW zemfqOuk1oVGYJgNbLduhXMhlTKylGbzLsx0e6FnudqgEdEWAkwyysKR+ gU0qin1T6A2jO0OESHISDfWRCcDGOtlsqTZ9EUVmHVUwLjX2xuK6C8jhR /C9bIeeJYTURr0KcJWcpa9VqOjNmOWY1KRKChpH64s0+w6wQznEV/atZs w==; X-IronPort-AV: E=McAfee;i="6400,9594,10343"; a="330057550" X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="330057550" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 11:09:17 -0700 X-IronPort-AV: E=Sophos;i="5.91,214,1647327600"; d="scan'208";a="541908834" Received: from rchatre-ws.ostc.intel.com ([10.54.69.144]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2022 11:09:17 -0700 From: Reinette Chatre <reinette.chatre@intel.com> To: dave.hansen@linux.intel.com, jarkko@kernel.org, tglx@linutronix.de, bp@alien8.de, luto@kernel.org, mingo@redhat.com, linux-sgx@vger.kernel.org, x86@kernel.org, shuah@kernel.org, linux-kselftest@vger.kernel.org Cc: seanjc@google.com, kai.huang@intel.com, cathy.zhang@intel.com, cedric.xing@intel.com, haitao.huang@intel.com, mark.shanahan@intel.com, vijay.dhanraj@intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org Subject: [PATCH V5 25/31] selftests/sgx: Introduce dynamic entry point Date: Tue, 10 May 2022 11:09:01 -0700 Message-Id: <93e9c420dedf5f773ba6965c18245bc7d62aca83.1652137848.git.reinette.chatre@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1652137848.git.reinette.chatre@intel.com> References: <cover.1652137848.git.reinette.chatre@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kselftest.vger.kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org |
Series |
x86/sgx and selftests/sgx: Support SGX2
|
expand
|
diff --git a/tools/testing/selftests/sgx/test_encl_bootstrap.S b/tools/testing/selftests/sgx/test_encl_bootstrap.S index 82fb0dfcbd23..03ae0f57e29d 100644 --- a/tools/testing/selftests/sgx/test_encl_bootstrap.S +++ b/tools/testing/selftests/sgx/test_encl_bootstrap.S @@ -45,6 +45,12 @@ encl_entry: # TCS #2. By adding the value of encl_stack to it, we get # the absolute address for the stack. lea (encl_stack)(%rbx), %rax + jmp encl_entry_core +encl_dyn_entry: + # Entry point for dynamically created TCS page expected to follow + # its stack directly. + lea -1(%rbx), %rax +encl_entry_core: xchg %rsp, %rax push %rax