Re: [Xen-devel] [PATCH RFC v1 56/74] xen/pvshim: add grant table operations

2018-01-10 Thread Roger Pau Monné
On Wed, Jan 10, 2018 at 12:28:27AM -0700, Jan Beulich wrote: > >>> On 09.01.18 at 19:34, wrote: > > On Mon, Jan 08, 2018 at 10:19:39AM -0700, Jan Beulich wrote: > >> >>> On 04.01.18 at 14:06, wrote: > >> > +{ > >> > +struct gnttab_query_size op; > >> > +int rc; > >> > + > >> >

Re: [Xen-devel] [PATCH RFC v1 56/74] xen/pvshim: add grant table operations

2018-01-09 Thread Jan Beulich
>>> On 09.01.18 at 19:34, wrote: > On Mon, Jan 08, 2018 at 10:19:39AM -0700, Jan Beulich wrote: >> >>> On 04.01.18 at 14:06, wrote: >> > +{ >> > +struct gnttab_query_size op; >> > +int rc; >> > + >> > +if ( unlikely(copy_from_guest(&op, uop, 1)) ) >> > +{ >> >

Re: [Xen-devel] [PATCH RFC v1 56/74] xen/pvshim: add grant table operations

2018-01-09 Thread Roger Pau Monné
On Mon, Jan 08, 2018 at 10:19:39AM -0700, Jan Beulich wrote: > >>> On 04.01.18 at 14:06, wrote: > > @@ -30,11 +31,17 @@ > > #include > > #include > > > > +#include > > Interesting: The event channel patch gave me the impression that > it is not intended to deal with 32-bit guests. AFAICT

Re: [Xen-devel] [PATCH RFC v1 56/74] xen/pvshim: add grant table operations

2018-01-08 Thread Jan Beulich
>>> On 04.01.18 at 14:06, wrote: > @@ -30,11 +31,17 @@ > #include > #include > > +#include Interesting: The event channel patch gave me the impression that it is not intended to deal with 32-bit guests. > @@ -360,6 +367,173 @@ void pv_shim_inject_evtchn(unsigned int port) > } > } >

[Xen-devel] [PATCH RFC v1 56/74] xen/pvshim: add grant table operations

2018-01-04 Thread Wei Liu
From: Roger Pau Monne Signed-off-by: Roger Pau Monné Signed-off-by: Anthony Liguori Signed-off-by: Andrew Cooper --- xen/arch/x86/pv/shim.c| 174 ++ xen/common/compat/grant_table.c | 5 + xen/common/grant_table.c | 10 ++ x