From nobody Tue Feb 10 07:23:14 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1587530177; cv=none; d=zohomail.com; s=zohoarc; b=OpeVqt/ST/WSv9wZAuubv+rkz4xpffE+bJjOEjZsGqc/MZJGn34LE1WbjAXGfDDLCGZZEhsr9dfrdFaGnhmikf82UwPU3mPMY2neQq+sfxshNFB9idsjrJnn9UwPaQIBdCQnt9tWui+3TNLVenbyydGaPfdbMaVIlHE5wmARYVc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1587530177; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Ar4ktbgi8ho4D2K0AlAA7ABuossIOEQqKwU/YvDdwbY=; b=FjEGIXEARYMRCqB1hLKphefUYjbZi2xKdUTkEYGkSHCEges9hmh+0YmHjxQss0j7xpW5cCY93e4UFwr0dOF10FJn2BZn1zbr9zMcCXcncdfAMAwPnQJ3ywiB2tWIVbrxV5yNljFHixSd80rDUPE5NFOTfUCGpL/CXVmBB7bskbc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1587530177660888.512500096302; Tue, 21 Apr 2020 21:36:17 -0700 (PDT) Received: from localhost ([::1]:41340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR77Q-00051d-BF for importer@patchew.org; Wed, 22 Apr 2020 00:36:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50072) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jR74X-0000QJ-OA for qemu-devel@nongnu.org; Wed, 22 Apr 2020 00:33:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jR74X-0004j5-4w for qemu-devel@nongnu.org; Wed, 22 Apr 2020 00:33:17 -0400 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:33825) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jR74W-0004fG-Mm for qemu-devel@nongnu.org; Wed, 22 Apr 2020 00:33:16 -0400 Received: by mail-pf1-x443.google.com with SMTP id x15so457990pfa.1 for ; Tue, 21 Apr 2020 21:33:16 -0700 (PDT) Received: from localhost.localdomain (174-21-149-226.tukw.qwest.net. [174.21.149.226]) by smtp.gmail.com with ESMTPSA id l137sm4129613pfd.107.2020.04.21.21.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Apr 2020 21:33:14 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ar4ktbgi8ho4D2K0AlAA7ABuossIOEQqKwU/YvDdwbY=; b=KKHmN9DUtNl/895jM8s3jff7LEzmFeqpQ8DWMpXM1qONzT3m9ARgcZsMgP+XdscICt HZLMNtv/ZqoDWF8cXeHk+2bSlQs/4PWjWY5m0f5+6wiIyah2Z+B4dd2NmFckQr7NJ6HO FJ2+o+DHRGk8N+afxBcsGByNqu6GDXbOc6issTgN7yM3kAgSlrKXj2oY6o/6HzchDLLo iH6AsFkzi9ygAU/ahiyH9fYPWIhJi4eQgbeJH9nfG4wPaO08AUWKlOGemDpIwU7+crxI eXUdP952xqi7ovID9SZ5VX81/jeMI2wy+AP48xd3inj5+XoViGfrnA0WWgdTVEceMl3X kM3Q== 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:mime-version:content-transfer-encoding; bh=Ar4ktbgi8ho4D2K0AlAA7ABuossIOEQqKwU/YvDdwbY=; b=pKp4HhKOe3UZkAp1jcPrX/7FgkrhVQUzdOlqJ8FcUwITiakSyIb3CJbH7EB1kC9WGo Go2nMCRhHSgro+KOMQzGcnAi3fHf1o2WT20QrdG2RlDAYqffQMwqQGN4q/KHvwJclZ4+ LLdlS1kaYPSV+z54WA2a87bZgYiaE2v6sbxLrGl0KYT9mHYR0twK5eRYDilt0qsT/xto CKy2q2n+V11dvSLyyM3jXQPKQIDbRGpsyCP+UFpSlxP9ZHcaIww2cbAZYVIHdcXThVDT i7B+rLL6MBqqnh5uSX8pUTd1aJ2q6qut0GR6UDu+eSi+8EYJOVo3D2v16a/FaKhhbFHJ SJtg== X-Gm-Message-State: AGi0PuYRUjPCbt6N+meKuufYobEMfw1dEnIezrp13MBI4AY3uxQKYpEn ipf2YhkG6EKvX6+qUPDl9G6ZyX+e2cE= X-Google-Smtp-Source: APiQypK8vcXuxHEBubjpa3cEPNUc8tdrZTdup/jVsukhDaiYSy8fuW1zLZEYDmSzXKgcURvTFA53Rg== X-Received: by 2002:a63:5853:: with SMTP id i19mr22901678pgm.288.1587529994937; Tue, 21 Apr 2020 21:33:14 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v3 03/18] accel/tcg: Add block comment for probe_access Date: Tue, 21 Apr 2020 21:32:54 -0700 Message-Id: <20200422043309.18430-4-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200422043309.18430-1-richard.henderson@linaro.org> References: <20200422043309.18430-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.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; Received-SPF: pass client-ip=2607:f8b0:4864:20::443; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x443.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2607:f8b0:4864:20::443 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: peter.maydell@linaro.org, qemu-arm@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- include/exec/exec-all.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 350c4b451b..d656a1f05c 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -330,6 +330,23 @@ static inline void tlb_flush_by_mmuidx_all_cpus_synced= (CPUState *cpu, { } #endif +/** + * probe_access: + * @env: CPUArchState + * @addr: guest virtual address to look up + * @size: size of the access + * @access_type: read, write or execute permission + * @mmu_idx: MMU index to use for lookup + * @retaddr: return address for unwinding + * + * Look up the guest virtual address @addr. Raise an exception if the + * page does not satisfy @access_type. Raise an exception if the + * access (@addr, @size) hits a watchpoint. For writes, mark a clean + * page as dirty. + * + * Finally, return the host address for a page that is backed by RAM, + * or NULL if the page requires I/O. + */ void *probe_access(CPUArchState *env, target_ulong addr, int size, MMUAccessType access_type, int mmu_idx, uintptr_t retad= dr); =20 --=20 2.20.1