On Tue, 17 Oct 2023 14:13:22 -0500, Michal Koutný <mkou...@suse.com> wrote:

On Tue, Oct 17, 2023 at 08:54:48PM +0200, Michal Koutný <mkou...@suse.com> wrote:
Is this distinction between preemptability of EPC pages mandated by the
HW implementation? (host/"process" enclaves vs VM enclaves) Or do have
users an option to lock certain pages in memory that yields this

(After skimming Documentation/arch/x86/sgx.rst, Section "Virtual EPC")

Or would these two types warrant also two types of miscresource? (To
deal with each in own way.)

They are from the same bucket of HW resource so I think it's more suitable to be one resource type. Otherwise need to policy to dividing the capacity, etc. And it is still possible in future vEPC become reclaimable.

My current thinking is we probably can get away with non-preemptive max_write for enclaves too. See my other reply.


Reply via email to