Skip to contentSkip to conversation

xen: Send the debug VIRQ to guests after the rest of the domain dump is done.

PATCH New Tim Deegan 1 participant 1 message Jul 15, 2010

lore
Share & tools
lore

Tim Deegan

author
#0 lore raw

PATCH 1/1 xen: Send the debug VIRQ to guests after the rest of the domain dump is done.

Send the debug VIRQ to guests after the rest of the domain dump is done. This stops all the 'q' debug-key output getting interleaved with the debug-virq output from a pv-ops dom0 kernel.

xen/common/keyhandler.c +8 -1
diff -r 41c51b6cf5bc xen/common/keyhandler.c
@@ -283,7 +283,14 @@
             arch_dump_vcpu_info(v);
             periodic_timer_print(tmpstr, sizeof(tmpstr), v->periodic_period);
             printk("    %s\n", tmpstr);
-            printk("    Notifying guest (virq %d, port %d, stat %d/%d/%d)\n",
+        }
+    }
+
+    for_each_domain ( d )
+    {
+        for_each_vcpu ( d, v ) {
+            printk("Notifying guest %d:%d (virq %d, port %d, stat %d/%d/%d)\n",
+                   d->domain_id, v->vcpu_id,
                    VIRQ_DEBUG, v->virq_to_evtchn[VIRQ_DEBUG],
                    test_bit(v->virq_to_evtchn[VIRQ_DEBUG], 
                             &shared_info(d, evtchn_pending)),