Re: [Xen-devel] [PATCH 2/2] tools: utility to dump guest grant table info

2017-06-30 Thread Konrad Rzeszutek Wilk
On Fri, Jun 30, 2017 at 03:21:31PM +0800, Dongli Zhang wrote: > As both xen-netfront and xen-blkfront support multi-queue, they would > consume a lot of grant table references when there are many paravirtual > devices and vcpus assigned to guest. Guest domU might panic or hang due to > grant alloca

Re: [Xen-devel] [PATCH 2/2] tools: utility to dump guest grant table info

2017-06-30 Thread Wei Liu
On Fri, Jun 30, 2017 at 03:21:31PM +0800, Dongli Zhang wrote: > + > +int main(int argc, char *argv[]) > +{ > +xc_interface *xch; > +int domid, rc, c; > +struct gnttab_query_size query; > + > +while ( (c = getopt(argc, argv, "h")) != -1 ) > +{ > +switch ( c ) > +{

[Xen-devel] [PATCH 2/2] tools: utility to dump guest grant table info

2017-06-30 Thread Dongli Zhang
As both xen-netfront and xen-blkfront support multi-queue, they would consume a lot of grant table references when there are many paravirtual devices and vcpus assigned to guest. Guest domU might panic or hang due to grant allocation failure when nr_grant_frames in guest has reached its max value.