From patchwork Mon Sep 23 22:59:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 174226 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3396627ill; Mon, 23 Sep 2019 16:00:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwrNl5Li7GIc03x8uTFHIE2UzWq19X2QGP4pGJcX9b8ip0KOGsWmH8PtRMekMrUqYYrHc4 X-Received: by 2002:a05:620a:13da:: with SMTP id g26mr408817qkl.20.1569279658118; Mon, 23 Sep 2019 16:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569279658; cv=none; d=google.com; s=arc-20160816; b=Emly7IH/S8KcpWQtsAEWKwCkGm4zZlA4kj/RcMPWwCbYygm5KP4cjLQrGUkoL5FCZl vnNcP3ZcTSy5G7NQoJ/S7nDvQ+eL/1ipgej3pDLlND6gEMx1ZUtjSe7Af9btamyCMTZc q3CnPIAD2cq1E53nGM7lWuuNgU/t5lvQVDT9K+AoRrSEkHfwOyijmkVWCfF6SvHl3CwC xOER0jr3MbsRbn32EIk/JwIQcbAW7MYAiVKfvhADdEc9s8rGYNUBk7qMFv/L5UXpAoGs xgf82RqCJZmSqUfKKZ/ZFUxJx6fQVAx9H0pCH2fTPuOQ49CinuztpsPstRqgph5Cw7dk Zsfg== 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=8/hX23yLRxMIHSb6BM/Tb9ngaY0hFIkGRxY//0dFwRI=; b=0DwTCslgGHZi7Jye3rAIgFjdv66uvHzheUSllaumLmR6q/mr172YcV9yoFPxLkxWZf Jx5s2aic1bAT1e1ZrerpNlQx6xwbhX8yEWo7LrkCuXJFwT7/OB4NqCAllnrCYS6EQ5uo 3eAGuqPR3JAguOxbsJ9ZfDzhgth4inn6i2dQE7wYIUM32lp/9SO04MvTWcwnmDipcItQ 0neuBQCNx9+tHN+ONcBejSFUIFxSxU+nv+AtAv3HylgM/btqrH03oVtQUKVTjh6whU1g xpYBp2gayUVU8/Cq31B6/eZ6VkJDPAmyAa74ubevg4yPtJ2t1L5I6KXgoWCFMhGTByKx ep0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qDDWv5j2; 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 g32si9001080qve.181.2019.09.23.16.00.58 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 23 Sep 2019 16:00:58 -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=qDDWv5j2; 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]:36932 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCXKC-0005Rh-NU for patch@linaro.org; Mon, 23 Sep 2019 19:00:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35676) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iCXJT-0005Q5-U5 for qemu-devel@nongnu.org; Mon, 23 Sep 2019 19:00:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iCXJR-0007tm-HH for qemu-devel@nongnu.org; Mon, 23 Sep 2019 19:00:11 -0400 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]:33846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iCXJR-0007sB-Au for qemu-devel@nongnu.org; Mon, 23 Sep 2019 19:00:09 -0400 Received: by mail-pg1-x530.google.com with SMTP id y35so441pgl.1 for ; Mon, 23 Sep 2019 16:00:09 -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:mime-version :content-transfer-encoding; bh=8/hX23yLRxMIHSb6BM/Tb9ngaY0hFIkGRxY//0dFwRI=; b=qDDWv5j2KeSRf5Lmm1JZ6BMJ9AIbF/YSmHKaLbpyNoeE4fSmtRqBd4Cu8Sm2vv4TFD Gf1HPg0e5XAPlT4A/3S5dn1jdILvJcTi4NBIOXhFHueUiqrN5W5ROi1hGIdiGJSiWIEI SaYAAFKe6U/nrO4elYNyPincNTpVSofHpwT1NjUkIkAPTN0EsagzARelbHmMErI3Fdol XXHG61bSubyddeiMmvWNrgxWM2baUK1MnxpBLdtAHCk4V42vvyVOo+q/VZCaKnSjL3xZ nULDoiTTywokN4rnZPTSmOEUgmGcYQW+aGHrwMezXcJNXjHn4QUxf4K0uieul2sAN6tn Bqbw== 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=8/hX23yLRxMIHSb6BM/Tb9ngaY0hFIkGRxY//0dFwRI=; b=IcoAYDlMf8XIgW1pj0RQBKkC+EpyNClQHSRIyLn2gWMeU+YcPkbVd1t/IJsxDti/j3 3Qr8FDEG2jqTZxHh+CMm/xmrqzW9Yj8vByjTwIhmWmY7A7hp5uGB4MXjE4TRFRmc/j+Z 8Vi5uZj1cx1IS8cOYehpaQE6Gu1hPVFH0ZhWxV4ZTxKf0S4F08r3nWg04QO6pogR5zsW ZfzCZmwI6lTbR6byMXYPi+xvXsshvUpNiGGNjjeTi4u5AaCcHJJKfTyJTza8KbeZu3v1 QEFdN7ku8Uh14QY/jZ7OwKB+z+qzOmV3ENl1kB713Jm0CxSpNmpE+vhfTJYQNIH2rdrD oIwQ== X-Gm-Message-State: APjAAAVvfLUWOSXFokQ/GZFRu4Hx8WBrV4u66M+un1WYNRnqUmdZXvxn KYPQl0BHChYz88pgSasp8ok/TDM6980= X-Received: by 2002:a63:2b01:: with SMTP id r1mr2134219pgr.19.1569279607425; Mon, 23 Sep 2019 16:00:07 -0700 (PDT) Received: from localhost.localdomain ([12.206.46.59]) by smtp.gmail.com with ESMTPSA id 74sm11674810pfy.78.2019.09.23.16.00.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2019 16:00:06 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v4 00/16] Move rom and notdirty handling to cputlb Date: Mon, 23 Sep 2019 15:59:48 -0700 Message-Id: <20190923230004.9231-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.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::530 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, david@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Changes since v3: * Don't accidentally include the TARGET_PAGE_BITS_VARY patch set. ;-) * Remove __has_attribute(__always_inline__). * Use single load/store_memop function instead of separate small wrappers. * Introduce optimize_away to assert the code folds away as expected. Patches without review: 0003-qemu-compiler.h-Add-optimize_away.patch 0004-cputlb-Use-optimize_away-in-load-store_helpers.patch 0005-cputlb-Split-out-load-store_memop.patch 0010-cputlb-Partially-inline-memory_region_section_get.patch 0011-cputlb-Merge-and-move-memory_notdirty_write_-prep.patch 0012-cputlb-Handle-TLB_NOTDIRTY-in-probe_access.patch r~ Richard Henderson (16): exec: Use TARGET_PAGE_BITS_MIN for TLB flags cputlb: Disable __always_inline__ without optimization qemu/compiler.h: Add optimize_away cputlb: Use optimize_away in load/store_helpers cputlb: Split out load/store_memop cputlb: Introduce TLB_BSWAP exec: Adjust notdirty tracing cputlb: Move ROM handling from I/O path to TLB path cputlb: Move NOTDIRTY handling from I/O path to TLB path cputlb: Partially inline memory_region_section_get_iotlb cputlb: Merge and move memory_notdirty_write_{prepare,complete} cputlb: Handle TLB_NOTDIRTY in probe_access cputlb: Remove cpu->mem_io_vaddr cputlb: Remove tb_invalidate_phys_page_range is_cpu_write_access cputlb: Pass retaddr to tb_invalidate_phys_page_fast cputlb: Pass retaddr to tb_check_watchpoint accel/tcg/translate-all.h | 8 +- include/exec/cpu-all.h | 23 ++- include/exec/cpu-common.h | 3 - include/exec/exec-all.h | 6 +- include/exec/memory-internal.h | 65 ------- include/hw/core/cpu.h | 2 - include/qemu/compiler.h | 26 +++ accel/tcg/cputlb.c | 340 +++++++++++++++++++-------------- accel/tcg/translate-all.c | 51 +++-- exec.c | 158 +-------------- hw/core/cpu.c | 1 - memory.c | 20 -- trace-events | 4 +- 13 files changed, 279 insertions(+), 428 deletions(-) -- 2.17.1