From patchwork Thu Feb 13 03:22:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 183329 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp28616ile; Wed, 12 Feb 2020 19:23:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzNPQTcvneqkywiNoli3ptliI0t2iYZFU3ZaDkI9PgYCWUVINookVngB+eBDmFkkyYBETPp X-Received: by 2002:a37:4ed3:: with SMTP id c202mr13462960qkb.219.1581564227056; Wed, 12 Feb 2020 19:23:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581564227; cv=none; d=google.com; s=arc-20160816; b=shAXvjxeQQ1FiKW5UN9MF8KMgDHx5tHsZWajUUG3HFkUjRrIZ+bkAyTJd2GFE7lDAO 5tous2l88j37Wfy74vZd/cu+49yoiZiXQAnMGydfcRn2Y2diA0TZ/FDIab6Fqe9jFvPa /leht/yNzDDAVvtD43Yi2DBUslRHgpTMknqSCTxRYvi3W8tGlAQLnRAu1fyty9XcMUwK 9/5Nx5iisKiOLcfFm7YjRBcztR8hV2kVLMwrGcPmQNIMGt3Eb8h7S+miAPmsigPxcitW z5WncaVENdscd5mfLxNoBjnRNUfcVTUtqZvcq3BYC5p/0YYRt6g5nTbUx12wqTTPGXwM Szfg== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=jR773XWNEuiDz4JRTeFFlE4dtWRUsueyRY/ZMloKFL4=; b=tmx1Mey1EG7uDQlYYRg2kn6cKlnVcyXn6FlpDjSFTRF5xoJdz4+q46AcJvuh/iAAni xIHtRTi7MpEu5cC1OcvQnqVAp4VM6KH3fKhnardbPt4Vt8UNsT75t6Sno2I5lRVsEGGN h0XDG9fcKO+yh2hGxok6RrKM1B7SXcsEgXng0c5ipQGkLWN5O7JExChf/97UHFY4XnPo 5rbImqbp8f1X96TmJfqfSpTW5mF606w9Y+xbaTEoSVSQgPX/aiVuNB9u0xthHy3Z2TW6 jQiyI1CkBW9paz55HLiU+EwPFYHBM70vz6rrAqbBcjvB7QU+6AsHPri2ATFDmUV4Jj6E dSDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bhb+BJhL; 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=pass (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 z22si566724qka.114.2020.02.12.19.23.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2020 19:23:47 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=Bhb+BJhL; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j256Q-0005LS-Gp for patch@linaro.org; Wed, 12 Feb 2020 22:23:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j255B-0002BN-4J for qemu-devel@nongnu.org; Wed, 12 Feb 2020 22:22:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2559-0008VH-QN for qemu-devel@nongnu.org; Wed, 12 Feb 2020 22:22:28 -0500 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]:33441) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2559-0008R0-JR for qemu-devel@nongnu.org; Wed, 12 Feb 2020 22:22:27 -0500 Received: by mail-pl1-x642.google.com with SMTP id ay11so1763332plb.0 for ; Wed, 12 Feb 2020 19:22:27 -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:mime-version :content-transfer-encoding; bh=jR773XWNEuiDz4JRTeFFlE4dtWRUsueyRY/ZMloKFL4=; b=Bhb+BJhL6G99JLDs9Rtl2qz6C29lwthfJ0GHoCKke6ArxQKp+n0jSBUgFL8z6TBecU RIo1H+qbyP25DNjT/I9lbyF8hLWtvvt/GokKP9bsMSuGJ9y6oPJ9Aii1HMf+E0ttn1lz M/SeiUr5TIJ2szTIzCv29SzSX4apl9NudyOaqeOY+zzNBTC1qX8mDxzoKcI1gYHdSJbr Vli9rTBJebJlTGeNCAo5nlioGkdKi7+UTc39bbCKRAVA4PWyWzJiWFd43cTUrIiUI5zo nhTJMYoXzIUEGnD4nB+03tteyXYRHAYI9IULCEhklGw7CC9k9ncEJqBdiSVfLE/H3OuC JquQ== 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:mime-version :content-transfer-encoding; bh=jR773XWNEuiDz4JRTeFFlE4dtWRUsueyRY/ZMloKFL4=; b=l/fA+foJE3GptE4YLq5j+k7aPS5I08Hl+pcR77eZ4n/muqfkRLlgTC+a/nXZYUsG3W vhP0KlJP1PWjevtJEKnMKPOiAWJTUNa8c5Ds7M3SpHtoUfyDi+jzPxf99sOjK19+MJEw TMBEcg/ofgHdGVumh0vacUDdkRHCFE16ybniucr8lTo0TRQIkp9FbtdHLNWnMEHdPJZw vtG2VHuzkOH+LXiceVat7Yc0434Qhx+JpdolIwMEcGbm1V8Mp5xTig09GXN2UbIbdlX7 BubQ8p4zA6LxSDDxdKuI49KxwdFT0R6MU0f9MPhDw9pJq2fs5BfMJynOFI5TZnq3deH9 AKCw== X-Gm-Message-State: APjAAAUY+4WvOeG9D7AwoNnmvbm35oQgNPajVYbGwe7a5jhGhCNTCp0Q ErZKaAZDeXvzKer4cyoPvSPuKfLlWKs= X-Received: by 2002:a17:90a:bd97:: with SMTP id z23mr2663322pjr.19.1581564145649; Wed, 12 Feb 2020 19:22:25 -0800 (PST) Received: from localhost.localdomain (97-126-123-70.tukw.qwest.net. [97.126.123.70]) by smtp.gmail.com with ESMTPSA id l15sm536067pgi.31.2020.02.12.19.22.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 19:22:24 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 0/5] linux-user: Implement x86_64 vsyscalls Date: Wed, 12 Feb 2020 19:22:18 -0800 Message-Id: <20200213032223.14643-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::642 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: laurent@vivier.eu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes for v3: * Add TARGET_VSYSCALL_PAGE define. * Move the sigsegv goto around. v2: https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg03474.html v1: https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg02841.html r~ Richard Henderson (5): target/i386: Renumber EXCP_SYSCALL linux-user/i386: Split out gen_signal linux-user/i386: Emulate x86_64 vsyscalls linux-user: Add x86_64 vsyscall page to /proc/self/maps linux-user: Flush out implementation of gettimeofday target/i386/cpu.h | 12 ++- linux-user/i386/cpu_loop.c | 201 ++++++++++++++++++++++++++----------- linux-user/syscall.c | 37 ++++++- target/i386/translate.c | 14 ++- 4 files changed, 198 insertions(+), 66 deletions(-) -- 2.20.1