From patchwork Mon Feb 11 17:01:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 158014 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp2852799jaa; Mon, 11 Feb 2019 09:20:02 -0800 (PST) X-Google-Smtp-Source: AHgI3IZUgDL8YdSJOS2dupPU+Qp7lfhVgurcchYk85w0IWJtDqiheFTR3+p6vX0+Ib6m4Sp+Zxz4 X-Received: by 2002:a81:1c12:: with SMTP id c18mr9811631ywc.487.1549905602537; Mon, 11 Feb 2019 09:20:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549905602; cv=none; d=google.com; s=arc-20160816; b=wznZ9V4kT6bMZ5nCZojdItkB1yhZb8lnlef7HKf4y3OUzGR0M2ox1JJT/q3J9xj6iw +Aj5uwzdQEQOgBjV49FwHBQmAr9smrC3sQuRdRzgq0qkBb6pUeR3opGgAydBiGBDUPWG x1bRnOSm/fhJdRUjsdhl5zAUjRruAuo3s3tr6jrDbLRzJAHeDJfRSo3TW4qJtbxQNW0v weZso679qyvDmSPKig0xvJDUEqa2Fko2bsPsoLTp0MuZKMdi2g5YH6em2EQcPB0D90zY dYm7Xo87/B1pvl++1HSPrdlyAsY7kvQNVulJu1ypMyFJmhAtzMxE+6kgJCsq7gQHkV5v jmEA== 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:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=5WjeItA4Q5CFSTB/3Eosqvlagn8qIkKnjwru+1x0GAg=; b=CY6dt4Cj192DSqD/bf3qVzXpeoxfr7MMGBXWcvFdnJZCb05W/qxfBQnZMEFIeojiFE OoDSAqtD/TSPwHGgidLuUk3RMWLbXKG1tS4oVwckr0eB3l4zFaPCdAfd41S1NMHTrTY2 ACWkmg6ARCXR0jY2tV0eG6vmhRlutDCb0OsY9yVZhfCDRULmGUbjASiqFiTJoXW0gYqV a0IJM4T0pwGfrNCkb8Z5mB3NzceOHarVHCCFbng3Ss5jxwxClopw8g0CV/5L3VcZSWcP BVIX8P+WVbvj2sqn/kzWrRDiVAANSUe2RgnwcMAMv1Cz7kBGmHj+jOe5w0OM0wzCZama wlsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=u+3fZCTn; 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 u29si2683055ywh.263.2019.02.11.09.20.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 11 Feb 2019 09:20:02 -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=fail header.i=@linaro.org header.s=google header.b=u+3fZCTn; 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]:53427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtFFS-0006MP-02 for patch@linaro.org; Mon, 11 Feb 2019 12:20:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtF9A-0001yY-Pf for qemu-devel@nongnu.org; Mon, 11 Feb 2019 12:13:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtExm-0000v2-1j for qemu-devel@nongnu.org; Mon, 11 Feb 2019 12:01:52 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:36454) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtExl-0000tq-J8 for qemu-devel@nongnu.org; Mon, 11 Feb 2019 12:01:45 -0500 Received: by mail-pf1-x42d.google.com with SMTP id n22so2789818pfa.3 for ; Mon, 11 Feb 2019 09:01:44 -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:in-reply-to:references; bh=5WjeItA4Q5CFSTB/3Eosqvlagn8qIkKnjwru+1x0GAg=; b=u+3fZCTnC07A8i1GeVmNXjOaUtineLJGfrPyHtt2vIvOU69k4LES79nBuXF2/fFVQV EM809a2aT91sLRkQ43xNgrvM/cRJdfNDS9bZRR4YHNrNnjxabN1MMe1Dc8frQYgl/aLZ 0WuTjREpnEWOd71slNBaTfh9jZZCI+hXmgtdRUo2ciqpA4erf7fZqyrjuPdDzBcupZLU 0n2q6zIjlix5TAw2zL80tayKQ/sybrlNd4N8Ez4ohUYj0mk/pgIwSfyG+dWgZmAIdHH1 B71AD6b3JbEt4eyXdsbdSNrVr8PDzPVRT73BrtSdC4D3OHwyiVXVMQ6bNj/0VO6s1K6R nd6w== 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:in-reply-to :references; bh=5WjeItA4Q5CFSTB/3Eosqvlagn8qIkKnjwru+1x0GAg=; b=CTKbasr3PjlL41Qsv5CiFqv/uHhSs6FSK7jX61sGIUpMSNBhs0ORSRYdQSZwleZ+9S n5bbZfUfx12PM8ZdQo/SMPgKv9T2whsau+7iD7Kk8DSXGcLe6gRrVrTvyJeyEfmZUYsk oGpeIWMgNmrgYJfz6dOYS+gkTTw0Hp4RglpgV6B7BGXdYtO+Dj10pGx990NnC1+gJb95 63JrRuOxd3TlqS7Y7T6uTI5ShN0HcSEfW6j7EzSh27+BTzppA4yxkeymqZIm5QSqlYBn 3jbo/QtML0hEMen8ccyMQtgSL/nMAvxGjnBqZqEVU4Tn5cbI7JxtvXVPkhDdIBIB3lY/ pccQ== X-Gm-Message-State: AHQUAualWmZ2mrriQLq4PCcOr/hS37rDRguw4i+GsuRsQFT1WR6LPcv0 6Bepkh3KdeSQPT7d1NY23NJyOgpaeGM= X-Received: by 2002:a65:4507:: with SMTP id n7mr29107194pgq.34.1549904503470; Mon, 11 Feb 2019 09:01:43 -0800 (PST) Received: from cloudburst.twiddle.net (97-113-188-82.tukw.qwest.net. [97.113.188.82]) by smtp.gmail.com with ESMTPSA id b24sm15712567pfe.136.2019.02.11.09.01.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Feb 2019 09:01:42 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 11 Feb 2019 09:01:35 -0800 Message-Id: <20190211170136.18680-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190211170136.18680-1-richard.henderson@linaro.org> References: <20190211170136.18680-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::42d Subject: [Qemu-devel] [PULL 3/4] exec-all: document that tlb_fill can trigger a TLB resize 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: peter.maydell@linaro.org, "Emilio G. Cota" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: "Emilio G. Cota" Signed-off-by: Emilio G. Cota Message-Id: <20190209162745.12668-2-cota@braap.org> Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 5 +++++ 1 file changed, 5 insertions(+) -- 2.17.2 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index aa7b81aaf0..97b90cb0db 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -475,6 +475,11 @@ static inline void assert_no_pages_locked(void) struct MemoryRegionSection *iotlb_to_section(CPUState *cpu, hwaddr index, MemTxAttrs attrs); +/* + * Note: tlb_fill() can trigger a resize of the TLB. This means that all of the + * caller's prior references to the TLB table (e.g. CPUTLBEntry pointers) must + * be discarded and looked up again (e.g. via tlb_entry()). + */ void tlb_fill(CPUState *cpu, target_ulong addr, int size, MMUAccessType access_type, int mmu_idx, uintptr_t retaddr);