diff mbox series

[v1] tools: handle more than 16T in precopy_stats

Message ID 20210105083048.19568-1-olaf@aepfle.de (mailing list archive)
State New, archived
Headers show
Series [v1] tools: handle more than 16T in precopy_stats | expand

Commit Message

Olaf Hering Jan. 5, 2021, 8:30 a.m. UTC
total_written tracks the number of transferred dirty pages.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 tools/include/xenguest.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wei Liu Jan. 5, 2021, 11:54 a.m. UTC | #1
On Tue, Jan 05, 2021 at 09:30:48AM +0100, Olaf Hering wrote:
> 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 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/include/xenguest.h b/tools/include/xenguest.h
> index a9984dbea5..775cf34c04 100644
> --- a/tools/include/xenguest.h
> +++ b/tools/include/xenguest.h
> @@ -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 */
>  };
>
Wei Liu Jan. 5, 2021, 11:56 a.m. UTC | #2
On Tue, Jan 05, 2021 at 11:54:11AM +0000, Wei Liu wrote:
> On Tue, Jan 05, 2021 at 09:30:48AM +0100, Olaf Hering wrote:
> > total_written tracks the number of transferred dirty pages.
> > 
> > Signed-off-by: Olaf Hering <olaf@aepfle.de>
> 
> Acked-by: Wei Liu <wl@xen.org>

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

> 
> > ---
> >  tools/include/xenguest.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/tools/include/xenguest.h b/tools/include/xenguest.h
> > index a9984dbea5..775cf34c04 100644
> > --- a/tools/include/xenguest.h
> > +++ b/tools/include/xenguest.h
> > @@ -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 */
> >  };
> >
diff mbox series

Patch

diff --git a/tools/include/xenguest.h b/tools/include/xenguest.h
index a9984dbea5..775cf34c04 100644
--- a/tools/include/xenguest.h
+++ b/tools/include/xenguest.h
@@ -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 */
 };