summaryrefslogtreecommitdiff
path: root/hw/s390x/virtio-ccw.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2016-06-02 10:57:37 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2016-06-14 14:00:05 +0200
commit06409bd91b0a40f30d2e41159627a6eb8f5ac322 (patch)
tree9489b68d2311b42bbd8b9c543854a3e727403646 /hw/s390x/virtio-ccw.c
parent06e686eaab344b1d38125e49abeb31a416428201 (diff)
downloadqemu-06409bd91b0a40f30d2e41159627a6eb8f5ac322.tar.gz
qemu-06409bd91b0a40f30d2e41159627a6eb8f5ac322.tar.bz2
qemu-06409bd91b0a40f30d2e41159627a6eb8f5ac322.zip
virtio-ccw: Provide traces for indicator changes
This allows to trace changes in the summary and queue indicators for the non-irqfd case. For irqfd, kernel traces are needed instead. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.c')
-rw-r--r--hw/s390x/virtio-ccw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index e62a3a344e..2192be8774 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -1091,6 +1091,7 @@ static uint8_t virtio_set_ind_atomic(SubchDev *sch, uint64_t ind_loc,
ind_old = *ind_addr;
ind_new = ind_old | to_be_set;
} while (atomic_cmpxchg(ind_addr, ind_old, ind_new) != ind_old);
+ trace_virtio_ccw_set_ind(ind_loc, ind_old, ind_new);
cpu_physical_memory_unmap(ind_addr, len, 1, len);
return ind_old;