tools/libxenguest: handle more than 16T in precopy_stats
authorOlaf Hering <olaf@aepfle.de>
Tue, 5 Jan 2021 08:30:48 +0000 (09:30 +0100)
committerWei Liu <wl@xen.org>
Tue, 5 Jan 2021 12:33:55 +0000 (12:33 +0000)
total_written tracks the number of transferred dirty pages.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Wei Liu <wl@xen.org>
tools/include/xenguest.h

index a9984dbea56d4a05c1d0443cf2ab14cb738f7e5f..775cf34c04113b3c2bbe3d44e74920ec87dac1c2 100644 (file)
@@ -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 */
 };