By "Windows startup" I mean even after guest reboot. Because anotherOh, so you want fresh EPC state for the guest, but you're concerned that
process could sneak in and steal your EPC pages between a close() and an
open(), I'd like to have a way to EREMOVE the pages while keeping them
assigned to the specific vEPC instance, i.e.*without* going through
sgx_vepc_free_page().
the previous guest might have left them in a bad state. The current
method of getting a new vepc instance (which guarantees fresh state) has
some other downsides.
Can't another process steal pages via sgxd and reclaim at any time?
What's the extra concern here about going through a close()/open()
cycle? Performance?