Re: [PATCH v2 1/6] x86/sgx: Provide indication of life-cycle of EPC pages

From: Dave Hansen
Date: Mon Jul 19 2021 - 15:03:01 EST

On 7/19/21 11:20 AM, Tony Luck wrote:
> 1) Change the type of "owner" to "void *" (it can have other types
> besides "struct sgx_encl_page *).

I see:

static int __sgx_vepc_fault(struct sgx_vepc *vepc,
epc_page = sgx_alloc_epc_page(vepc, false);

where sgx_alloc_epc_page() sets page->owner=vepc. But, I don't see a
*reader* anywhere. Do we actually use that vepc anywhere?