Skip to content

Add AMD CPU for RAPL MSR support

Anthony Harivel qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2target/i386/kvm: add AMD support for RAPL MSRdocs/specs/rapl-msr.rst include/system/kvm_int.h target/i386/cpu.h +5 more+134 -660 replies
2/2target/i386/kvm: Change error_report() to tracepoint in vmsr_read_thread_stat()target/i386/kvm/trace-events target/i386/kvm/vmsr_energy.c+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Add AMD CPU for RAPL MSR support

Hi,

The following patch add the support for AMD CPU for RAPL MSR. This was one of the two current limitation of the introduction patch.

This has been tested on AMD Ryzen 5850U. I was able to mount the RAPL driver in a VM with '-cpu host'. The counter value are increasing properly.

I added a second patch to silence an error that is not really an error. I change it to a tracepoint following Daniel advice. Thanks Daniel !

Thanks
Anthony

Anthony Harivel (2):
target/i386/kvm: add AMD support for RAPL MSR target/i386/kvm: Change error_report() to tracepoint in
vmsr_read_thread_stat()

 docs/specs/rapl-msr.rst       |  21 ++++---
 include/system/kvm_int.h      |   4 ++
 target/i386/cpu.h             |   2 +
 target/i386/kvm/kvm.c         | 111 ++++++++++++++++++++++------------
 target/i386/kvm/trace-events  |   3 +
 target/i386/kvm/vmsr_energy.c |  13 +++-
 target/i386/kvm/vmsr_energy.h |   1 +
 tools/i386/qemu-vmsr-helper.c |  47 ++++++++------
 tools/i386/rapl-msr-index.h   |   4 ++
 9 files changed, 139 insertions(+), 67 deletions(-)
Signature · 1 line
2.48.1