[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] xen/common: add keyhandler to show Xen command line


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: dmukhin@xxxxxxxx
  • Date: Wed, 12 Aug 2026 20:19:36 -0700
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 148.163.138.245) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=ford.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=ford.com; dkim=pass (signature was verified) header.d=saarlouis.ford.com; dkim=pass (signature was verified) header.d=ford.com; arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LMqnLhC3fHEBZQ89VJQmiBEAGMJpD8dQA2/BoKcwN7U=; b=og3CzP6Ih4nE0AGrLaYigj+5lTv/ilKtfU1uZz5XM8zHL2Bt5pGrTJY6MSMOvad3sOXF1KknlQSBNLMJNjsLPTnpi1DbGXr+M23yHLuvBxSdqhAGcpkcRjCIliKM6mLOWlPa7aP+MgU8PNBlhLkBHLViRfuUfyufEfzvkF5vgytvY8CD6ts+C79a4vMeJ2ijKmCN9mPFeKjTS8+/eRvdY5P4yT37DgfDyBY+0JZWe6B0zjPnYtHW+pmpZW8SsNzOynrTSQKVsKg6DAWunlepa/UGtFeQwWWZVHNHq/jvpC0ycp4yr2hlNKvDYfxG8doruOLMXKm0EYQlaJZ6Fatowg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=EnG7zXX5FKde4ZvjaC9AGTZuG12DRfovBFfOiHw2QM6ajBNGMmhaDWZlvsQRx5AUVa07bfZ/4UexFYdWRpFQAj0HuTHhbeKnbtaXxjn/nY+q9pI2XObgPAUyFbQ3pE/9sM6l01QlUyq7GXt/RM8kuQqt+6TLS9DLx7oI7V5llcxcVUy8bHE4O9H3F/Cfmf3K5v+zvnwGkeMyzxEHmckJwGgIKi3/nam2HROQRreclJfzj0pNjro2wFxhcZZEoXlaV1ssmmhYwVYecXcf604GqYVqtIwuulz1dO6BBXd8qJ4grspcLd49RHbdliVEipgaUKjvAjICDZqu8SuOp7U7yg==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=ppford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=fail header.s=selector2-azureford-onmicrosoft-com header.d=azureford.onmicrosoft.com header.i="@azureford.onmicrosoft.com"; dkim=pass header.s=ppserprodsaar header.d=saarlouis.ford.com header.i="@saarlouis.ford.com" header.h="Cc:Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"; dkim=pass header.s=ppfserpocford header.d=ford.com header.i="@ford.com" header.h="Cc:Content-Transfer-Encoding:Content-Type:Date:From:In-Reply-To:Message-ID:MIME-Version:References:Subject:To"
  • Cc: Roger Pau Monné <roger@xxxxxxxxxxxxxx>, dmukhin@xxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, andrew.cooper3@xxxxxxxxxx, anthony.perard@xxxxxxxxxx, julien@xxxxxxx, michal.orzel@xxxxxxx, sstabellini@xxxxxxxxxx
  • Delivery-date: Thu, 13 Aug 2026 03:19:54 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Pser-m365-app: SER-APP

On Wed, Aug 12, 2026 at 10:19:55AM +0200, Jan Beulich wrote:
> On 12.08.2026 10:03, Roger Pau Monné wrote:
> > On Wed, Aug 12, 2026 at 09:28:46AM +0200, Jan Beulich wrote:
> >> On 11.08.2026 22:56, dmukhin@xxxxxxxx wrote:
> >>> On Tue, Aug 11, 2026 at 10:05:17AM +0200, Roger Pau Monné wrote:
> >>>> On Mon, Aug 10, 2026 at 04:04:01PM -0700, dmukhin@xxxxxxxx wrote:
> >>>>> +static int __init cf_check misc_init(void)
> >>>>> +{
> >>>>> +    register_keyhandler('X', show_hypervisor_info,
> >>>>> +                        "show hypervisor information", 0);
> >>>>
> >>>> "show hypervisor information" seems too generic to me, almost all
> >>>> debug keys could be defined by this sentence TBH.  I think this needs
> >>>> to be more specific, but I'm not sure what's the plan regarding this
> >>>> key.  Is there an intention to print more stuff here, or just the
> >>>> command line?  Knowing the full set of information to be printed might
> >>>> help come up with a better name.
> >>>
> >>> I will update to "show_cmdline" since I originally planed to expose Xen
> >>> command line only so it is possible to better debug a system when dom0
> >>> becomes almost unresponsive.
> >>
> >> Yet as indicated already on v1 (I think) - a precious debug key character
> >> for just the command line seems rather wasteful to me. If it's only the
> >> command line, and if that _really_ needs exposing via a debug key (i.e.
> >> if there are reasonable scenarios where "xl info" cannot be used), perhaps
> >> attach it to e.g. the 'h' key output?
> > 
> > I was going to say that we should not overload the 'h' key with
> > printing a possibly long string, but I see we already print a bunch of
> > information there, like the buildid and the compiler banner.
> > 
> > One option would be to introduce a new debug character, and move the
> > printing of the buildid and the banner to that key, together with the
> > command line.  Then 'h' output will be cleaner and just print the list
> > of installed handlers.  That would give the new key more content, and
> > help cleanup the output from the 'h' debug key at the same time.
> 
> Hmm, yes, that's definitely an option. May I then further suggest to use
> '?' as the key for this? (Or am I overlooking that key already being in
> use somewhere?)

I did not find '?' being used, will update the key mapping.

Thanks for the suggestion!

> 
> Jan
> 



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.