From: Wei Liu Subject: Re: [RFC PATCH V4 16/18] Implement 3-level event channel routines Date: Tue, 5 Mar 2013 16:07:58 +0000 Message-ID: <1362499678.4748.40.camel@zion.uk.xensource.com> References: <1362486640-14707-1-git-send-email-wei.liu2@citrix.com> <1362486640-14707-17-git-send-email-wei.liu2@citrix.com> <51360F2F02000078000C32B9@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <51360F2F02000078000C32B9@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "Keir (Xen.org)" , "xen-devel@lists.xen.org" , wei.liu2@citrix.com, David Vrabel , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Tue, 2013-03-05 at 14:28 +0000, Jan Beulich wrote: > >>> On 05.03.13 at 13:30, Wei Liu wrote: > > @@ -1546,8 +1635,11 @@ static void domain_dump_evtchn_info(struct domain *d) > > bitmap_scnlistprintf(keyhandler_scratch, sizeof(keyhandler_scratch), > > d->poll_mask, d->max_vcpus); > > printk("Event channel information for domain %d:\n" > > + "Using %s event channel ABI\n" > > "Polling vCPUs: {%s}\n" > > - " port [p/m]\n", d->domain_id, keyhandler_scratch); > > + " port [p/m]\n", > > + d->domain_id, evtchn_abi_str(d->evtchn_extended), > > + keyhandler_scratch); > > > > spin_lock(&d->event_lock); > > > > Afaics there's no guarding being added in the whole series against > the dumping taking overly long. Doing this for 4,000 ports is > already risky, but doing this for up to 256,000 ports is clearly > too much. So without adjustment the 'e' debug key becomes > unusable particularly on large systems (where the eventual need > for it may be highest, as having the highest chances of running > into problems). > One solution I can think of is to print out information on per-bucket basis, that's about 512 ports processed each time. Does this look reasonable? Wei. > Jan >