summaryrefslogtreecommitdiffstats
path: root/hw/block
diff options
context:
space:
mode:
authorGollu Appalanaidu2021-02-22 19:38:46 +0100
committerKlaus Jensen2021-03-09 11:00:57 +0100
commit57331f9355431d86636580edf4847e299c4b3ad7 (patch)
tree3b9271e9a2cf51b00e89bcb5f3d6082d0bbff9ac /hw/block
parenthw/block/nvme: fix potential compilation error (diff)
downloadqemu-57331f9355431d86636580edf4847e299c4b3ad7.tar.gz
qemu-57331f9355431d86636580edf4847e299c4b3ad7.tar.xz
qemu-57331f9355431d86636580edf4847e299c4b3ad7.zip
hw/block/nvme: add trace event for zone read check
Add a trace event for the offline zone condition when checking zone read. Signed-off-by: Gollu Appalanaidu <anaidu.gollu@samsung.com> [k.jensen: split commit] Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
Diffstat (limited to 'hw/block')
-rw-r--r--hw/block/nvme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/block/nvme.c b/hw/block/nvme.c
index de3d0ca51b..b81c4c3705 100644
--- a/hw/block/nvme.c
+++ b/hw/block/nvme.c
@@ -1255,6 +1255,7 @@ static uint16_t nvme_check_zone_state_for_read(NvmeZone *zone)
case NVME_ZONE_STATE_READ_ONLY:
return NVME_SUCCESS;
case NVME_ZONE_STATE_OFFLINE:
+ trace_pci_nvme_err_zone_is_offline(zone->d.zslba);
return NVME_ZONE_OFFLINE;
default:
assert(false);