From patchwork Sun May 19 20:36:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 164490 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp4778098ili; Sun, 19 May 2019 13:37:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJhE+jik+H1umi7B/n7386WLS7fvpQlBbUYAIT9919LdtU5uuMXyUN35CO4uZoT1Dq/gSm X-Received: by 2002:a50:9184:: with SMTP id g4mr60522069eda.65.1558298276150; Sun, 19 May 2019 13:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558298276; cv=none; d=google.com; s=arc-20160816; b=Ibq1pYcfYOkf6TOTqCuhtdgS6aED7tqqhehvG25xw4klKM4k/X6QXF1TiL51MOg+hn jaezz9IxGukXUEYC7BCJACHc6qpTXB0ziMrW+woUyoqHiwXYsWbAG3cOEyznrGY13Mcy 08nhAEfx1Er9RtAWgdFW9vQpXoX+nz0eXIrvTh44nVWiYN4NWfkAzcABJ9CvSCtel8Vh vDFIEb1cdJ6aFonfth0bDsot8lvJbETETBdk8Ky57t/Sk/jeKgZlcjMAD9wwwG7A+BdH ySVRy1p3iOk43v9T5T+KBTXpkuhNKaSUJSsAWH+rLjHZQzDheg03H53Wwl1JjG8dgKRZ qRdw== 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=c7I7VLMb0JYuYLPfzLy2sCHy9ey83VZaUhcy01kbtg0=; b=FEDKbF1DxTRVeBhKzbUMsqxIH5U1YkDJV5AwIR9lusqrcQIj7VlivdJ7zqrY1H9WYM 7LslhByHAYF9uj1PTVQfSQGgh3GFYEiGvzxZyGmf+hNskhTq0xt+GGNrjDRxAP9BQltF VZv1GqEjp3d6ObqOuijXt70fRzoGmRXP86oPaZcQXvwQEgve9CaIJr7BCw4PoOabW9oL 8QNn8ijfYn24KpPi0kcPQyOSfMH210xeYgcRHFBvq2N796IZefdqGpIIZUniI+MHeqLb xORbU3zWn4EUpjOWTzfLSZdaGlpOBfYMtMhaXFq0zoiN512nQo9/21PBeQ9w5OaDQm3G Q+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BHkRF6ba; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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. [209.51.188.17]) by mx.google.com with ESMTPS id t9si4559004ejz.152.2019.05.19.13.37.55 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 19 May 2019 13:37:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=BHkRF6ba; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 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 ([127.0.0.1]:53108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSZ9-0002iT-0q for patch@linaro.org; Sun, 19 May 2019 16:37:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSSYl-0002hN-Pj for qemu-devel@nongnu.org; Sun, 19 May 2019 16:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSSYk-0003KO-Dh for qemu-devel@nongnu.org; Sun, 19 May 2019 16:37:31 -0400 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]:39845) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSSYk-0003J7-78 for qemu-devel@nongnu.org; Sun, 19 May 2019 16:37:30 -0400 Received: by mail-pf1-x42b.google.com with SMTP id z26so6167041pfg.6 for ; Sun, 19 May 2019 13:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=c7I7VLMb0JYuYLPfzLy2sCHy9ey83VZaUhcy01kbtg0=; b=BHkRF6banCqwNVQ/m5QYeWxpFqPcQzFl03d9xkOJpSisiBtv6X0p20X5tUKCRsYR+a 1N00DUGZdCLk/tQyo+3xU/G40vtmI/l50vTt6WqgXsQnwiH3vz02fFAr6Ju9QF7EstJf 7a+bmk45eRYpaF+bfIOaXJuoq1mFF9QOeBip7W3lH0WUVmDILjqywTZRhmoCNKwdrrc2 2gwC/fAJ9m7JSGae8cZXCSIHdIFPzOAnzG3ysoU3/+jLnUZ11AuGGaiSH8O3vxJDN2dU YQ1NSH64Rh8y9rfJ354jZil+EpNa5XTd+u3olFJgWl+7MyFs+lmJme1b9n/CzGmKkHe/ cFdw== 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=c7I7VLMb0JYuYLPfzLy2sCHy9ey83VZaUhcy01kbtg0=; b=uBmkTiNSv0xLhNF+OfkYsZEWf+u1W6br1DP0YFivcbyT2FsT0PymbWBFPmLzTQDU8Q UR3OVADDwGFLEy5I874OwoJ9gKngowCLvgc2+Xi1xB8NXbZbq+MBoqbXCL4Azz6XlnHL ZsfK/60zifW9exUG1qQp1d2C47/07Bnrpa0WrsTRzEb/UWbJQj5zKNE/3F+6CX1Wu0z+ Bpq0T5wT5/pQsIWTQyAkahs60OrMOTJ3MxRU5O1SVD+pDOFwix31cxIXAVdo3jir7AWN IH8QX6wA2aKvi7IG6bOTlkRtK4vIdK+5a7kakph0KzbeicBAd+6teoimQ/55dD8HcOSi HUqg== X-Gm-Message-State: APjAAAU1cJwbAPXm4qHcsR0Snmak/TqHHL3W1awdGNgqb9+DNk0sKr+N eh6loeml/a+AocX/eVJstIy7iKu7Un0= X-Received: by 2002:a62:7796:: with SMTP id s144mr19051137pfc.260.1558298248193; Sun, 19 May 2019 13:37:28 -0700 (PDT) Received: from localhost.localdomain (97-113-13-231.tukw.qwest.net. [97.113.13.231]) by smtp.gmail.com with ESMTPSA id i7sm11397448pfo.19.2019.05.19.13.37.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 13:37:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 19 May 2019 13:36:12 -0700 Message-Id: <20190519203726.20729-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42b Subject: [Qemu-devel] [PATCH v7 00/74] 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" Based-on: <20190519201953.20161-1-richard.henderson@linaro.org> Aka "linux-user: path, clone, sparc, shmat fixes" Version 6 was https://lists.gnu.org/archive/html/qemu-devel/2019-01/msg04794.html Since v5, I've fixed the ioctl failure that Laurent found, and have done a few more syscalls. I've tried to do more testing with LTP, but it's a really annoying testsuite. There are at least 3 tests that hang forever (before and after this patch set), and the host kernel's OOM handler kills my login session, ending the test run. This seems to be different behaviour than I was seeing in January, when I did have test runs that completed successfully. OTOH, looking back at the v6 cover letter, I now see that I was testing armhf and i386 as guests, whereas this time I was trying aarch64 and ppc64 as guests. 32-bit guests unable to trigger the host OOM killer? Laurent, is there anything special that you're doing to see these tests run to completion? r~ Richard Henderson (74): linux-user: Setup split syscall infrastructure linux-user: Split out open, open_at linux-user: Share more code for open and openat linux-user: Tidy do_openat loop over fakes linux-user: Split out readlink, readlinkat linux-user: Split out close linux-user: Split out read, write linux-user: Reduce regpairs_aligned & target_offset64 ifdefs linux-user: Split out readv, writev linux-user: Split out pread64, pwrite64 linux-user: Split out preadv, pwritev 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 exit linux-user: Split out brk linux-user: Split out clone, fork, vfork linux-user: Split out wait4, waitid, waitpid linux-user: Implement rusage argument to waitid linux-user: Split out creat linux-user: Split out link, linkat linux-user: Split out unlink, unlinkat, rmdir linux-user: Split out execve linux-user: Implement execveat linux-user: Split out chdir linux-user: Split out time linux-user: Split out mknod, mknodat linux-user: Split out chmod, fchmod, fchmodat linux-user: Split out lseek, llseek linux-user: Split out getpid, getppid, getxpid linux-user: Split out mount linux-user: Split out umount, umount2 linux-user: Split out stime linux-user: Split out alarm, pause linux-user: Split out utime, utimes, futimesat linux-user: Split out access, faccessat linux-user: Split out nice linux-user: Split out sync, syncfs linux-user: Split out kill linux-user: Split out rename, renameat, renameat2 linux-user: Split out mkdir, mkdirat linux-user: Split out dup, dup2, dup3 linux-user: Split out pipe, pipe2 linux-user: Split out times linux-user: Split out acct linux-user: Move syscall_init to the end linux-user: Split out ioctl linux-user: Fix types in ioctl logging linux-user: Remove sentinel from ioctl_entries linux-user: Split out fcntl, fcntl64 linux-user: Split out setpgid linux-user: Split out umask linux-user: Split out chroot linux-user: Split out getpgid, getpgrp linux-user: Split out getsid, setsid linux-user: Split out sigaction, rt_sigaction linux-user: Split out sgetmask, ssetmask linux-user: Split out sigprocmask, rt_sigprocmask linux-user: Split out sigpending, rt_sigpending linux-user: Split out sigsuspend, rt_sigsuspend linux-user: Split out rt_sigtimedwait linux-user: Split out rt_sigqueueinfo, rt_tgsigqueueinfo linux-user: Split out sigreturn, rt_sigreturn linux-user: Split out gethostname, sethostname linux-user: Split out getrlimit, setrlimit linux-user: Split out getrusage linux-user: Split out gettimeofday, settimeofday linux-user: Split out select, _newselect linux-user: Split out pselect6 linux-user: Split out symlink, symlinkat linux-user: Split out swapon, swapoff linux-user: Split out reboot linux-user: Split out truncate, truncate64, ftruncate, ftruncate64 linux-user: Split out getpriority, setpriority linux-user/syscall-defs.h | 338 +++ linux-user/syscall.h | 103 + linux-user/strace.c | 1569 +++------- linux-user/syscall-fcntl.inc.c | 322 ++ linux-user/syscall-file.inc.c | 1526 ++++++++++ linux-user/syscall-ioctl.inc.c | 873 ++++++ linux-user/syscall-ipc.inc.c | 1088 +++++++ linux-user/syscall-mem.inc.c | 244 ++ linux-user/syscall-proc.inc.c | 758 +++++ linux-user/syscall-sig.inc.c | 549 ++++ linux-user/syscall-time.inc.c | 77 + linux-user/syscall.c | 5045 ++------------------------------ configure | 20 - linux-user/strace.list | 414 --- 14 files changed, 6512 insertions(+), 6414 deletions(-) create mode 100644 linux-user/syscall-defs.h create mode 100644 linux-user/syscall.h create mode 100644 linux-user/syscall-fcntl.inc.c create mode 100644 linux-user/syscall-file.inc.c create mode 100644 linux-user/syscall-ioctl.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 create mode 100644 linux-user/syscall-sig.inc.c create mode 100644 linux-user/syscall-time.inc.c -- 2.17.1