From 57331f9355431d86636580edf4847e299c4b3ad7 Mon Sep 17 00:00:00 2001 From: Gollu Appalanaidu Date: Mon, 22 Feb 2021 19:38:46 +0100 Subject: 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 [k.jensen: split commit] Signed-off-by: Klaus Jensen --- hw/block/nvme.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw') 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); -- cgit v1.2.3