From: Kristen Carlson Accardi 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> References: <20220922171057.1236139-1-kristen@linux.intel.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: 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==; In-Reply-To: <20220922171057.1236139-1-kristen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" To: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-sgx-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Jarkko Sakkinen , Dave Hansen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, "H. Peter Anvin" Cc: Kristen Carlson Accardi , Sean Christopherson 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; }; -- 2.37.3