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

Method get_max_vcpus

hypervisor/src/kvm/mod.rs:1720–1722  ·  view source on GitHub ↗

Get maximum number of vCPUs

(&self)

Source from the content-addressed store, hash-verified

1718
1719 /// Get maximum number of vCPUs
1720 fn get_max_vcpus(&self) -> u32 {
1721 self.kvm.get_max_vcpus().min(u32::MAX as usize) as u32
1722 }
1723}
1724
1725/// Vcpu struct for KVM

Callers 1

newMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected