[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] gnttab: silence table expansion message



commit 1f64f6f7eeb7e8e3252063bc73086600528ec723
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jun 28 12:49:32 2018 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
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 <jbeulich@xxxxxxxx>
    Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 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#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.