From patchwork Thu Sep 22 17:10:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kristen Carlson Accardi X-Patchwork-Id: 12985585 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 B4313C6FA8B for ; Thu, 22 Sep 2022 17:11:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231531AbiIVRLQ (ORCPT ); Thu, 22 Sep 2022 13:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiIVRLO (ORCPT ); Thu, 22 Sep 2022 13:11:14 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 869B2EC556; Thu, 22 Sep 2022 10:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663866673; x=1695402673; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/jwJz/0WALvq7OG3385Vm/i2qLLDEZvPaM+GPnlyhu0=; b=iMSd57bSTkpPVeOOlY2OdO72UFL6HZqhdTujj4H0dy2mu95uswY6kEZX 8Wz2LB07SuiHvQXwy8B0l50FEEXLNd2k4PPHnRhRAnTig5awT77/zzSjb MKh15S43E8+B8B0ye3JFRGGIJErzGHmW14hijDbKpZucXd5P38X1CwSKP VtgiSBY8e4wecp7lp61mwpD9/kBVU6STVlQpf117Suh7c/4p92SqTfNEb eObOEj8vhvZUlN8/VeRzk7utBD1ndP7WPOgpk8SAwW9pPA3bjHlJNapYf K8icMme2SjJw+Jf7ycyhrKciMDK7gmcfNjwyyUaWUqvHOVA7w7VwLg7xy A==; X-IronPort-AV: E=McAfee;i="6500,9779,10478"; a="326689827" X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="326689827" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 10:11:12 -0700 X-IronPort-AV: E=Sophos;i="5.93,337,1654585200"; d="scan'208";a="762269853" Received: from sknaidu-mobl1.amr.corp.intel.com (HELO kcaccard-desk.amr.corp.intel.com) ([10.212.165.187]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2022 10:11:09 -0700 From: Kristen Carlson Accardi To: linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, cgroups@vger.kernel.org, Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" Cc: Kristen Carlson Accardi , Sean Christopherson Subject: [RFC PATCH 02/20] x86/sgx: Store EPC page owner as a 'void *' to handle multiple users Date: Thu, 22 Sep 2022 10:10:39 -0700 Message-Id: <20220922171057.1236139-3-kristen@linux.intel.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220922171057.1236139-1-kristen@linux.intel.com> References: <20220922171057.1236139-1-kristen@linux.intel.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org From: Sean Christopherson A future patch will use the owner field for either a pointer to a struct sgx_encl, or a struct sgx_encl_page. Signed-off-by: Sean Christopherson Signed-off-by: Kristen Carlson Accardi Cc: Sean Christopherson --- arch/x86/kernel/cpu/sgx/sgx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/sgx/sgx.h b/arch/x86/kernel/cpu/sgx/sgx.h index 0f2020653fba..5a7e858a8f98 100644 --- a/arch/x86/kernel/cpu/sgx/sgx.h +++ b/arch/x86/kernel/cpu/sgx/sgx.h @@ -33,7 +33,7 @@ struct sgx_epc_page { unsigned int section; u16 flags; u16 poison; - struct sgx_encl_page *owner; + void *owner; struct list_head list; };