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

Re: [Xen-devel] [PATCH XEN v5 14/23] tools: foreignmemory: provide xenforeignmemory_unmap.



Ian Campbell writes ("[PATCH XEN v5 14/23] tools: foreignmemory: provide 
xenforeignmemory_unmap."):
> And require it be used instead of direct munmap.
> 
> This will allow e.g. Valgrind hooks to help track incorrect use of
> foreign mappings.
> 
> Switch all uses of xenforeignmemory_map to use
> xenforeignmemory_unmap, not that foreign mappings via the libxc compat
> xc_map_foreign_* interface will not take advantage of this and will
> need converting.
...
> +int xenforeignmemory_unmap(xenforeignmemory_handle *fmem,
> +                           void *addr, unsigned int num);
> +

What kind of errors might this return ?

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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