From ba7a2b0757dc9a22e893ebe4c71c07878ec0842d Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Tue, 29 Sep 2026 13:17:33 -0400 Subject: guest-diag: bound pushbuffer fallback scan (400 candidates / 30s) --- tools/guest-diag/semfix_watch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/guest-diag/semfix_watch.py b/tools/guest-diag/semfix_watch.py index 93302cc..0de5cad 100644 --- a/tools/guest-diag/semfix_watch.py +++ b/tools/guest-diag/semfix_watch.py @@ -157,7 +157,11 @@ def resolve_pushbuffer(q, sem): if gpa: return gpu_vas, cpu, gpa # Chain 2: value is the pushbuffer itself; +8 = rm_mem. - for V in cands: + # Two QMP reads per candidate, so cap the scan (bounded in time). + deadline = time.time() + 30 + for V in cands[:400]: + if time.time() > deadline: + break mem = q.read64(V + 8) if not mem or not is_kern(mem[0]): continue -- cgit v1.2.3