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

Method present_vcpus

vmm/src/cpu.rs:1657–1660  ·  view source on GitHub ↗

Locks the vCPU states and calls [`Self::active_vcpus`].

(&self)

Source from the content-addressed store, hash-verified

1655
1656 /// Locks the vCPU states and calls [`Self::active_vcpus`].
1657 fn present_vcpus(&self) -> u32 {
1658 let lock = self.vcpu_states.lock().unwrap();
1659 Self::active_vcpus(&lock)
1660 }
1661
1662 /// Counts the number of active vCPUs (running vCPU threads).
1663 fn active_vcpus(vcpu_states: &[VcpuState]) -> u32 {

Callers 3

activate_vcpusMethod · 0.80
resizeMethod · 0.80
active_vcpusMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected