qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PULL 0/1] target/i386 patch for QEMU 9.1
@ 2024-08-14 16:44 Paolo Bonzini
  2024-08-14 16:44 ` [PULL 1/1] target/i386: Fix arguments for vmsr_read_thread_stat() Paolo Bonzini
  2024-08-15  0:58 ` [PULL 0/1] target/i386 patch for QEMU 9.1 Richard Henderson
  0 siblings, 2 replies; 3+ messages in thread
From: Paolo Bonzini @ 2024-08-14 16:44 UTC (permalink / raw)
  To: qemu-devel

The following changes since commit 3ef11c991e501768f2fa646e8438f075be1cd2f5:

  po: update Italian translation (2024-08-13 19:01:42 +0200)

are available in the Git repository at:

  https://gitlab.com/bonzini/qemu.git tags/for-upstream

for you to fetch changes up to a6e65975c3fac1b2f067fef8eeed92584d773f06:

  target/i386: Fix arguments for vmsr_read_thread_stat() (2024-08-14 18:42:19 +0200)

Sorry, this one fell through the cracks.

----------------------------------------------------------------
* fix RAPL computations

----------------------------------------------------------------
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.46.0



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

* [PULL 1/1] target/i386: Fix arguments for vmsr_read_thread_stat()
  2024-08-14 16:44 [PULL 0/1] target/i386 patch for QEMU 9.1 Paolo Bonzini
@ 2024-08-14 16:44 ` Paolo Bonzini
  2024-08-15  0:58 ` [PULL 0/1] target/i386 patch for QEMU 9.1 Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Paolo Bonzini @ 2024-08-14 16:44 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony Harivel

From: Anthony Harivel <aharivel@redhat.com>

Snapshot of the stat utime and stime for each thread, taken before and
after the pause, must be stored in separate locations

Signed-off-by: Anthony Harivel <aharivel@redhat.com>
Link: https://lore.kernel.org/r/20240807124320.1741124-2-aharivel@redhat.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 target/i386/kvm/kvm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 31f149c9902..2fa88ef1e37 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -2712,8 +2712,8 @@ static void *kvm_msr_energy_thread(void *data)
             thd_stat[i].thread_id = thread_ids[i];
             vmsr_read_thread_stat(vmsr->pid,
                                   thd_stat[i].thread_id,
-                                  thd_stat[i].utime,
-                                  thd_stat[i].stime,
+                                  &thd_stat[i].utime[0],
+                                  &thd_stat[i].stime[0],
                                   &thd_stat[i].cpu_id);
             thd_stat[i].pkg_id =
                 vmsr_get_physical_package_id(thd_stat[i].cpu_id);
@@ -2777,8 +2777,8 @@ static void *kvm_msr_energy_thread(void *data)
         for (int i = 0; i < num_threads; i++) {
             vmsr_read_thread_stat(vmsr->pid,
                                   thd_stat[i].thread_id,
-                                  thd_stat[i].utime,
-                                  thd_stat[i].stime,
+                                  &thd_stat[i].utime[1],
+                                  &thd_stat[i].stime[1],
                                   &thd_stat[i].cpu_id);
 
             if (vmsr->pid < 0) {
-- 
2.46.0



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

* Re: [PULL 0/1] target/i386 patch for QEMU 9.1
  2024-08-14 16:44 [PULL 0/1] target/i386 patch for QEMU 9.1 Paolo Bonzini
  2024-08-14 16:44 ` [PULL 1/1] target/i386: Fix arguments for vmsr_read_thread_stat() Paolo Bonzini
@ 2024-08-15  0:58 ` Richard Henderson
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2024-08-15  0:58 UTC (permalink / raw)
  To: Paolo Bonzini, qemu-devel

On 8/15/24 02:44, Paolo Bonzini wrote:
> The following changes since commit 3ef11c991e501768f2fa646e8438f075be1cd2f5:
> 
>    po: update Italian translation (2024-08-13 19:01:42 +0200)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/bonzini/qemu.git tags/for-upstream
> 
> for you to fetch changes up to a6e65975c3fac1b2f067fef8eeed92584d773f06:
> 
>    target/i386: Fix arguments for vmsr_read_thread_stat() (2024-08-14 18:42:19 +0200)
> 
> Sorry, this one fell through the cracks.
> 
> ----------------------------------------------------------------
> * fix RAPL computations

Applied, thanks.  Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.

r~


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

end of thread, other threads:[~2024-08-15  0:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-14 16:44 [PULL 0/1] target/i386 patch for QEMU 9.1 Paolo Bonzini
2024-08-14 16:44 ` [PULL 1/1] target/i386: Fix arguments for vmsr_read_thread_stat() Paolo Bonzini
2024-08-15  0:58 ` [PULL 0/1] target/i386 patch for QEMU 9.1 Richard Henderson

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