[PATCH v2] libs/gnttab: implement on NetBSD

2021-01-26 Thread Manuel Bouyer
Implement gnttab interface on NetBSD. The kernel interface is different from FreeBSD so we can't use the FreeBSD version Signed-off-by: Manuel Bouyer --- tools/libs/gnttab/Makefile | 2 +- tools/libs/gnttab/netbsd.c | 267 + 2 files changed, 268 insertions(+

Re: [PATCH v2] libs/gnttab: implement on NetBSD

2021-01-28 Thread Roger Pau Monné
On Tue, Jan 26, 2021 at 11:47:53PM +0100, Manuel Bouyer wrote: > +int osdep_gntshr_unshare(xengntshr_handle *xgs, > + void *start_address, uint32_t count) > +{ > +return munmap(start_address, count * PAGE_SIZE); > +} > + > +/* > + * The functions below are Linux-isms tha