> -----Original Message----- > From: Jan Beulich <jbeul...@suse.com> > Sent: 29 April 2020 16:04 > To: Paul Durrant <p...@xen.org> > Cc: xen-devel@lists.xenproject.org; Paul Durrant <pdurr...@amazon.com>; Ian > Jackson > <ian.jack...@eu.citrix.com>; Wei Liu <w...@xen.org> > Subject: Re: [PATCH v2 3/5] tools/misc: add xen-domctx to present domain > context > > On 07.04.2020 19:38, Paul Durrant wrote: > > +int main(int argc, char **argv) > > +{ > > + uint32_t domid; > > + unsigned int entry; > > + xc_interface *xch; > > + int rc; > > + > > + if ( argc != 2 || !argv[1] || (rc = atoi(argv[1])) < 0 ) > > + { > > + fprintf(stderr, "usage: %s <domid>\n", argv[0]); > > + exit(1); > > + } > > Perhaps also allow dumping just a single (vCPU or other) ID? >
Yes, I can add optional type and instance arguments. Paul > Jan