From patchwork Fri Dec 18 20:52:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: imp@freebsd.org X-Patchwork-Id: 11983707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F59FC4361B for ; Sat, 19 Dec 2020 20:55:23 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 19FB7223DB for ; Sat, 19 Dec 2020 20:55:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 19FB7223DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=freebsd.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kqjG4-000135-0c for qemu-devel@archiver.kernel.org; Sat, 19 Dec 2020 15:55:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqj5T-0007SV-Nb for qemu-devel@nongnu.org; Sat, 19 Dec 2020 15:44:27 -0500 Received: from 50-253-99-174-static.hfc.comcastbusiness.net ([50.253.99.174]:31469 helo=dune.bsdimp.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqj5S-000412-1B for qemu-devel@nongnu.org; Sat, 19 Dec 2020 15:44:23 -0500 Received: from dune.bsdimp.com (localhost [127.0.0.1]) by dune.bsdimp.com (8.15.2/8.15.2) with ESMTPS id 0BIKqrxW086424 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 18 Dec 2020 13:52:53 -0700 (MST) (envelope-from imp@dune.bsdimp.com) Received: (from imp@localhost) by dune.bsdimp.com (8.15.2/8.15.2/Submit) id 0BIKqrpV086423; Fri, 18 Dec 2020 13:52:53 -0700 (MST) (envelope-from imp) From: imp@freebsd.org To: qemu-devel@nongnu.org Subject: [PATCH 0/4] A few preliminary bsd-user patches Date: Fri, 18 Dec 2020 13:52:46 -0700 Message-Id: <20201218205250.86382-1-imp@freebsd.org> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 Received-SPF: none client-ip=50.253.99.174; envelope-from=imp@dune.bsdimp.com; helo=dune.bsdimp.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, KHOP_HELO_FCRDNS=0.267, NO_DNS_FOR_FROM=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Warner Losh Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" From: Warner Losh Here's the first round of bsd-user patches. There's on the order of 280 that we've done, but that's too much to review all at once. In addition, 3.1 release was the last rebase point that we've been successful with for a number of reasons unrelated to qemu. Now that those have been resolved, we have a new push under way to push things forward, but wanted to upstream as many of the patches as we can directly to qemu's head to lighten the load of carrying all these. This first small series updates the system call lists, moves things around to make it easier to support divergence in the BSD world, and adjusts to the new meson build. It's also designed to help me learn how to land such a large set upstream. These patches have passed through several hands, with different tweaks over the years so have an unusually large number of signed-off-by lines that are the result of this refinement process where several hands have touched the patches in the last 7 years. Sean Bruno (1): tcg: Additional Trap type for FreeBSD Stacey Son (1): bsd-user: move strace OS/arch dependent code to host/arch dirs Warner Losh (2): bsd-user: regenerate FreeBSD's system call numbers bsd-user: Update strace.list for FreeBSD's latest syscalls accel/tcg/user-exec.c | 8 +- bsd-user/arm/target_arch_sysarch.h | 78 +++ bsd-user/arm/target_syscall.h | 36 ++ bsd-user/freebsd/os-strace.h | 29 ++ bsd-user/freebsd/strace.list | 65 ++- bsd-user/freebsd/syscall_nr.h | 695 ++++++++++++++----------- bsd-user/i386/target_arch_sysarch.h | 77 +++ bsd-user/i386/target_syscall.h | 19 + bsd-user/mips/target_arch_sysarch.h | 69 +++ bsd-user/mips/target_syscall.h | 52 ++ bsd-user/mips64/target_arch_sysarch.h | 69 +++ bsd-user/mips64/target_syscall.h | 53 ++ bsd-user/netbsd/os-strace.h | 1 + bsd-user/openbsd/os-strace.h | 1 + bsd-user/sparc/target_arch_sysarch.h | 52 ++ bsd-user/sparc/target_syscall.h | 24 +- bsd-user/sparc64/target_arch_sysarch.h | 52 ++ bsd-user/sparc64/target_syscall.h | 24 +- bsd-user/strace.c | 11 + bsd-user/x86_64/target_arch_sysarch.h | 76 +++ bsd-user/x86_64/target_syscall.h | 21 +- meson.build | 1 + 22 files changed, 1186 insertions(+), 327 deletions(-) create mode 100644 bsd-user/arm/target_arch_sysarch.h create mode 100644 bsd-user/arm/target_syscall.h create mode 100644 bsd-user/freebsd/os-strace.h create mode 100644 bsd-user/i386/target_arch_sysarch.h create mode 100644 bsd-user/mips/target_arch_sysarch.h create mode 100644 bsd-user/mips/target_syscall.h create mode 100644 bsd-user/mips64/target_arch_sysarch.h create mode 100644 bsd-user/mips64/target_syscall.h create mode 100644 bsd-user/netbsd/os-strace.h create mode 100644 bsd-user/openbsd/os-strace.h create mode 100644 bsd-user/sparc/target_arch_sysarch.h create mode 100644 bsd-user/sparc64/target_arch_sysarch.h create mode 100644 bsd-user/x86_64/target_arch_sysarch.h