Function map_vcpu_clusters

Source
fn map_vcpu_clusters(
    vcpu_count: usize,
    vcpu_affinity: &Option<VcpuAffinity>,
    host_clusters: Vec<CpuSet>,
) -> Result<Vec<CpuSet>>
Expand description

Given vcpu_affinity (vcpu->pcpu mapping) and host_clusters (cluster->pcpu mapping), return a mapping of cluster->vcpu mapping.