From patchwork Wed Sep 18 05:26:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 173941 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2019472ill; Tue, 17 Sep 2019 22:30:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIY9f5BUYr5vqMhp1kuIo5Js9VN28xhXaG2RS4+DP2DeO+VkzJ/fky8immNxjWve7m6WA2 X-Received: by 2002:a17:907:2126:: with SMTP id qo6mr1749670ejb.256.1568784615850; Tue, 17 Sep 2019 22:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568784615; cv=none; d=google.com; s=arc-20160816; b=TVzQ91ASu6bZYkx2/qiwxor0Mir0vP80O637AG+Dibrbli+LlNn1sMkNpW2IQxLBWf LKgzXtMrscrpiqNkKtwQZNfw216OG712RvPbOU/LuXkJJFS0HuQFdQ7/JxIvdeo+ZgxF UDWcPreD18LJCxsqZ/N/pBcbQbGykv/vU7NymOqiZlQoYvCJ3HnYN2pRsZBPWPIa5lAG pf6EWVtRviQ5QcFFUUm6B9AxEnjnGlvs0nyWuY3cMOd11me45J6GRQRYXnHKh6D6qAxa uLjZqGqqa6lTfRyLwvpzw8u6eHhpvvJMdNW4E6Qxky4k33uTgq4i/8FAS+F+bVjl7epl Le/w== 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=M0oPGEaqH2K0JM4e4Q7AnuXfBw3BK1zS9WU3J+Hs32Q=; b=Dy3Bvt3G2H5i9z9Uta3HIEsvtvtdD+LAeqYKlELGjxk8DIV1z4K+h6rF11O4TejNYe 5akeKD1GFvB7LYR++Hx4Aa3+MYFlLNvv1n7yjUp0v1JKKHIFIFtqK8rkGzIry5bDqjwH /Nkgfjze1oBUmCoFktdUrAuCBs3Xqz3yIQTDrQKwuP8fCT80LMvmJSOWRlO+8ljn4AIB qbygS0WHXZohtXDow4YR7xRlFstdOHcsBOs4QOYROJC+ec567lC3oH1BrKsZLHMsvCaE vVKluCmS1UZHRkXXxoO8g6Qpv02N4KUgUXjbHvrQKkxmLvXEiVjFB2uu19k44SkN+qAE 4qXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=kgMJWTmm; 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 d4si2194767ejk.327.2019.09.17.22.30.15 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Sep 2019 22:30:15 -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=kgMJWTmm; 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 ([::1]:54688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iASXe-0003lw-5E for patch@linaro.org; Wed, 18 Sep 2019 01:30:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53554) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iASUK-0002L0-Bo for qemu-devel@nongnu.org; Wed, 18 Sep 2019 01:26:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iASUI-00070j-1e for qemu-devel@nongnu.org; Wed, 18 Sep 2019 01:26:47 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:38880) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iASUH-00070I-RS for qemu-devel@nongnu.org; Wed, 18 Sep 2019 01:26:45 -0400 Received: by mail-pl1-x644.google.com with SMTP id w10so2562958plq.5 for ; Tue, 17 Sep 2019 22:26:45 -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=M0oPGEaqH2K0JM4e4Q7AnuXfBw3BK1zS9WU3J+Hs32Q=; b=kgMJWTmmvgPkqbGOeJbvMfofApSU6yJvNsimM06Z1kaP1LCr2wfDHiLVALZHfvOXvl wmz55T1a7Srdfm4XXX7/fFlWkIeG0A5nG6jLBLtrroDH+oA4sGsrr28821ls30Xb0008 /N7gEOvwmtARsLQPuydjCILcuNFjW08uKOpqjCVnb1iNIgf/q6NIs4hvnkXHqEWUu/h3 PpUDKgh4oecjJqjcXFyXIUtSpnxZJEtcqHXDiQ5xAxZiTEQzZ/tfdjXunLKrp/lzLaNq jyJ/+czUPITJEtPJ+17afe+wMe3sCBsI6qKaitFIg0QhPGLyQ3IR2Ulxx+vY1JfUWw// FF0A== 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=M0oPGEaqH2K0JM4e4Q7AnuXfBw3BK1zS9WU3J+Hs32Q=; b=Cu9umt6zm+54gaApYOAN63GuJTY6RrOKonyCgaG9ac3zbUuxzmOmRRVkSuRJ/Xk3U3 IrMPu8JtM7JByBwOptzK6dK4/3JcjSKzlreQUF33KVf5NjN71FOIF/ly2v5+6nmr2rkD set6j0l9gc4oyubuSYb4m7/R3uk+6Maf3BYz/X2MSy8mNnfX6q1OKRpODdvnLX/a2RNv wLNMEX6VqYE7Ubk7iYW6CMZXcgLbamYqESld5rj0halAKk12kGFxmsX7yOVPrAfeF1pZ EDZoWZrP8Z2BERGNk3mFQ25zNzi9a95rmV1zG2jgKPxR1O5U8P7gb7LoKHe2sjT7kisx EbQg== X-Gm-Message-State: APjAAAUUdkjaFb5EKz0sq83m0K3x+IXkecPFgu+H1l1uigYH7oCZLAp5 GHkywTFjHJw58KlBLFxkhcl0GDyXcTU= X-Received: by 2002:a17:902:b20a:: with SMTP id t10mr2357286plr.277.1568784404173; Tue, 17 Sep 2019 22:26:44 -0700 (PDT) Received: from localhost.localdomain (97-113-7-119.tukw.qwest.net. [97.113.7.119]) by smtp.gmail.com with ESMTPSA id a1sm3457234pgd.74.2019.09.17.22.26.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2019 22:26:43 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Tue, 17 Sep 2019 22:26:38 -0700 Message-Id: <20190918052641.21300-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::644 Subject: [Qemu-devel] [RFC 0/3] Move notdirty handling to cputlb 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: pbonzini@redhat.com, alex.bennee@linaro.org, stefanha@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" RFC because this doesn't work, and I don't quite understand why. The only failing test is {i386,x86_64} pxe-test -- the other migration tests that use notdirty all pass. Note that if you try to reproduce this on x86, you'll likely have to --disable-kvm, as otherwise the pxe-test will skip tcg. Anyone who knows how this works willing to have a look? r~ Richard Henderson (3): exec: Adjust notdirty tracing cputlb: Move NOTDIRTY handling from I/O path to TLB path cputlb: Remove ATOMIC_MMU_DECLS accel/tcg/atomic_template.h | 12 ----- include/exec/cpu-common.h | 1 - include/exec/memory-internal.h | 53 +++---------------- accel/tcg/cputlb.c | 65 +++++++++++++---------- accel/tcg/user-exec.c | 1 - exec.c | 97 +++++++--------------------------- memory.c | 20 ------- trace-events | 4 +- 8 files changed, 63 insertions(+), 190 deletions(-) -- 2.17.1