On Fri, 2019-08-23 at 05:30 +0300, Jarkko Sakkinen wrote: > Sean complained about boolean parameters so I though that maybe it would > be good to rework the EWB flow in a way that it operates by a page type and > here is the result. The contract is and will be that as long as you give > the correct page type, you will get what you want. That is why I set > REG and TCS appropriately even though they are treated the same way > at this point of time. > > Cc: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@xxxxxxxxxxxxxxx> One remark: I convert this to use SGX_SECINFO_TCS etc. Better to prefer those. We use SGX_PAGE_TYPE only in EPA wrapper. Could even consider removing those. /Jarkko