MCPcopy Create free account
hub / github.com/IBM/ACE-RISCV / initialize

Method initialize

security-monitor/src/core/control_data/storage.rs:23–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21 const NOT_INITIALIZED: &'static str = "Bug: Control data not initialized";
22
23 pub fn initialize() -> Result<(), Error> {
24 let control_data = Self { confidential_vms: BTreeMap::new() };
25 ensure_not!(CONTROL_DATA_STORAGE.is_completed(), Error::Reinitialization())?;
26 CONTROL_DATA_STORAGE.call_once(|| RwLock::new(control_data));
27 Ok(())
28 }
29
30 pub fn unique_id(&self) -> Result<ConfidentialVmId, Error> {
31 self.confidential_vms

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected