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

Method create_boot_vcpus

vmm/src/cpu.rs:1505–1512  ·  view source on GitHub ↗
(
        &mut self,
        snapshot: Option<&Snapshot>,
    )

Source from the content-addressed store, hash-verified

1503 }
1504
1505 pub fn create_boot_vcpus(
1506 &mut self,
1507 snapshot: Option<&Snapshot>,
1508 ) -> Result<Vec<Arc<Mutex<Vcpu>>>> {
1509 trace_scoped!("create_boot_vcpus");
1510
1511 self.create_vcpus(self.boot_vcpus(), snapshot)
1512 }
1513
1514 // Starts all the vCPUs that the VM is booting with. Blocks until all vCPUs are running.
1515 pub fn start_boot_vcpus(&mut self, paused: bool) -> Result<()> {

Callers 2

init_sev_snpMethod · 0.80

Calls 2

create_vcpusMethod · 0.80
boot_vcpusMethod · 0.80

Tested by

no test coverage detected