[PATCH v3 0/3] Support for Intel temperature sensors (DTS)

Teddy Astie posted 3 patches 1 month, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1765300623.git.teddy.astie@vates.tech
There is a newer version of this series
tools/misc/xenpm.c                   | 91 +++++++++++++++++++++++++++-
xen/arch/x86/include/asm/msr-index.h |  3 +
xen/arch/x86/platform_hypercall.c    |  6 ++
xen/include/xen/lib/x86/cpu-policy.h | 27 ++++++++-
4 files changed, 125 insertions(+), 2 deletions(-)
[PATCH v3 0/3] Support for Intel temperature sensors (DTS)
Posted by Teddy Astie 1 month, 4 weeks ago
The idea here is to expose the DTS sensors through XENPF_resource_op
and expose it for the user through xenpm.

v3:
 - use msr-index.h instead of adding defines to MSRs in xenpm

v2:
 - moved userland part to xenpm
 - use cpu policy infrastructure instead of inline cpuid

Teddy Astie (3):
  x86/cpu-policy: Infrastructure for CPUID leaf 0x6
  x86/platform: Expose DTS sensors MSR
  xenpm: Add get-intel-temp subcommand

 tools/misc/xenpm.c                   | 91 +++++++++++++++++++++++++++-
 xen/arch/x86/include/asm/msr-index.h |  3 +
 xen/arch/x86/platform_hypercall.c    |  6 ++
 xen/include/xen/lib/x86/cpu-policy.h | 27 ++++++++-
 4 files changed, 125 insertions(+), 2 deletions(-)

-- 
2.51.2



--
Teddy Astie | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech
Re: [PATCH v3 0/3] Support for Intel temperature sensors (DTS)
Posted by Oleksii Kurochko 1 month, 2 weeks ago
On 12/9/25 6:19 PM, Teddy Astie wrote:
> The idea here is to expose the DTS sensors through XENPF_resource_op
> and expose it for the user through xenpm.

If this is something exposed to users, I think we should update the CHANGELOG.

Thanks.

~ Oleksii

>
> v3:
>   - use msr-index.h instead of adding defines to MSRs in xenpm
>
> v2:
>   - moved userland part to xenpm
>   - use cpu policy infrastructure instead of inline cpuid
>
> Teddy Astie (3):
>    x86/cpu-policy: Infrastructure for CPUID leaf 0x6
>    x86/platform: Expose DTS sensors MSR
>    xenpm: Add get-intel-temp subcommand
>
>   tools/misc/xenpm.c                   | 91 +++++++++++++++++++++++++++-
>   xen/arch/x86/include/asm/msr-index.h |  3 +
>   xen/arch/x86/platform_hypercall.c    |  6 ++
>   xen/include/xen/lib/x86/cpu-policy.h | 27 ++++++++-
>   4 files changed, 125 insertions(+), 2 deletions(-)
>