Hi @Zaro,
The first step would be to have SGX support in Xen. A quick grep in the source (both 4.14 and upstream master
) shows it’s knows when SGX is enqbled but does not seem to do much with the info. Intel’s own SGX page points to a defunct github repo. Their patches live on at Commits · bitman694/xen-sgx · GitHub and other forks, e.g. Branches · CupertinoDude/xen-sgx · GitHub, and definitely do not appear in the Xen history.
So until someone revives the effort, the answer seems to be “no”.