diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-07-21 09:08:45 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-07-21 09:08:45 +0100 |
commit | 707a7f9424084fc98b94d76dd16b4cd63b1fe41c (patch) | |
tree | 63ca58e186ea99619b6fd0322136858066d5cb50 | |
parent | 2ad6087ede4f7705e26678a9db8c61634c1c2ad9 (diff) | |
download | xen-707a7f9424084fc98b94d76dd16b4cd63b1fe41c.tar.gz xen-707a7f9424084fc98b94d76dd16b4cd63b1fe41c.tar.bz2 xen-707a7f9424084fc98b94d76dd16b4cd63b1fe41c.zip |
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.
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen-unstable changeset: 21809:1f7c2418e58c
xen-unstable date: Fri Jul 16 13:51:27 2010 +0100
-rw-r--r-- | xen/common/keyhandler.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index e3e64a1953..2419c74d01 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -203,7 +203,8 @@ static void dump_domains(unsigned char key) printk("VCPU information and callbacks for domain %u:\n", d->domain_id); - for_each_vcpu ( d, v ) { + for_each_vcpu ( d, v ) + { printk(" VCPU%d: CPU%d [has=%c] flags=%lx poll=%d " "upcall_pend = %02x, upcall_mask = %02x ", v->vcpu_id, v->processor, @@ -218,7 +219,15 @@ static void dump_domains(unsigned char key) 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)), |