Hi Paolo,
The value reported by the calculation was looking very wrong to me.
This should fix it for good.
Calculated value appears now way more accurate from what is expected
from the feature:
with "-smp 4":
[...]
# modprobe intel_rapl_msr.ko
intel_rapl_common: Found RAPL domain package
intel_rapl_common: found 1 domains on package-0
intel_rapl_common: Core CPU package-0:package energy=61035pJ, time=976us, power=125000uW
intel_rapl_common: update package-0 domain package data
#
#
#
# cat /sys/class/powercap/intel-rapl:0/energy_uj
303160
# cat /sys/class/powercap/intel-rapl:0/energy_uj
325621
# cat /sys/class/powercap/intel-rapl:0/energy_uj
325621
# cat /sys/class/powercap/intel-rapl:0/energy_uj
357237
# cat /sys/class/powercap/intel-rapl:0/energy_uj
357237
# cat /sys/class/powercap/intel-rapl:0/energy_uj
388792
[...]
Tested with several SMP architecture.
(i.e -smp 4 / -smp 8,sockets=2,dies=1 / -smp 8,sockets=4,dies=2 )
Anthony Harivel (1):
target/i386: Fix arguments for vmsr_read_thread_stat()
target/i386/kvm/kvm.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
--
2.45.2