Skip to content

NetBSD fixes

Manuel Bouyer xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 48 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24Fix lock directory path for NetBSDm4/paths.m4+1 -10 replies
2/24NetBSD doens't need xenbackendd with xl toolstacktools/Makefile+0 -11 reply
3/24Fix lock directory path for NetBSDtools/configure+1 -10 replies
4/24Make xg_main.c build on NetBSDtools/debugger/gdbsx/xg/xg_main.c+11 -01 reply
5/24Introduce locking functions for block device setup on NetBSDtools/hotplug/NetBSD/Makefile tools/hotplug/NetBSD/block tools/hotplug/NetBSD/locking.sh+77 -18 replies
6/24Handle the case where vifname is not present in xenstore.tools/hotplug/NetBSD/vif-bridge tools/hotplug/NetBSD/vif-ip+8 -12 replies
7/24Remove NetBSD's system headers. We'll use the system-provided ones, which are up to date.tools/include/Makefile tools/include/xen-sys/NetBSD/evtchn.h tools/include/xen-sys/NetBSD/privcmd.h+1 -1934 replies
8/24Make libs/call build on NetBSDtools/libs/call/netbsd.c+10 -81 reply
9/24Use xen/xenio.h on NetBSDtools/libs/call/private.h+7 -10 replies
10/24Make libs/evtchn build on NetBSDtools/libs/evtchn/netbsd.c+4 -45 replies
11/24Implement foreignmemory on NetBSDtools/libs/foreignmemory/Makefile tools/libs/foreignmemory/netbsd.c tools/libs/foreignmemory/private.h+75 -133 replies
12/24Implement gnttab on NetBSDtools/libs/gnttab/Makefile tools/libs/gnttab/netbsd.c+268 -15 replies
13/24Don't assume tv_sec is a unsigned long (for NetBSD)tools/libs/light/libxl_create.c+4 -43 replies
14/24Pass bridge name to qemu and set XEN_DOMAIN_IDtools/libs/light/libxl_dm.c+10 -03 replies
15/24Make libs/light build on NetBSDtools/libs/light/libxl_dm.c+9 -01 reply
16/24Switch NetBSD to QEMU_XEN (!traditional)tools/libs/light/libxl_netbsd.c+1 -12 replies
17/24Make libs/light build on NetBSDtools/libs/light/libxl_uuid.c+2 -21 reply
18/24xeneventchn_stubs.c doens't need xen/sys/evtchn.h (NetBSD fix)tools/ocaml/libs/eventchn/xeneventchn_stubs.c+0 -11 reply
19/24errno may not be a gobal R/W variable, use a local variable instead (fix build on NetBSD)tools/xenpaging/xenpaging.c+3 -23 replies
20/24If FILENAME_MAX is defined, use it instead of arbitrary value (fix format-truncation errors with GCC >= 7)tools/xenpmd/xenpmd.c+4 -02 replies
21/24Fix unused functions/variables errortools/libs/stat/xenstat_netbsd.c+0 -110 replies
22/24If PTHREAD_STACK_MIN is not defined, use DEFAULT_THREAD_STACKSIZEtools/libs/store/xs.c+4 -01 reply
23/24Use xen/xenio.h on NetBSDtools/libs/ctrl/xc_private.h+4 -00 replies
24/24Fix error: array subscript has type 'char' [-Werror=char-subscripts]tools/libs/light/libxl_qmp.c tools/xentrace/xentrace.c xen/tools/symbols.c+4 -40 replies

Reviews trailers per patch

4 of 24 patches have a Reviewed-by or Acked-by.

PatchRoger Pau Monné
1/24
2/24
3/24
4/24
5/24
6/24
7/24
8/24
9/24
10/24R-b
11/24
12/24
13/24R-b
14/24
15/24
16/24
17/24
18/24R-b
19/24
20/24
21/24
22/24R-b
23/24
24/24

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/24] NetBSD fixes

Hello,
here is a set of 24 patches, which are needed to build and run the tools on NetBSD. They are extracted from NetBSD's pkgsrc repository for Xen 4.13, and ported to 4.15.

Manuel Bouyer (24):
Fix lock directory path for NetBSD
NetBSD doens't need xenbackendd with xl toolstack
Fix lock directory path for NetBSD
Make it build on NetBSD
Introduce locking functions for block device setup on NetBSD Handle the case where vifname is not present in xenstore. Remove NetBSD's system headers. We'll use the system-provided ones,
which are up to date.
Make it build on NetBSD
Use xen/xenio.h on NetBSD
Make it build on NetBSD
Implement foreignmemory on NetBSD
Implement gnttab on NetBSD
Don't assume tv_sec is a unsigned long (for NetBSD)
Pass bridge name to qemu When starting qemu, set an environnement
variable XEN_DOMAIN_ID, to be used by qemu helper scripts
Make it build on NetBSD
Switch NetBSD to QEMU_XEN (!traditional)
Make it build on NetBSD
This doens't need xen/sys/evtchn.h (NetBSD fix)
errno may not be a gobal R/W variable, use a local variable instead
(fix build on NetBSD)
If FILENAME_MAX is defined, use it instead of arbitrary value (fix
format-truncation errors with GCC >= 7)
Fix unused functions/variables error
If PTHREAD_STACK_MIN is not defined, use DEFAULT_THREAD_STACKSIZE Use xen/xenio.h on NetBSD
Fix error: array subscript has type 'char' [-Werror=char-subscripts]

 m4/paths.m4                                   |   2 +-
 tools/Makefile                                |   1 -
 tools/configure                               |   2 +-
 tools/debugger/gdbsx/xg/xg_main.c             |  11 +
 tools/hotplug/NetBSD/Makefile                 |   1 +
 tools/hotplug/NetBSD/block                    |   5 +-
 tools/hotplug/NetBSD/locking.sh               |  72 +++++
 tools/hotplug/NetBSD/vif-bridge               |   5 +-
 tools/hotplug/NetBSD/vif-ip                   |   4 +
 tools/include/Makefile                        |   2 +-
 tools/include/xen-sys/NetBSD/evtchn.h         |  86 ------
 tools/include/xen-sys/NetBSD/privcmd.h        | 106 -------
 tools/libs/call/netbsd.c                      |  18 +-
 tools/libs/call/private.h                     |   8 +-
 tools/libs/ctrl/xc_private.h                  |   4 +
 tools/libs/evtchn/netbsd.c                    |   8 +-
 tools/libs/foreignmemory/Makefile             |   2 +-
 tools/libs/foreignmemory/netbsd.c             |  76 ++++-
 tools/libs/foreignmemory/private.h            |  10 +-
 tools/libs/gnttab/Makefile                    |   2 +-
 tools/libs/gnttab/netbsd.c                    | 267 ++++++++++++++++++
 tools/libs/light/libxl_create.c               |   8 +-
 tools/libs/light/libxl_dm.c                   |  19 ++
 tools/libs/light/libxl_netbsd.c               |   2 +-
 tools/libs/light/libxl_qmp.c                  |   2 +-
 tools/libs/light/libxl_uuid.c                 |   4 +-
 tools/libs/stat/xenstat_netbsd.c              |  11 -
 tools/libs/store/xs.c                         |   4 +
 tools/ocaml/libs/eventchn/xeneventchn_stubs.c |   1 -
 tools/xenpaging/xenpaging.c                   |   5 +-
 tools/xenpmd/xenpmd.c                         |   4 +
 tools/xentrace/xentrace.c                     |   2 +-
 xen/tools/symbols.c                           |   4 +-
 33 files changed, 508 insertions(+), 250 deletions(-)
 create mode 100644 tools/hotplug/NetBSD/locking.sh
 delete mode 100644 tools/include/xen-sys/NetBSD/evtchn.h
 delete mode 100644 tools/include/xen-sys/NetBSD/privcmd.h
 create mode 100644 tools/libs/gnttab/netbsd.c
Signature · 1 line
2.28.0