Skip to contentSkip to conversation

tools: handle more than 16T in precopy_stats

PATCH In review Olaf Hering 2 participants 3 messages Jan 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: handle more than 16T in precopy_stats

total_written tracks the number of transferred dirty pages.

---
 tools/include/xenguest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/include/xenguest.h +1 -1
index a9984dbea5..775cf34c04 100644
@@ -438,7 +438,7 @@ struct xenevtchn_handle;
 struct precopy_stats
 {
     unsigned int iteration;
-    unsigned int total_written;
+    unsigned long total_written;
     long dirty_count; /* -1 if unknown */
 };
 
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Olaf Hering

total_written tracks the number of transferred dirty pages.

Quoted 17 lines
---
 tools/include/xenguest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/include/xenguest.h +1 -1
index a9984dbea5..775cf34c04 100644
@@ -438,7 +438,7 @@ struct xenevtchn_handle;
 struct precopy_stats
 {
     unsigned int iteration;
-    unsigned int total_written;
+    unsigned long total_written;
     long dirty_count; /* -1 if unknown */
 };
 
#2 lore raw
Quoted 6 lines · Wei Liu
Quoted 3 lines · Olaf Hering

total_written tracks the number of transferred dirty pages.

I've added libxenguest in the commit subject line to be more specific.

Quoted 18 lines
Quoted 18 lines
---
 tools/include/xenguest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/include/xenguest.h +1 -1
index a9984dbea5..775cf34c04 100644
@@ -438,7 +438,7 @@ struct xenevtchn_handle;
 struct precopy_stats
 {
     unsigned int iteration;
-    unsigned int total_written;
+    unsigned long total_written;
     long dirty_count; /* -1 if unknown */
 };