def get_vcpu_used_node(numa_node_info, vcpu_thread): cpu_used_host = utils_misc.get_thread_cpu(vcpu_thread)[0] node_used_host = ([ _ for _ in node_list if cpu_used_host in numa_node_info.nodes[_].cpus ][0]) return node_used_host
def get_vcpu_used_node(numa_node_info, vcpu_thread): cpu_used_host = utils_misc.get_thread_cpu(vcpu_thread)[0] node_used_host = ([_ for _ in node_list if cpu_used_host in numa_node_info.nodes[_].cpus][0]) return node_used_host