qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] spapr/xive: Fix kvm_xive_source_reset trace event


From: Cédric Le Goater
Subject: Re: [PATCH v2] spapr/xive: Fix kvm_xive_source_reset trace event
Date: Wed, 22 Sep 2021 09:11:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0

On 9/22/21 09:06, Greg Kurz wrote:
On Wed, 22 Sep 2021 09:02:05 +0200
Cédric Le Goater <clg@kaod.org> wrote:

The trace event was placed in the wrong routine. Move it under
kvmppc_xive_source_reset_one().

Fixes: 4e960974d4ee ("xive: Add trace events")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---

Reviewed-by: Greg Kurz <groug@kaod.org>

Thanks,

C.


  hw/intc/spapr_xive_kvm.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/intc/spapr_xive_kvm.c b/hw/intc/spapr_xive_kvm.c
index beb904d5bdee..bf43ffb54018 100644
--- a/hw/intc/spapr_xive_kvm.c
+++ b/hw/intc/spapr_xive_kvm.c
@@ -236,6 +236,8 @@ int kvmppc_xive_source_reset_one(XiveSource *xsrc, int 
srcno, Error **errp)
      SpaprXive *xive = SPAPR_XIVE(xsrc->xive);
      uint64_t state = 0;
+ trace_kvm_xive_source_reset(srcno);
+
      assert(xive->fd != -1);
if (xive_source_irq_is_lsi(xsrc, srcno)) {
@@ -328,8 +330,6 @@ uint64_t kvmppc_xive_esb_rw(XiveSource *xsrc, int srcno, 
uint32_t offset,
          return xive_esb_rw(xsrc, srcno, offset, data, 1);
      }
- trace_kvm_xive_source_reset(srcno);
-
      /*
       * Special Load EOI handling for LSI sources. Q bit is never set
       * and the interrupt should be re-triggered if the level is still





reply via email to

[Prev in Thread] Current Thread [Next in Thread]