qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add AMD CPU for RAPL MSR support
@ 2025-03-13 10:19 Anthony Harivel
  2025-03-13 10:19 ` [PATCH 1/2] target/i386/kvm: add AMD support for RAPL MSR Anthony Harivel
  2025-03-13 10:19 ` [PATCH 2/2] target/i386/kvm: Change error_report() to tracepoint in vmsr_read_thread_stat() Anthony Harivel
  0 siblings, 2 replies; 3+ messages in thread
From: Anthony Harivel @ 2025-03-13 10:19 UTC (permalink / raw)
  To: pbonzini, berrange; +Cc: qemu-devel, Anthony Harivel

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(-)

-- 
2.48.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-13 10:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-13 10:19 [PATCH 0/2] Add AMD CPU for RAPL MSR support Anthony Harivel
2025-03-13 10:19 ` [PATCH 1/2] target/i386/kvm: add AMD support for RAPL MSR Anthony Harivel
2025-03-13 10:19 ` [PATCH 2/2] target/i386/kvm: Change error_report() to tracepoint in vmsr_read_thread_stat() Anthony Harivel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).