On Wed, Oct 16, 2019 at 01:29:12PM +0300, Jarkko Sakkinen wrote: > On Wed, Oct 16, 2019 at 01:19:56PM +0300, Jarkko Sakkinen wrote: > > On Wed, Oct 16, 2019 at 01:17:23PM +0300, Jarkko Sakkinen wrote: > > > On Mon, Oct 14, 2019 at 04:31:28PM -0700, Sean Christopherson wrote: > > > > I don't mind taking this to v23 review, but what do you mean by robustness > > > > in this context? > > > > > > I think I kind of got this together API-wise: > > > > > > #define SGX_ENCLAVE_ADD_PAGES_MEASURE 1 > > > > > > struct sgx_enclave_add_pages { > > > __u64 src; > > > __u64 offset; > > > __u64 length; > > > __u64 secinfo; > > > }; Offset would be split as 48:8:8 aka PAGE_INDEX:MRSTART:FLAGS Length would be split as 48:8:8 aka NR_PAGES:MREND:0 Forgot from my earlier description that measurement starting point would better to be also after the page start but with this bit presentation everything can be cleanly described. /Jarkko