From ac9d36a42a5e149e117948cb04c330f549acabd2 Mon Sep 17 00:00:00 2001 From: Ryan Neph Date: Tue, 28 Mar 2023 15:40:09 -0700 Subject: [PATCH] venus: re-use VN_DEBUG_NO_ABORT to disable ring monitoring abort() Useful to keep the hung guest process alive while debugging the renderer process. Signed-off-by: Ryan Neph Part-of: --- src/virtio/vulkan/vn_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtio/vulkan/vn_common.c b/src/virtio/vulkan/vn_common.c index 73042de9274..da74c58da9e 100644 --- a/src/virtio/vulkan/vn_common.c +++ b/src/virtio/vulkan/vn_common.c @@ -217,7 +217,7 @@ vn_relax(struct vn_relax_state *state) vn_ring_unset_status_bits(ring, VK_RING_STATUS_ALIVE_BIT_MESA); } - if (!ring->monitor.alive) { + if (!ring->monitor.alive && !VN_DEBUG(NO_ABORT)) { vn_log(NULL, "aborting on expired ring alive status at iter %d", *iter); abort();