Currently the host.cpu_info record get cpu_count and socket_count info (among other things). But for many reasons (eg security reasons or even licensing for the environment), we need to know the actual physical core number and/or if SMT is enabled.
Luckily, it should be simple, since we have already the info thread_per_core when XAPI populates the host.cpu_info field.
For reference, showing we already have the info but it's not just populated: https://github.com/xapi-project/xen-api/blob/master/ocaml/xenopsd/xc/xenops_server_xen.ml#L986