vmm: Enable provisioning for SGX guest

The guest can see that SGX supports provisioning as it is exposed
through the CPUID. This patch enables the proper backing of this
feature by having the host open the provisioning device and enable
this capability through the hypervisor.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-07-07 12:19:26 +02:00
parent 9ec0c981f8
commit 17c99ae00a
2 changed files with 21 additions and 2 deletions

View File

@@ -724,7 +724,7 @@ impl Vm {
memory_manager
.lock()
.unwrap()
.setup_sgx(sgx_epc_config)
.setup_sgx(sgx_epc_config, &vm)
.map_err(Error::MemoryManager)?;
}
}