MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / initialize_tdx

Method initialize_tdx

vmm/src/cpu.rs:1631–1640  ·  view source on GitHub ↗
(&self, hob_address: u64)

Source from the content-addressed store, hash-verified

1629
1630 #[cfg(feature = "tdx")]
1631 pub fn initialize_tdx(&self, hob_address: u64) -> Result<()> {
1632 for vcpu in &self.vcpus {
1633 vcpu.lock()
1634 .unwrap()
1635 .vcpu
1636 .tdx_init(hob_address)
1637 .map_err(Error::InitializeTdx)?;
1638 }
1639 Ok(())
1640 }
1641
1642 pub fn boot_vcpus(&self) -> u32 {
1643 self.config.boot_vcpus

Callers 1

bootMethod · 0.80

Calls 1

tdx_initMethod · 0.45

Tested by

no test coverage detected