diff options
author | Cédric Le Goater | 2021-01-26 18:10:53 +0100 |
---|---|---|
committer | David Gibson | 2021-02-10 00:43:50 +0100 |
commit | 2cfc9f1a968f8f832c7bf23f2491b058bdde028b (patch) | |
tree | 1e4ad06f7232b237ba0c12238dff8f21407b9439 /hw/pci-host/pnv_phb4.c | |
parent | target/ppc: Remove unused MMU definitions (diff) | |
download | qemu-2cfc9f1a968f8f832c7bf23f2491b058bdde028b.tar.gz qemu-2cfc9f1a968f8f832c7bf23f2491b058bdde028b.tar.xz qemu-2cfc9f1a968f8f832c7bf23f2491b058bdde028b.zip |
ppc/pnv: Add trace events for PCI event notification
On POWER9 systems, PHB controllers signal the XIVE interrupt controller
of a source interrupt notification using a store on a MMIO region. Add
traces for such events.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210126171059.307867-2-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/pci-host/pnv_phb4.c')
-rw-r--r-- | hw/pci-host/pnv_phb4.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/pci-host/pnv_phb4.c b/hw/pci-host/pnv_phb4.c index 6328e985f8..54f57c660a 100644 --- a/hw/pci-host/pnv_phb4.c +++ b/hw/pci-host/pnv_phb4.c @@ -22,6 +22,7 @@ #include "hw/irq.h" #include "hw/qdev-properties.h" #include "qom/object.h" +#include "trace.h" #define phb_error(phb, fmt, ...) \ qemu_log_mask(LOG_GUEST_ERROR, "phb4[%d:%d]: " fmt "\n", \ @@ -1257,6 +1258,8 @@ static void pnv_phb4_xive_notify(XiveNotifier *xf, uint32_t srcno) uint64_t data = XIVE_TRIGGER_PQ | offset | srcno; MemTxResult result; + trace_pnv_phb4_xive_notify(notif_port, data); + address_space_stq_be(&address_space_memory, notif_port, data, MEMTXATTRS_UNSPECIFIED, &result); if (result != MEMTX_OK) { |