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

Olaf Hering posted 1 patch 3 years, 3 months ago
Test gitlab-ci failed
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20210105083048.19568-1-olaf@aepfle.de
tools/include/xenguest.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH v1] tools: handle more than 16T in precopy_stats
Posted by Olaf Hering 3 years, 3 months ago
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(-)

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 */
 };
 

Re: [PATCH v1] tools: handle more than 16T in precopy_stats
Posted by Wei Liu 3 years, 3 months ago
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 */
>  };
>  

Re: [PATCH v1] tools: handle more than 16T in precopy_stats
Posted by Wei Liu 3 years, 3 months ago
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 */
> >  };
> >