On 27/04/20 11:22, Paraschiv, Andra-Irina wrote:
No, it's an advantage. If the parent VM can load everything in enclaveHere you wanted to say disadvantage? :)Wrt saving memory, it's about
1) having the kernel and initrd loaded by the parent VM in enclave
memory has the advantage that you save memory outside the enclave memory
for something that is only needed inside the enclave
additional memory from the parent / primary VM needed for handling the
enclave image sections (such as the kernel, ramdisk) and setting the EIF
at a certain offset in enclave memory?
memory, it can read() into it directly. It doesn't to waste its own
memory for a kernel and initrd, whose only reason to exist is to be
copied into enclave memory.