[xen master] gnttab: silence table expansion message

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] gnttab: silence table expansion message

patchbot
commit 1f64f6f7eeb7e8e3252063bc73086600528ec723
Author:     Jan Beulich <[hidden email]>
AuthorDate: Thu Jun 28 12:49:32 2018 +0200
Commit:     Jan Beulich <[hidden email]>
CommitDate: Thu Jun 28 12:49:32 2018 +0200

    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 <[hidden email]>
    Acked-by: Wei Liu <[hidden email]>
---
 xen/common/grant_table.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

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);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog