venus: re-use VN_DEBUG_NO_ABORT to disable ring monitoring abort()
authorRyan Neph <ryanneph@google.com>
Tue, 28 Mar 2023 22:40:09 +0000 (15:40 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 29 Mar 2023 15:48:38 +0000 (15:48 +0000)
Useful to keep the hung guest process alive while debugging the renderer
process.

Signed-off-by: Ryan Neph <ryanneph@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22176>

src/virtio/vulkan/vn_common.c

index 73042de..da74c58 100644 (file)
@@ -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();