From patchwork Wed Dec 19 04:21:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 154231 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4501423ljp; Tue, 18 Dec 2018 20:27:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/WmRd4T1HbK3ByG+62VHlv+OhyT3qBGCakL5kBGZMlzb90CpIOtTwKI3+BVLMBV6N100RE+ X-Received: by 2002:ac8:35b1:: with SMTP id k46mr20732708qtb.141.1545193645847; Tue, 18 Dec 2018 20:27:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545193645; cv=none; d=google.com; s=arc-20160816; b=J5NsBAG/I65/XI7tNQFDI/K02wFXPA/iTq5Hg+Yt0ieHPk7O/PtpYF2LChITk+1zVd 6GHIpzJ2jRR3Uiv5yGgv3+o/eiqOa4Zr2+ign15Q0QElvqTvpgOUPDHnYtutCFb8Wyax Gr/YV5kh+T1YaRXBR1mt7BuJR26hn2NSq5tOMV40lldz73B2hvG+3ZhhsXK2BOKbNe0p r5Aan9OYFf5H1rBM4qTVeifYKbb3gNcc8CiArQwHHp1pXGkZZmE3ojGcvN2NEZxHtpN1 LdYng66ToYX0Hy8cOOTczxrY6EUhBOb87y4hCi/vRxAPgDbYtplbHgTUDCY1/TWeAdch 2xkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:to:from :dkim-signature; bh=zCJb69e8CT7qAJGiiotqGI9L23NiAr8HvIdlkIzgRNQ=; b=yxg4nvnIKsDbQso7ZHdNSDqaFRFTPhUcERHBq5hLPYiKgSssFDTtTahPM8pUfteSsG /QG7h3oTeRTVDk+U2PeYQPN4YzaHhm7/Y4Ipwv2V37RxApKj1exv1j9mjVabg52gkv6m t6QM6IxfTKtx6mJW/6gIh0QlAE5aMAdkbCRgmo4P7GU9pa8BIhajMQrGKQTRWFodEiGY zTPE73gxVGCYkYl4Tzol5TFVb0VMj8eWmsliu81qFNwItaN5VlHYrAHg8lMCakGwbOb/ YC2oCEtGEM7FOlCRk72reROLVAWOlndYB/zgbHN5S7J+MZSW96fKFonRkDK2nqoPUN4f nVjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IwFUk78k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id k35si1244525qtc.318.2018.12.18.20.27.25 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 18 Dec 2018 20:27:25 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=IwFUk78k; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:57545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZTS9-000846-81 for patch@linaro.org; Tue, 18 Dec 2018 23:27:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51221) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gZTRd-0007vd-MD for qemu-devel@nongnu.org; Tue, 18 Dec 2018 23:26:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gZTMG-0006KU-B3 for qemu-devel@nongnu.org; Tue, 18 Dec 2018 23:21:25 -0500 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]:44366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gZTMG-0006IY-18 for qemu-devel@nongnu.org; Tue, 18 Dec 2018 23:21:20 -0500 Received: by mail-pf1-x442.google.com with SMTP id u6so9191282pfh.11 for ; Tue, 18 Dec 2018 20:21:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zCJb69e8CT7qAJGiiotqGI9L23NiAr8HvIdlkIzgRNQ=; b=IwFUk78kC9fEzMh0IVaokqBeQpy51t98eB0epyg8W5U2FlsrJTxJKDgKnrs4dY/QVd KxaXw+QdH27QuiWWlA+goBtGKGy8kfxK/hv2bpLRaeY5KCmDvVkAdMR3KzI8Yi55EZvy 8q+vyL68HeWpo7KnusoXbPbbbYukiTeR7lf9c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zCJb69e8CT7qAJGiiotqGI9L23NiAr8HvIdlkIzgRNQ=; b=lHg64PwSnj237OLftKXxb4G2wkDswrKRPyh7GBS8LE3Itxisz3pw2hziPAVtWVIvNk ZhwmmuxHtEXg/1THUgpNi9D0AXsxW2eLgOYVmh+OIc6JUGc2hUJy7ypmxIrFUrSsn0GX UUgVZqzjH6Obdd80b/93hVx+e3w3V0rC3/bLRimbZ1nTVL9NmrCGLlgzM2aykCUyQF3n z+dAH91rVRqMpy67Tj0HIaiW59D+y4EeN4QgYkTjwnIm+4X8nUqxdmsJtMaUDlyWCmJr PDQVqUbIzdBalGFwyK9Pzx9LH0UQtnOr+epz9WaKb41Wzut7iksJSotSuNoXP3a65gBy 5nTg== X-Gm-Message-State: AA+aEWbIt75OgDBE02Lc/q07mkA6Ip3p++J7x0cR1FUgMVxPsW1FulRG IlQl0I63FBkBwvkEdUSlrsrj2g7w24A= X-Received: by 2002:a62:190e:: with SMTP id 14mr19045626pfz.70.1545193275969; Tue, 18 Dec 2018 20:21:15 -0800 (PST) Received: from cloudburst.twiddle.net (97-126-115-157.tukw.qwest.net. [97.126.115.157]) by smtp.gmail.com with ESMTPSA id f64sm47287228pfh.0.2018.12.18.20.21.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 20:21:15 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 18 Dec 2018 20:21:05 -0800 Message-Id: <20181219042113.7364-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::442 Subject: [Qemu-devel] [PATCH v5 0/8] linux-user: Split do_syscall X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Version 4 was back in August: https://lists.gnu.org/archive/html/qemu-devel/2018-08/msg03745.html Version 5 continues the file split via inclusion. This incorporates Laurent's suggestion to have a "def" file that is included twice to generate both SyscallDef structures and fill in syscall_table's switch. Again, this just converts a few syscalls as proof of concept. r~ Richard Henderson (8): linux-user: Setup split syscall infrastructure linux-user: Split out some simple file syscalls linux-user: Reduce regpairs_aligned & target_offset64 ifdefs linux-user: Split out preadv, pwritev, readv, writev, pread64, pwrite64 linux-user: Split out name_to_handle_at, open_by_handle_at linux-user: Split out ipc syscalls linux-user: Split out memory syscalls linux-user: Split out some process syscalls linux-user/syscall-defs.h | 231 +++ linux-user/syscall.h | 93 ++ linux-user/strace.c | 567 ++++---- linux-user/syscall-file.inc.c | 638 +++++++++ linux-user/syscall-ipc.inc.c | 1086 ++++++++++++++ linux-user/syscall-mem.inc.c | 154 ++ linux-user/syscall-proc.inc.c | 861 ++++++++++++ linux-user/syscall.c | 2500 ++------------------------------- linux-user/strace.list | 243 ---- 9 files changed, 3499 insertions(+), 2874 deletions(-) create mode 100644 linux-user/syscall-defs.h create mode 100644 linux-user/syscall.h create mode 100644 linux-user/syscall-file.inc.c create mode 100644 linux-user/syscall-ipc.inc.c create mode 100644 linux-user/syscall-mem.inc.c create mode 100644 linux-user/syscall-proc.inc.c -- 2.17.2