[PATCH v2 0/2] bsd-user: Remove netbsd and open support

Warner Losh posted 2 patches 8 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260210-bsd-user-rm-openbsd-netbsd-v2-0-3dd10091d359@bsdimp.com
Maintainers: Warner Losh <imp@bsdimp.com>, Kyle Evans <kevans@freebsd.org>, Brad Smith <brad@comstyle.com>
bsd-user/netbsd/host-os.h            |  25 ---
bsd-user/netbsd/os-strace.h          |   1 -
bsd-user/netbsd/strace.list          | 145 --------------
bsd-user/netbsd/syscall_nr.h         | 373 -----------------------------------
bsd-user/netbsd/target_os_elf.h      | 148 --------------
bsd-user/netbsd/target_os_siginfo.h  |  82 --------
bsd-user/netbsd/target_os_signal.h   |  69 -------
bsd-user/netbsd/target_os_stack.h    |  56 ------
bsd-user/netbsd/target_os_thread.h   |  25 ---
bsd-user/openbsd/host-os.h           |  25 ---
bsd-user/openbsd/os-strace.h         |   1 -
bsd-user/openbsd/strace.list         | 187 ------------------
bsd-user/openbsd/syscall_nr.h        | 225 ---------------------
bsd-user/openbsd/target_os_elf.h     | 148 --------------
bsd-user/openbsd/target_os_siginfo.h |  82 --------
bsd-user/openbsd/target_os_signal.h  |  69 -------
bsd-user/openbsd/target_os_stack.h   |  56 ------
bsd-user/openbsd/target_os_thread.h  |  25 ---
bsd-user/qemu.h                      |  16 --
bsd-user/strace.c                    |  34 ----
bsd-user/syscall_defs.h              |  23 ---
21 files changed, 1815 deletions(-)
[PATCH v2 0/2] bsd-user: Remove netbsd and open support
Posted by Warner Losh 8 hours ago
bsd-user switched to supporting a single BSD compiled in 2022. We've
only built on FreeBSD since 2021. The NetBSD and OpenBSD support in
bsd-user, even when a hacked meson was used, hasn't compiled in years
due to bitrot (the last time I tried it was early 2023, and it failed
then due to easily correctable reasons).

In 2018 I tried to connect with the NetBSD efforts to get bsd-user
working there, but they didn't get beyond a few emails. I contacated the
OpenBSD people and they said at that time they'd not used user-mode in
years. I'd kept the code in the tree on the off chance it would allow
this work to continue, but there's been nothing contributed to either
bsd-user/netbsd or bsd-user/openbsd since the initial import in 2008,
apart from the work I did with FreeBSD to separate the BSD-specific
requirements out in 2021. What's there now is so badly bitrotted it
would take a very large effort to make it work.

It's time to give up, at least with the current code. This series
deletes the netbsd and openbsd code in bsd-user. I do plan on still
trying to keep the bsd split, with some common code for the 4.4BSD
interfaces that are still around (not many: most system calls have
evolved independently since the late 90s). And I do remain open to
working with people to make netbsd and/or openbsd support in
bsd-user. As it stands now, there's code I'd like to merge from
the qemu-bsd-user fork that this code is in the way of.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
Changes in v2:
- Drop build changes from this series
- Link to v1: https://lore.kernel.org/qemu-devel/20260210-bsd-user-rm-openbsd-netbsd-v1-0-8b8b0f50c29d@bsdimp.com

---
Warner Losh (2):
      bsd-user: Remove the openbsd-specific code
      bsd-user: Remove NetBSD supprot

 bsd-user/netbsd/host-os.h            |  25 ---
 bsd-user/netbsd/os-strace.h          |   1 -
 bsd-user/netbsd/strace.list          | 145 --------------
 bsd-user/netbsd/syscall_nr.h         | 373 -----------------------------------
 bsd-user/netbsd/target_os_elf.h      | 148 --------------
 bsd-user/netbsd/target_os_siginfo.h  |  82 --------
 bsd-user/netbsd/target_os_signal.h   |  69 -------
 bsd-user/netbsd/target_os_stack.h    |  56 ------
 bsd-user/netbsd/target_os_thread.h   |  25 ---
 bsd-user/openbsd/host-os.h           |  25 ---
 bsd-user/openbsd/os-strace.h         |   1 -
 bsd-user/openbsd/strace.list         | 187 ------------------
 bsd-user/openbsd/syscall_nr.h        | 225 ---------------------
 bsd-user/openbsd/target_os_elf.h     | 148 --------------
 bsd-user/openbsd/target_os_siginfo.h |  82 --------
 bsd-user/openbsd/target_os_signal.h  |  69 -------
 bsd-user/openbsd/target_os_stack.h   |  56 ------
 bsd-user/openbsd/target_os_thread.h  |  25 ---
 bsd-user/qemu.h                      |  16 --
 bsd-user/strace.c                    |  34 ----
 bsd-user/syscall_defs.h              |  23 ---
 21 files changed, 1815 deletions(-)
---
base-commit: 0b91040d23dc8820724a60c811223b777f3bc6b7
change-id: 20260206-bsd-user-rm-openbsd-netbsd-fd4f0fa3329e

Best regards,
-- 
Warner Losh <imp@bsdimp.com>