This guide assumes you are starting from a clean installation of Ubuntu* 20.04 LTS Server, but the steps here can be adapted to other Linux distributions. This software should not be used in production deployments at the current time. Significant changes to the software can and do occur during each revision. Intel SGX support in QEMU is still under active development.
This is based on the Intel SGX driver which is included in the kernel that you will be building for KVM.