Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Jan Beulich
On 22.04.2020 18:31, Stefano Stabellini wrote: > On Wed, 22 Apr 2020, Jan Beulich wrote: >> On 22.04.2020 15:07, Juergen Gross wrote: >>> --- a/xen/common/grant_table.c >>> +++ b/xen/common/grant_table.c >>> @@ -3626,12 +3626,12 @@ do_grant_table_op( >>> if ( unlikely(!guest_handle_okay(cf

Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Stefano Stabellini
On Wed, 22 Apr 2020, Jan Beulich wrote: > On 22.04.2020 15:07, Juergen Gross wrote: > > --- a/xen/common/grant_table.c > > +++ b/xen/common/grant_table.c > > @@ -3626,12 +3626,12 @@ do_grant_table_op( > > if ( unlikely(!guest_handle_okay(cflush, count)) ) > > goto out; > >

Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Jan Beulich
On 22.04.2020 15:07, Juergen Gross wrote: > --- a/xen/common/grant_table.c > +++ b/xen/common/grant_table.c > @@ -3626,12 +3626,12 @@ do_grant_table_op( > if ( unlikely(!guest_handle_okay(cflush, count)) ) > goto out; > rc = gnttab_cache_flush(cflush, &opaque_in, coun

Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Jürgen Groß
On 22.04.20 15:43, Julien Grall wrote: Hi Juergen, On 22/04/2020 14:07, Juergen Gross wrote: The GNTTABOP_cache_flush hypercall has a wrong test for hypercall continuation, the test today is: if ( rc > 0 || opaque_out != 0 ) Unfortunately this will be true even in case of an error (rc <

Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Julien Grall
On 22/04/2020 14:43, Julien Grall wrote: Hi Juergen, On 22/04/2020 14:07, Juergen Gross wrote: The GNTTABOP_cache_flush hypercall has a wrong test for hypercall continuation, the test today is: if ( rc > 0 || opaque_out != 0 ) Unfortunately this will be true even in case of an error (

Re: [PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Julien Grall
Hi Juergen, On 22/04/2020 14:07, Juergen Gross wrote: The GNTTABOP_cache_flush hypercall has a wrong test for hypercall continuation, the test today is: if ( rc > 0 || opaque_out != 0 ) Unfortunately this will be true even in case of an error (rc < 0), possibly leading to very long lastin

[PATCH] xen/grants: fix hypercall continuation for GNTTABOP_cache_flush

2020-04-22 Thread Juergen Gross
The GNTTABOP_cache_flush hypercall has a wrong test for hypercall continuation, the test today is: if ( rc > 0 || opaque_out != 0 ) Unfortunately this will be true even in case of an error (rc < 0), possibly leading to very long lasting hypercalls (times of more than an hour have been observe