Add AMD CPU for RAPL MSR support
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | target/i386/kvm: add AMD support for RAPL MSRdocs/ include/ target/ +5 more | +134 | 0 replies | |
| 2/2 | target/i386/kvm: Change error_report() to tracepoint in vmsr_read_thread_stat()target/ target/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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