]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
WORKAROUND: dump every domain with key '0'
authorJulien Grall <julien.grall@linaro.org>
Tue, 13 May 2014 16:46:03 +0000 (17:46 +0100)
committerJulien Grall <julien.grall@citrix.com>
Thu, 17 Dec 2015 15:54:47 +0000 (15:54 +0000)
xen/common/keyhandler.c

index 4ff90f6694e5fce1349a15945dca84addfd15c21..c7c041b64487abf552182450be411fc457753bf4 100644 (file)
@@ -224,13 +224,16 @@ static void dump_hwdom_action(unsigned long arg)
 static void dump_hwdom_registers(unsigned char key)
 {
     struct vcpu *v;
+    struct domain *d;
 
     if ( hardware_domain == NULL )
         return;
 
     printk("'%c' pressed -> dumping Dom0's registers\n", key);
 
-    for_each_vcpu ( hardware_domain, v )
+    for_each_domain ( d )
+    {
+    for_each_vcpu ( d, v )
     {
         if ( alt_key_handling && softirq_pending(smp_processor_id()) )
         {
@@ -242,6 +245,7 @@ static void dump_hwdom_registers(unsigned char key)
         }
         vcpu_show_execution_state(v);
     }
+    }
 }
 
 static void reboot_machine(unsigned char key, struct cpu_user_regs *regs)