[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] process softirqs while dumping domains
commit 9cf71226edabd8b9bc81a5eb57823dacbe8b4bd8 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Fri Oct 31 11:28:36 2014 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Fri Oct 31 11:28:36 2014 +0100 process softirqs while dumping domains Process softirqs once per domain, and once every 64 vcpus in a guest to avoid being hit by the NMI watchdog. Discovered against a VM which had accidentally been assigned 8192 vcpus. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> --- xen/common/keyhandler.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/xen/common/keyhandler.c b/xen/common/keyhandler.c index 809378c..a917726 100644 --- a/xen/common/keyhandler.c +++ b/xen/common/keyhandler.c @@ -253,6 +253,9 @@ static void dump_domains(unsigned char key) for_each_domain ( d ) { unsigned int i; + + process_pending_softirqs(); + printk("General information for domain %u:\n", d->domain_id); cpuset_print(tmpstr, sizeof(tmpstr), d->domain_dirty_cpumask); printk(" refcnt=%d dying=%d pause_count=%d\n", @@ -287,6 +290,9 @@ static void dump_domains(unsigned char key) d->domain_id); for_each_vcpu ( d, v ) { + if ( !(v->vcpu_id & 0x3f) ) + process_pending_softirqs(); + printk(" VCPU%d: CPU%d [has=%c] poll=%d " "upcall_pend = %02x, upcall_mask = %02x ", v->vcpu_id, v->processor, @@ -311,6 +317,9 @@ static void dump_domains(unsigned char key) { for_each_vcpu ( d, v ) { + if ( !(v->vcpu_id & 0x3f) ) + process_pending_softirqs(); + printk("Notifying guest %d:%d (virq %d, port %d)\n", d->domain_id, v->vcpu_id, VIRQ_DEBUG, v->virq_to_evtchn[VIRQ_DEBUG]); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog |
Lists.xenproject.org is hosted with RackSpace, monitoring our |