Skip to content

SMT discoverability: add thread_per_core info in host.cpu_info #5462

@olivierlambert

Description

@olivierlambert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions