gnttab: silence table expansion message
authorJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 10:49:32 +0000 (12:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Jun 2018 10:49:32 +0000 (12:49 +0200)
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 <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/grant_table.c

index c757b7f6f520e352e6e65ef3aed8d254eafb7338..51e1f5ca4cfd0cc15200d6df743d2b410ac2fe14 100644 (file)
@@ -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);