mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
sgx: Add mandatory id field to SgxEpcConfig
In order to uniquely identify each SGX EPC section, we introduce a mandatory option `id` to the `--sgx-epc` parameter. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
@@ -1458,10 +1458,13 @@ impl MemoryManager {
|
||||
false,
|
||||
)?;
|
||||
|
||||
sgx_epc_region.push(SgxEpcSection::new(
|
||||
GuestAddress(epc_section_start),
|
||||
epc_section.size as GuestUsize,
|
||||
));
|
||||
sgx_epc_region.insert(
|
||||
epc_section.id.clone(),
|
||||
SgxEpcSection::new(
|
||||
GuestAddress(epc_section_start),
|
||||
epc_section.size as GuestUsize,
|
||||
),
|
||||
);
|
||||
|
||||
epc_section_start += epc_section.size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user