From nobody Sat Nov 8 05:21:46 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549905549020232.64410626886763; Mon, 11 Feb 2019 09:19:09 -0800 (PST) Received: from localhost ([127.0.0.1]:53427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtFEU-0006MP-SF for importer@patchew.org; Mon, 11 Feb 2019 12:19: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) 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) 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-Google-Smtp-Source: AHgI3IbRFL0lj4C7sJJvJGoCvTTXwRAlTaCG4ARlcaN6knIg1c+7kFp8LMqqKn8x1E8xuIJzl+XIsg== X-Received: by 2002:a65:4507:: with SMTP id n7mr29107194pgq.34.1549904503470; Mon, 11 Feb 2019 09:01:43 -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+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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(+) 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 attr= s); =20 +/* + * Note: tlb_fill() can trigger a resize of the TLB. This means that all o= f 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); =20 --=20 2.17.2