From: Jan Beulich Date: Thu, 28 Jun 2018 10:49:32 +0000 (+0200) Subject: gnttab: silence table expansion message X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3719 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f64f6f7eeb7e8e3252063bc73086600528ec723;p=xen.git gnttab: silence table expansion message This currently shows up for basically every domain, when originally it was logged only when going beyond the default table size. Restore that behavior. Signed-off-by: Jan Beulich Acked-by: Wei Liu --- diff --git a/xen/common/grant_table.c b/xen/common/grant_table.c index c757b7f6f5..51e1f5ca4c 100644 --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -1764,9 +1764,10 @@ gnttab_grow_table(struct domain *d, unsigned int req_nr_frames) req_nr_frames = INITIAL_NR_GRANT_FRAMES; ASSERT(req_nr_frames <= gt->max_grant_frames); - gdprintk(XENLOG_INFO, - "Expanding d%d grant table from %u to %u frames\n", - d->domain_id, nr_grant_frames(gt), req_nr_frames); + if ( req_nr_frames > INITIAL_NR_GRANT_FRAMES ) + gdprintk(XENLOG_INFO, + "Expanding d%d grant table from %u to %u frames\n", + d->domain_id, nr_grant_frames(gt), req_nr_frames); /* Active */ for ( i = nr_active_grant_frames(gt);