Re: [PATCH v5 12/18] x86/sgx: Add EPC OOM path to forcefully reclaim EPC

From: Haitao Huang
Date: Thu Oct 12 2023 - 09:28:10 EST


On Tue, 10 Oct 2023 19:51:17 -0500, Huang, Kai <kai.huang@xxxxxxxxx> wrote:
[...]
(btw, even you track VA/SECS pages in unreclaimable list, given they both have
'enclave' as the owner, do you still need SGX_EPC_OWNER_ENCL and
SGX_EPC_OWNER_PAGE ?)

Let me think about it, there might be also a way just track encl objects not unreclaimable pages.

I still not get why we need kill the VM not just remove just enough pages. Is it due to the static allocation not able to reclaim?


If we always remove all vEPC pages/kill VM, then we should not need track individual vepc pages.

Thanks

Haitao