Re: [PATCH v25 07/21] x86/sgx: Enumerate and track EPC sections

From: Jarkko Sakkinen
Date: Thu Feb 06 2020 - 10:35:27 EST


On Wed, Feb 05, 2020 at 11:57:00AM -0800, Sean Christopherson wrote:
> 3. Breaks on-demand paging when running in a VM, e.g. if the VMM chooses
> to allocate a physical EPC page when it's actually accessed by the
> VM. I don't expect this to be a problem any time soon, as all VMMs
> will likely preallocate EPC pages until KVM (or any other hypervisor)
> gains EPC oversusbscription support, which may or may not ever happen.
> But, I'd prefer to simply not have the problem in the first place.

So wouldn't it be better to revisit this when the VM changes are added.

/Jarkko