Re: [RFC PATCH v2 05/26] x86/sgx: Introduce virtual EPC for use by KVM guests

Jarkko Sakkinen
2021-01-20T12:53:09Z

On Mon, Jan 18, 2021 at 04:26:53PM +1300, Kai Huang wrote:
> From: Sean Christopherson <sean.j.christopherson@intel.com>
>
> Add a misc device /dev/sgx_virt_epc to allow userspace to allocate "raw"
> EPC without an associated enclave. The intended and only known use case
> for raw EPC allocation is to expose EPC to a KVM guest, hence the
> virt_epc moniker, virt.{c,h} files and X86_SGX_VIRTUALIZATION Kconfig.

Is /dev/sgx_virt_epc something only usable for KVM, or is there
any thinkable use outside of the KVM context?

/Jarkko