[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH XEN v8 11/29] tools: Refactor foreign memory mapping into libxenforeignmemory

On Mon, 2016-01-25 at 13:01 +0100, Olaf Hering wrote:
> On Fri, Jan 15, Ian Campbell wrote:
> > libxenforeignmemory will provide a stable API and ABI for mapping
> > foreign domain memory (subject to appropriate privileges).
> I think this will break my Xen pkg build:
> [ÂÂ333s] kdd-xen.c: In function 'kdd_access_physical_page':
> [ÂÂ333s] kdd-xen.c:508:15: warning: implicit declaration of function
> 'xc_map_foreign_range' [-Wimplicit-function-declaration]
> [ÂÂ333s]ÂÂÂÂÂÂÂÂÂÂmap = xc_map_foreign_range(g->xc_handle,
> [ÂÂ333s] kdd-xen.c:508:13: warning: assignment makes pointer from integer
> without a cast [-Wint-conversion]
> [ÂÂ333s]ÂÂÂÂÂÂÂÂÂÂmap = xc_map_foreign_range(g->xc_handle,

I supposed this wasn't built by default and I missed it, but it looks to be
built unconditionally. I wonder why I didn't see this.

Defining XC_WANT_COMPAT_MAP_FOREIGN_API while building is one way to fix,
or else kdd would need to switch to the new interface. The latter is
obviously better long term, but the former is done for a bunch of stuff in
tree so it might as well be done here too.

The machine with the trees I used for this work is currently unavailable
(network issues in our office), but I'll see if I can reproduce.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.