Lines Matching refs:vmsr
2732 struct KVMMsrEnergy *vmsr = &s->msr_energy;
2745 pkg_stat = g_new0(vmsr_package_energy_stat, vmsr->host_topo.maxpkgs);
2751 vpkgs_energy_stat = g_new0(unsigned int, vmsr->guest_vsockets);
2754 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) {
2760 vmsr->host_topo.maxticks[i] = (MSR_ENERGY_THREAD_SLEEP_US / 1000000)
2762 * vmsr->host_topo.pkg_cpu_count[i];
2768 = vmsr_get_thread_ids(vmsr->pid, &num_threads);
2783 vmsr_read_thread_stat(vmsr->pid,
2793 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) {
2817 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) {
2848 vmsr_read_thread_stat(vmsr->pid,
2854 if (vmsr->pid < 0) {
2883 for (int i = 0; i < vmsr->guest_cpu_list->len; i++) {
2886 vmsr->guest_cpu_list->cpus[i].arch_id)
2889 &vmsr->guest_topo_info, &topo_ids);
2902 vmsr->host_topo.maxticks[thd_stat[i].pkg_id]);
2909 for (int i = 0; i < vmsr->host_topo.maxpkgs; i++) {
2925 vmsr->host_topo.maxticks[thd_stat[i].pkg_id]);
2934 * Finally populate the vmsr register of each vCPU with the total
2941 vmsr->msr_value[thd_stat[i].vcpu_id] = \
3028 /* Open socket with vmsr helper */
3032 error_report("vmsr socket opening failed");