[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 36/40] vdpa: add vhost_vdpa_get_vring_base trace for svq mode
From: |
Si-Wei Liu |
Subject: |
[PATCH 36/40] vdpa: add vhost_vdpa_get_vring_base trace for svq mode |
Date: |
Thu, 7 Dec 2023 09:39:49 -0800 |
For better debuggability and observability.
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
---
hw/virtio/trace-events | 2 +-
hw/virtio/vhost-vdpa.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events
index 196f32f..a8d3321 100644
--- a/hw/virtio/trace-events
+++ b/hw/virtio/trace-events
@@ -58,7 +58,7 @@ vhost_vdpa_set_log_base(void *dev, uint64_t base, unsigned
long long size, int r
vhost_vdpa_set_vring_addr(void *dev, unsigned int index, unsigned int flags,
uint64_t desc_user_addr, uint64_t used_user_addr, uint64_t avail_user_addr,
uint64_t log_guest_addr) "dev: %p index: %u flags: 0x%x desc_user_addr:
0x%"PRIx64" used_user_addr: 0x%"PRIx64" avail_user_addr: 0x%"PRIx64"
log_guest_addr: 0x%"PRIx64
vhost_vdpa_set_vring_num(void *dev, unsigned int index, unsigned int num)
"dev: %p index: %u num: %u"
vhost_vdpa_set_vring_base(void *dev, unsigned int index, unsigned int num)
"dev: %p index: %u num: %u"
-vhost_vdpa_get_vring_base(void *dev, unsigned int index, unsigned int num)
"dev: %p index: %u num: %u"
+vhost_vdpa_get_vring_base(void *dev, unsigned int index, unsigned int num,
bool svq) "dev: %p index: %u num: %u svq: %d"
vhost_vdpa_set_vring_kick(void *dev, unsigned int index, int fd) "dev: %p
index: %u fd: %d"
vhost_vdpa_set_vring_call(void *dev, unsigned int index, int fd) "dev: %p
index: %u fd: %d"
vhost_vdpa_get_features(void *dev, uint64_t features) "dev: %p features:
0x%"PRIx64
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index 8ba390d..d66936f 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -1607,6 +1607,7 @@ static int vhost_vdpa_get_vring_base(struct vhost_dev
*dev,
if (v->shadow_vqs_enabled) {
ring->num = virtio_queue_get_last_avail_idx(dev->vdev, ring->index);
+ trace_vhost_vdpa_get_vring_base(dev, ring->index, ring->num, true);
return 0;
}
@@ -1619,7 +1620,7 @@ static int vhost_vdpa_get_vring_base(struct vhost_dev
*dev,
}
ret = vhost_vdpa_call(dev, VHOST_GET_VRING_BASE, ring);
- trace_vhost_vdpa_get_vring_base(dev, ring->index, ring->num);
+ trace_vhost_vdpa_get_vring_base(dev, ring->index, ring->num, false);
return ret;
}
--
1.8.3.1
- [PATCH 30/40] vdpa: batch map/unmap op per svq pair basis, (continued)
- [PATCH 30/40] vdpa: batch map/unmap op per svq pair basis, Si-Wei Liu, 2023/12/07
- [PATCH 29/40] vdpa: expose API vhost_vdpa_dma_batch_once, Si-Wei Liu, 2023/12/07
- [PATCH 31/40] vdpa: batch map and unmap around cvq svq start/stop, Si-Wei Liu, 2023/12/07
- [PATCH 32/40] vdpa: factor out vhost_vdpa_net_get_nc_vdpa, Si-Wei Liu, 2023/12/07
- [PATCH 34/40] vdpa: fix network breakage after cancelling migration, Si-Wei Liu, 2023/12/07
- [PATCH 35/40] vdpa: add vhost_vdpa_set_address_space_id trace, Si-Wei Liu, 2023/12/07
- [PATCH 33/40] vdpa: batch multiple dma_unmap to a single call for vm stop, Si-Wei Liu, 2023/12/07
- [PATCH 36/40] vdpa: add vhost_vdpa_get_vring_base trace for svq mode,
Si-Wei Liu <=
- [PATCH 37/40] vdpa: add vhost_vdpa_set_dev_vring_base trace for svq mode, Si-Wei Liu, 2023/12/07
- [PATCH 38/40] vdpa: add trace events for eval_flush, Si-Wei Liu, 2023/12/07
- [PATCH 40/40] vdpa: add trace event for vhost_vdpa_net_load_mq, Si-Wei Liu, 2023/12/07
- [PATCH 39/40] vdpa: add trace events for vhost_vdpa_net_load_cmd, Si-Wei Liu, 2023/12/07
- Re: [PATCH 00/40] vdpa-net: improve migration downtime through descriptor ASID and persistent IOTLB, Eugenio Perez Martin, 2023/12/11