Lines Matching refs:host_topo
2725 pkg_stat = g_new0(vmsr_package_energy_stat, vmsr->host_topo.maxpkgs); in kvm_msr_energy_thread()
2734 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) { in kvm_msr_energy_thread()
2740 vmsr->host_topo.maxticks[i] = (MSR_ENERGY_THREAD_SLEEP_US / 1000000) in kvm_msr_energy_thread()
2742 * vmsr->host_topo.pkg_cpu_count[i]; in kvm_msr_energy_thread()
2773 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) { in kvm_msr_energy_thread()
2797 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) { in kvm_msr_energy_thread()
2882 vmsr->host_topo.maxticks[thd_stat[i].pkg_id]); in kvm_msr_energy_thread()
2889 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) { in kvm_msr_energy_thread()
2905 vmsr->host_topo.maxticks[thd_stat[i].pkg_id]); in kvm_msr_energy_thread()
2977 r->host_topo.maxcpus = vmsr_get_maxcpus(); in kvm_msr_energy_thread_init()
2978 if (r->host_topo.maxcpus == 0) { in kvm_msr_energy_thread_init()
2985 r->host_topo.maxpkgs = vmsr_get_max_physical_package(r->host_topo.maxcpus); in kvm_msr_energy_thread_init()
2986 if (r->host_topo.maxpkgs == 0) { in kvm_msr_energy_thread_init()
2993 r->host_topo.pkg_cpu_count = g_new0(unsigned int, r->host_topo.maxpkgs); in kvm_msr_energy_thread_init()
2994 r->host_topo.maxticks = g_new0(unsigned int, r->host_topo.maxpkgs); in kvm_msr_energy_thread_init()
2996 vmsr_count_cpus_per_package(r->host_topo.pkg_cpu_count, in kvm_msr_energy_thread_init()
2997 r->host_topo.maxpkgs); in kvm_msr_energy_thread_init()
2998 for (int i = 0; i < r->host_topo.maxpkgs; i++) { in kvm_msr_energy_thread_init()
2999 if (r->host_topo.pkg_cpu_count[i] == 0) { in kvm_msr_energy_thread_init()