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

Method get_vcpu_topology

vmm/src/cpu.rs:1685–1694  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1683 }
1684
1685 pub fn get_vcpu_topology(&self) -> Option<(u16, u16, u16, u16)> {
1686 self.config.topology.clone().map(|t| {
1687 (
1688 t.threads_per_core,
1689 t.cores_per_die,
1690 t.dies_per_package,
1691 t.packages,
1692 )
1693 })
1694 }
1695
1696 #[allow(clippy::needless_pass_by_value)]
1697 pub fn create_madt(&self, #[cfg(target_arch = "aarch64")] vgic: Arc<Mutex<dyn Vgic>>) -> Sdt {

Callers 7

create_acpi_tables_tdxFunction · 0.80
create_vcpuMethod · 0.80
create_madtMethod · 0.80
create_ppttMethod · 0.80
to_aml_bytesMethod · 0.80
configure_systemMethod · 0.80

Calls 2

mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected