Skip to contentSkip to conversation

bsd-user: remove bitrotted NetBSD and OpenBSD bsd-user support

PATCH In review Warner Losh 3 participants 13 messages Mar 31, 2023 – Apr 2, 2023

lore
Share & tools
lore
#1 lore raw
In reply to Warner Losh

Please note: This did come from me, from a new machine that's slightly misconfigured, so it didn't go through Google's email server and so you may get a spoofing warning. I'll fix that in v2, if there is one, or in the pull request if there's no changes.

Warner

Quoted 65 lines · Warner Losh

The NetBSD and OpenBSD support in bsd-user hasn't built since before the meson
conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for the
same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more advanced,
and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

 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      | 147 -----------
 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     | 147 -----------
 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              |  29 +--
 21 files changed, 1 insertion(+), 1818 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h

--
2.39.2

#3 lore raw

PATCH 2/7 bsd-user: Remove netbsd system call inclusion and defines

In reply to Warner Losh

Remove NetBSD system call inclusion and defines. We've not supported building all the BSDs into one module for some time, and the NetBSD support hasn't even built since the meson conversion.

---
 bsd-user/syscall_defs.h | 16 ----------------
 1 file changed, 16 deletions(-)
bsd-user/syscall_defs.h +0 -16
index b6d113d24a..8352ab783c 100644
@@ -26,7 +26,6 @@
 #include "errno_defs.h"
 
 #include "freebsd/syscall_nr.h"
-#include "netbsd/syscall_nr.h"
 #include "openbsd/syscall_nr.h"
 
 /*
@@ -40,9 +39,6 @@
  * FreeBSD uses a 64bits time_t except on i386
  * so we have to add a special case here.
  *
- * On NetBSD time_t is always defined as an int64_t.  On OpenBSD time_t
- * is always defined as an int.
- *
  */
 #if (!defined(TARGET_I386))
 typedef int64_t target_freebsd_time_t;
@@ -69,18 +65,6 @@ struct target_iovec {
 
 #define TARGET_FREEBSD_MAP_FLAGMASK     0x1ff7
 
-#define TARGET_NETBSD_MAP_INHERIT       0x0080  /* region is retained after */
-                                                /* exec */
-#define TARGET_NETBSD_MAP_TRYFIXED      0x0400  /* attempt hint address, even */
-                                                /* within break */
-#define TARGET_NETBSD_MAP_WIRED         0x0800  /* mlock() mapping when it is */
-                                                /* established */
-
-#define TARGET_NETBSD_MAP_STACK         0x2000  /* allocated from memory, */
-                                                /* swap space (stack) */
-
-#define TARGET_NETBSD_MAP_FLAGMASK      0x3ff7
-
 #define TARGET_OPENBSD_MAP_INHERIT      0x0080  /* region is retained after */
                                                 /* exec */
 #define TARGET_OPENBSD_MAP_NOEXTEND     0x0100  /* for MAP_FILE, don't change */
Signature · 1 line
2.39.2
#7 lore raw

PATCH 6/7 bsd-user: Remove netbsd directory

In reply to Warner Losh

The NetBSD support in the bsd-user fork can't even compile. It is being removed there. Remove it here as well. If someone wants to revive it, then I'm happy to help them do so. This hasn't built since the conversion to meson.

---
 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     | 147 -----------
 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 --
 9 files changed, 923 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
bsd-user/netbsd/host-os.h deleted +0 -25
deleted file mode 100644
index 7c14b1ea78..0000000000
@@ -1,25 +0,0 @@
-/*
- *  NetBSD host dependent code and definitions
- *
- *  Copyright (c) 2013 Stacey D. Son
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef HOST_OS_H
-#define HOST_OS_H
-
-#define HOST_DEFAULT_BSD_TYPE target_netbsd
-
-#endif /* HOST_OS_H */
bsd-user/netbsd/os-strace.h deleted +0 -1
deleted file mode 100644
index 70cf51d63a..0000000000
@@ -1 +0,0 @@
-/* XXX NetBSD dependent strace print functions */
bsd-user/netbsd/strace.list deleted +0 -145

145 lines not on this page · raw message

bsd-user/netbsd/syscall_nr.h deleted +0 -373

373 lines not on this page · raw message

bsd-user/netbsd/target_os_elf.h deleted +0 -147

147 lines not on this page · raw message

bsd-user/netbsd/target_os_siginfo.h deleted +0 -82

82 lines not on this page · raw message

bsd-user/netbsd/target_os_signal.h deleted +0 -69

69 lines not on this page · raw message

bsd-user/netbsd/target_os_stack.h deleted +0 -56

56 lines not on this page · raw message

bsd-user/netbsd/target_os_thread.h deleted +0 -25
deleted file mode 100644
index 8ccfa16e4b..0000000000
@@ -1,25 +0,0 @@
-/*
- *  NetBSD thread dependent code and definitions
- *
- *  Copyright (c) 2013 Stacey D. Son
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef TARGET_OS_THREAD_H
-#define TARGET_OS_THREAD_H
-
-#include "target_arch_thread.h"
-
-#endif /* TARGET_OS_THREAD_H */
Signature · 1 line
2.39.2
#8 lore raw

PATCH 7/7 bsd-user: Remove openbsd directory

In reply to Warner Losh

The OpenBSD support in the bsd-user fork can't even compile. It is being removed there. Remove it here as well. If someone wants to revive it, then I'm happy to help them do so. This hasn't built since the conversion to meson.

---
 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     | 147 -----------------
 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 ---
 9 files changed, 817 deletions(-)
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h
bsd-user/openbsd/host-os.h deleted +0 -25
deleted file mode 100644
index b9222335d4..0000000000
@@ -1,25 +0,0 @@
-/*
- *  OpenBSD host dependent code and definitions
- *
- *  Copyright (c) 2013 Stacey D. Son
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef HOST_OS_H
-#define HOST_OS_H
-
-#define HOST_DEFAULT_BSD_TYPE target_openbsd
-
-#endif /* HOST_OS_H */
bsd-user/openbsd/os-strace.h deleted +0 -1
deleted file mode 100644
index 9161390433..0000000000
@@ -1 +0,0 @@
-/* XXX OpenBSD dependent strace print functions */
bsd-user/openbsd/strace.list deleted +0 -187

187 lines not on this page · raw message

bsd-user/openbsd/syscall_nr.h deleted +0 -225

225 lines not on this page · raw message

bsd-user/openbsd/target_os_elf.h deleted +0 -147

147 lines not on this page · raw message

bsd-user/openbsd/target_os_siginfo.h deleted +0 -82

82 lines not on this page · raw message

bsd-user/openbsd/target_os_signal.h deleted +0 -69

69 lines not on this page · raw message

bsd-user/openbsd/target_os_stack.h deleted +0 -56

56 lines not on this page · raw message

bsd-user/openbsd/target_os_thread.h deleted +0 -25
deleted file mode 100644
index c3adc6712f..0000000000
@@ -1,25 +0,0 @@
-/*
- *  OpenBSD thread dependent code and definitions
- *
- *  Copyright (c) 2013 Stacey D. Son
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
- *  (at your option) any later version.
- *
- *  This program is distributed in the hope that it will be useful,
- *  but WITHOUT ANY WARRANTY; without even the implied warranty of
- *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- *  GNU General Public License for more details.
- *
- *  You should have received a copy of the GNU General Public License
- *  along with this program; if not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef TARGET_OS_THREAD_H
-#define TARGET_OS_THREAD_H
-
-#include "target_arch_thread.h"
-
-#endif /* TARGET_OS_THREAD_H */
Signature · 1 line
2.39.2
#0 lore raw

cover bsd-user: remove bitrotted NetBSD and OpenBSD bsd-user support

The NetBSD and OpenBSD support in bsd-user hasn't built since before the meson conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for the same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more advanced, and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

 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      | 147 -----------
 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     | 147 -----------
 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              |  29 +--
 21 files changed, 1 insertion(+), 1818 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h
Signature · 1 line
2.39.2
#2 lore raw

PATCH 1/7 bsd-user: Remove obsolete prototypes

These prototypes have been obsolete since 304f944e5104.

---
 bsd-user/qemu.h | 6 ------
 1 file changed, 6 deletions(-)
bsd-user/qemu.h +0 -6
index 41d84e0b81..4062ee720f 100644
@@ -169,12 +169,6 @@ abi_long do_freebsd_syscall(void *cpu_env, int num, abi_long arg1,
                             abi_long arg2, abi_long arg3, abi_long arg4,
                             abi_long arg5, abi_long arg6, abi_long arg7,
                             abi_long arg8);
-abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long arg1,
-                           abi_long arg2, abi_long arg3, abi_long arg4,
-                           abi_long arg5, abi_long arg6);
-abi_long do_openbsd_syscall(void *cpu_env, int num, abi_long arg1,
-                            abi_long arg2, abi_long arg3, abi_long arg4,
-                            abi_long arg5, abi_long arg6);
 void gemu_log(const char *fmt, ...) G_GNUC_PRINTF(1, 2);
 extern __thread CPUState *thread_cpu;
 void cpu_loop(CPUArchState *env);
Signature · 1 line
2.39.2
#6 lore raw

PATCH 5/7 bsd-user: Remove openbsd system call tracing

In reply to Warner Losh

Remove OpenBSD system call tracing. We've not supported building all the BSDs into one module for some time, and the OpenBSD support hasn't even built since the meson conversion.

---
 bsd-user/qemu.h   |  5 -----
 bsd-user/strace.c | 17 -----------------
 2 files changed, 22 deletions(-)
bsd-user/qemu.h +0 -5
index b82f7b6f00..c921c3cb63 100644
@@ -195,11 +195,6 @@ print_freebsd_syscall(int num,
                       abi_long arg1, abi_long arg2, abi_long arg3,
                       abi_long arg4, abi_long arg5, abi_long arg6);
 void print_freebsd_syscall_ret(int num, abi_long ret);
-void
-print_openbsd_syscall(int num,
-                      abi_long arg1, abi_long arg2, abi_long arg3,
-                      abi_long arg4, abi_long arg5, abi_long arg6);
-void print_openbsd_syscall_ret(int num, abi_long ret);
 /**
  * print_taken_signal:
  * @target_signum: target signal being taken
bsd-user/strace.c +0 -17
index bde906e9be..26abb9f1db 100644
@@ -152,9 +152,6 @@ static void print_syscall_ret_addr(const struct syscallname *name, abi_long ret)
 static const struct syscallname freebsd_scnames[] = {
 #include "freebsd/strace.list"
 };
-static const struct syscallname openbsd_scnames[] = {
-#include "openbsd/strace.list"
-};
 
 static void print_syscall(int num, const struct syscallname *scnames,
         unsigned int nscnames, abi_long arg1, abi_long arg2, abi_long arg3,
@@ -226,20 +223,6 @@ void print_freebsd_syscall_ret(int num, abi_long ret)
     print_syscall_ret(num, ret, freebsd_scnames, ARRAY_SIZE(freebsd_scnames));
 }
 
-void print_openbsd_syscall(int num, abi_long arg1, abi_long arg2, abi_long arg3,
-        abi_long arg4, abi_long arg5, abi_long arg6)
-{
-
-    print_syscall(num, openbsd_scnames, ARRAY_SIZE(openbsd_scnames), arg1, arg2,
-            arg3, arg4, arg5, arg6);
-}
-
-void print_openbsd_syscall_ret(int num, abi_long ret)
-{
-
-    print_syscall_ret(num, ret, openbsd_scnames, ARRAY_SIZE(openbsd_scnames));
-}
-
 static void
 print_signal(abi_ulong arg, int last)
 {
Signature · 1 line
2.39.2
#4 lore raw

PATCH 3/7 bsd-user: Remove netbsd system call tracing

In reply to Warner Losh

Remove NetBSD system call tracing. We've not supported building all the BSDs into one module for some time, and the NetBSD support hasn't even built since the meson conversion.

---
 bsd-user/qemu.h   |  5 -----
 bsd-user/strace.c | 17 -----------------
 2 files changed, 22 deletions(-)
bsd-user/qemu.h +0 -5
index 4062ee720f..b82f7b6f00 100644
@@ -196,11 +196,6 @@ print_freebsd_syscall(int num,
                       abi_long arg4, abi_long arg5, abi_long arg6);
 void print_freebsd_syscall_ret(int num, abi_long ret);
 void
-print_netbsd_syscall(int num,
-                     abi_long arg1, abi_long arg2, abi_long arg3,
-                     abi_long arg4, abi_long arg5, abi_long arg6);
-void print_netbsd_syscall_ret(int num, abi_long ret);
-void
 print_openbsd_syscall(int num,
                       abi_long arg1, abi_long arg2, abi_long arg3,
                       abi_long arg4, abi_long arg5, abi_long arg6);
bsd-user/strace.c +0 -17
index 96499751eb..bde906e9be 100644
@@ -152,9 +152,6 @@ static void print_syscall_ret_addr(const struct syscallname *name, abi_long ret)
 static const struct syscallname freebsd_scnames[] = {
 #include "freebsd/strace.list"
 };
-static const struct syscallname netbsd_scnames[] = {
-#include "netbsd/strace.list"
-};
 static const struct syscallname openbsd_scnames[] = {
 #include "openbsd/strace.list"
 };
@@ -229,20 +226,6 @@ void print_freebsd_syscall_ret(int num, abi_long ret)
     print_syscall_ret(num, ret, freebsd_scnames, ARRAY_SIZE(freebsd_scnames));
 }
 
-void print_netbsd_syscall(int num, abi_long arg1, abi_long arg2, abi_long arg3,
-        abi_long arg4, abi_long arg5, abi_long arg6)
-{
-
-    print_syscall(num, netbsd_scnames, ARRAY_SIZE(netbsd_scnames),
-                  arg1, arg2, arg3, arg4, arg5, arg6);
-}
-
-void print_netbsd_syscall_ret(int num, abi_long ret)
-{
-
-    print_syscall_ret(num, ret, netbsd_scnames, ARRAY_SIZE(netbsd_scnames));
-}
-
 void print_openbsd_syscall(int num, abi_long arg1, abi_long arg2, abi_long arg3,
         abi_long arg4, abi_long arg5, abi_long arg6)
 {
Signature · 1 line
2.39.2
#5 lore raw

PATCH 4/7 bsd-user: Remove openbsd system call inclusion and defines

In reply to Warner Losh

Remove OpenBSD system call inclusion and defines. We've not supported building all the BSDs into one module for some time, and the OpenBSD support hasn't even built since the meson conversion.

---
 bsd-user/syscall_defs.h | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
bsd-user/syscall_defs.h +1 -12
index 8352ab783c..a3a0fdbb52 100644
@@ -26,7 +26,6 @@
 #include "errno_defs.h"
 
 #include "freebsd/syscall_nr.h"
-#include "openbsd/syscall_nr.h"
 
 /*
  * machine/_types.h
@@ -65,17 +64,7 @@ struct target_iovec {
 
 #define TARGET_FREEBSD_MAP_FLAGMASK     0x1ff7
 
-#define TARGET_OPENBSD_MAP_INHERIT      0x0080  /* region is retained after */
-                                                /* exec */
-#define TARGET_OPENBSD_MAP_NOEXTEND     0x0100  /* for MAP_FILE, don't change */
-                                                /* file size */
-#define TARGET_OPENBSD_MAP_TRYFIXED     0x0400  /* attempt hint address, */
-                                                /* even within heap */
-
-#define TARGET_OPENBSD_MAP_FLAGMASK     0x17f7
-
-/* XXX */
-#define TARGET_BSD_MAP_FLAGMASK         0x3ff7
+#define TARGET_BSD_MAP_FLAGMASK         0x1ff7
 
 /*
  * sys/time.h
Signature · 1 line
2.39.2
Reviewed-by on the v1 series
#9 lore raw
In reply to Warner Losh
Quoted 8 lines · Warner Losh

The NetBSD and OpenBSD support in bsd-user hasn't built since before the meson conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for the same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more advanced, and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Quoted 8 lines

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

r~

#10 lore raw
In reply to Warner Losh

Dear Qemu folks,

I'll throw it in the NetBSD group for feedback.

With regards,
Reinoud

Quoted 61 lines · Warner Losh

The NetBSD and OpenBSD support in bsd-user hasn't built since before the meson conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for the same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more advanced, and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

 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      | 147 -----------
 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     | 147 -----------
 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              |  29 +--
 21 files changed, 1 insertion(+), 1818 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h
Signature · 1 line
2.39.2
#11 lore raw

These haven't even compiled in years. Last time I polled the NetBSD and OpenBSD communities they weren't using this and had no plans to fix.

I'd be happy to work with anybody that wanted to fix that state of affairs.

Warner

Quoted 73 lines · Reinoud Zandijk

Dear Qemu folks,

I'll throw it in the NetBSD group for feedback.

With regards,
Reinoud

Quoted 1 line · Warner Losh

The NetBSD and OpenBSD support in bsd-user hasn't built since before the

meson

Quoted 2 lines

conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for

the

Quoted 2 lines

same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more

advanced,

Quoted 56 lines

and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

 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      | 147 -----------
 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     | 147 -----------
 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              |  29 +--
 21 files changed, 1 insertion(+), 1818 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h

--
2.39.2

#12 lore raw
In reply to Warner Losh

After consulting with Taylor Campbell, I'm going to hold off on this for now. He had some code to start to fix things, which I hope he can find time and energy to port over to the (more complete) qemu-bsd-user upstream so that there's one target for people working on the area that will eventually become what's in qemu-project's master branch.

I'll replace this series with some other changes that try to accomplish the same base goals.

Warner

Quoted 65 lines · Warner Losh

The NetBSD and OpenBSD support in bsd-user hasn't built since before the meson
conversion. It's also out of sync with many of the recent changes in the bsd-user fork and has just been removed there. Remove it from master for the
same reasons: it generates a number of false positives with grep and has increasingly gotten in the way. The bsd-user fork code is much more advanced,
and even it doesn't compile and is out of date. Remove this from both branches. If others wish to bring it up to speed, I'm happy to help them.

Warner Losh (7):
bsd-user: Remove obsolete prototypes
bsd-user: Remove netbsd system call inclusion and defines
bsd-user: Remove netbsd system call tracing
bsd-user: Remove openbsd system call inclusion and defines
bsd-user: Remove openbsd system call tracing
bsd-user: Remove netbsd directory
bsd-user: Remove openbsd directory

 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      | 147 -----------
 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     | 147 -----------
 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              |  29 +--
 21 files changed, 1 insertion(+), 1818 deletions(-)
 delete mode 100644 bsd-user/netbsd/host-os.h
 delete mode 100644 bsd-user/netbsd/os-strace.h
 delete mode 100644 bsd-user/netbsd/strace.list
 delete mode 100644 bsd-user/netbsd/syscall_nr.h
 delete mode 100644 bsd-user/netbsd/target_os_elf.h
 delete mode 100644 bsd-user/netbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/netbsd/target_os_signal.h
 delete mode 100644 bsd-user/netbsd/target_os_stack.h
 delete mode 100644 bsd-user/netbsd/target_os_thread.h
 delete mode 100644 bsd-user/openbsd/host-os.h
 delete mode 100644 bsd-user/openbsd/os-strace.h
 delete mode 100644 bsd-user/openbsd/strace.list
 delete mode 100644 bsd-user/openbsd/syscall_nr.h
 delete mode 100644 bsd-user/openbsd/target_os_elf.h
 delete mode 100644 bsd-user/openbsd/target_os_siginfo.h
 delete mode 100644 bsd-user/openbsd/target_os_signal.h
 delete mode 100644 bsd-user/openbsd/target_os_stack.h
 delete mode 100644 bsd-user/openbsd/target_os_thread.h

--
2.39.2