@@ -567,6 +567,7 @@ let create_host_cpu ~__context host_info =
567567 [
568568 (" cpu_count" , string_of_int cpu_info.cpu_count)
569569 ; (" socket_count" , string_of_int cpu_info.socket_count)
570+ ; (" threads_per_core" , string_of_int cpu_info.threads_per_core)
570571 ; (" vendor" , cpu_info.vendor)
571572 ; (" speed" , cpu_info.speed)
572573 ; (" modelname" , cpu_info.modelname)
@@ -592,10 +593,11 @@ let create_host_cpu ~__context host_info =
592593 let old_cpu_info = Db.Host. get_cpu_info ~__context ~self: host in
593594 debug
594595 " create_host_cpuinfo: setting host cpuinfo: socket_count=%d, \
595- cpu_count=%d, features_hvm=%s, features_pv =%s, features_hvm_host =%s, \
596- features_pv_host=%s"
596+ cpu_count=%d, threads_per_core=%d, features_hvm =%s, features_pv =%s, \
597+ features_hvm_host=%s, features_pv_host=%s"
597598 (Map_check. getf socket_count cpu)
598599 (Map_check. getf cpu_count cpu)
600+ (Map_check. getf threads_per_core cpu)
599601 (Map_check. getf features_hvm cpu |> CPU_policy. to_string)
600602 (Map_check. getf features_pv cpu |> CPU_policy. to_string)
601603 (Map_check. getf features_hvm_host cpu |> CPU_policy. to_string)
0 commit comments