(&self, hob_address: u64)
| 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 |