Re: [PATCH v2 05/11] tools/foreignmem: Support querying the size of a resource

2021-01-11 Thread Andrew Cooper
On 11/01/2021 10:50, Roger Pau Monné wrote: > On Fri, Jan 08, 2021 at 05:52:36PM +, Andrew Cooper wrote: >> On 22/09/2020 19:24, Andrew Cooper wrote: >>> diff --git a/tools/libs/foreignmemory/linux.c >>> b/tools/libs/foreignmemory/linux.c >>> index fe73d5ab72..eec089e232 100644 >>> --- a/tools

Re: [PATCH v2 05/11] tools/foreignmem: Support querying the size of a resource

2021-01-11 Thread Roger Pau Monné
On Fri, Jan 08, 2021 at 05:52:36PM +, Andrew Cooper wrote: > On 22/09/2020 19:24, Andrew Cooper wrote: > > diff --git a/tools/libs/foreignmemory/linux.c > > b/tools/libs/foreignmemory/linux.c > > index fe73d5ab72..eec089e232 100644 > > --- a/tools/libs/foreignmemory/linux.c > > +++ b/tools/lib

Re: [PATCH v2 05/11] tools/foreignmem: Support querying the size of a resource

2021-01-08 Thread Andrew Cooper
On 22/09/2020 19:24, Andrew Cooper wrote: > diff --git a/tools/libs/foreignmemory/linux.c > b/tools/libs/foreignmemory/linux.c > index fe73d5ab72..eec089e232 100644 > --- a/tools/libs/foreignmemory/linux.c > +++ b/tools/libs/foreignmemory/linux.c > @@ -339,6 +342,39 @@ int osdep_xenforeignmemory_m

[PATCH v2 05/11] tools/foreignmem: Support querying the size of a resource

2020-09-22 Thread Andrew Cooper
With the Xen side of this interface fixed to return real sizes, userspace needs to be able to make the query. Introduce xenforeignmemory_resource_size() for the purpose, bumping the library minor version and providing compatibility for the non-Linux builds. Its not possible to reuse the IOCTL_PRI