Re: [PATCH v6 10/18] nitro_enclaves: Add logic for getting the enclave image load info

From: Paraschiv, Andra-Irina
Date: Tue Aug 11 2020 - 06:17:52 EST




On 10/08/2020 12:57, Alexander Graf wrote:


On 05.08.20 11:10, Andra Paraschiv wrote:
Before setting the memory regions for the enclave, the enclave image
needs to be placed in memory. After the memory regions are set, this
memory cannot be used anymore by the VM, being carved out.

Add ioctl command logic to get the offset in enclave memory where to
place the enclave image. Then the user space tooling copies the enclave
image in the memory using the given memory offset.

Signed-off-by: Andra Paraschiv <andraprs@xxxxxxxxxx>

Reviewed-by: Alexander Graf <graf@xxxxxxxxxx>

Thanks for review. I included the tag for this one and the next 2 patches.

Andra



Amazon Development Center (Romania) S.R.L. registered office: 27A Sf. Lazar Street, UBC5, floor 2, Iasi, Iasi County, 700045, Romania. Registered in Romania. Registration number J22/2621/2005.