From patchwork Mon Aug 22 15:27:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 599179 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp1865385mae; Mon, 22 Aug 2022 11:13:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR6UjTsrWwyfOiJkqKrc2RhHbowUUkvyJBo4A0H1BMD5Sh0E/RnKHK3mF7fAHtFNXCIttQm4 X-Received: by 2002:a05:620a:d8c:b0:6a7:91a2:c827 with SMTP id q12-20020a05620a0d8c00b006a791a2c827mr13140071qkl.407.1661192004127; Mon, 22 Aug 2022 11:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661192004; cv=none; d=google.com; s=arc-20160816; b=lixjkrJxk2odMgL5t1Nz2zREo4FRSqmhmkjbHt5vgs6Qa04lUnvwVUFfKm0x0eQJZM zlSRD2P2NzBcUgiE9bv2D+ra7lvToou0e6L0AUwZ7A15RK5/KluZjpOgi3c+cQEYuWfU CN5iccIuyiJarbK0hmDkPyRMEGgGz88djmD6gjQJFKCiiJdF+1X45fkTgOa1RahRJA/S dZUWo7LSCfKUlYzXQtnMKD962jZM+SHCP6MeEEsrYW/OsB+VuxaUQ35/3UES9Zh+QxIq E2fQOjYM0GSDKmNRq9kv+4JgS1s+Iq95gfeHrCldeYpPuhb+2Wa2XDdkK6BDKs3nJCqj fIYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=L7q2sisR9jXPO2g1tObtbxm8Q6qrnHqWQnHO8ESVRzQ=; b=V+ONPTIJOyRI3Yqx2HvSL0thMIc2yePnX2SfkDxAqQx1IUT5gaHNjmJey/cztf1XBb C9tBUyfneBhrovLXI5ROuVKR+qOdOS1YHcB7FTSeU4zoTa53a68acMMDtbXQr8244Gfx tsjHKeXlnoACEIdHf7eFuNWVURHK2KYtADTRdKfXJEGTI2A2MVibfVaY5rsyLECIejYf T39RuC4tqHPGl7Up+HAfhV3XiX8UMOl+3+qhuck7GFaULc3VFM8PF6GzC0ydA89gsLsV lThpuKdLmUXRyqCIPf2niM9Sjx/WxW/sJNwvemRrQXX0Gj5vQKg7n4mQlbLxfvVBm4nk Qz9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uNxbfM1L; 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=pass (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 c4-20020a05620a164400b006b913603cb7si4353870qko.175.2022.08.22.11.13.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Aug 2022 11:13:24 -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=pass header.i=@linaro.org header.s=google header.b=uNxbfM1L; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:43246 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQBvP-0005LO-KE for patch@linaro.org; Mon, 22 Aug 2022 14:13:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ9Og-0004dT-MZ for qemu-devel@nongnu.org; Mon, 22 Aug 2022 11:31:28 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]:36355) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQ9Od-0001bN-Q3 for qemu-devel@nongnu.org; Mon, 22 Aug 2022 11:31:26 -0400 Received: by mail-pl1-x62d.google.com with SMTP id c2so10258108plo.3 for ; Mon, 22 Aug 2022 08:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=L7q2sisR9jXPO2g1tObtbxm8Q6qrnHqWQnHO8ESVRzQ=; b=uNxbfM1LG+tkQwT2rbn07Zh7psqGNLMvTCti+0WRgNFkXLbuSUyqETrHtr7TdfYxDe 428itT65OgxjTCHR8iZYXGSKdoyd2jq1VTnCSQJqt1+ukIF/kZG0mKfHlfus5kOPI5Ka KIOWCPZ0Oh28Tw0sYiOkklN55wi2OLAd4a1909QdcEUBsJcpg4erGyGzQi016VqRJ0Aj bHTGG0j2h9UrYGAjsCHCN/EbJYu7ekfY8zsVXeCMnmnBtkFe6NO4jduekuu9PUPG9C00 fQYHjqXTkMRiFpSZZbk8jHCKKP0LeQL8MwXnY/lAD6J6vf1NPPzGvPR/3Tl7AyusmF8L HUjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=L7q2sisR9jXPO2g1tObtbxm8Q6qrnHqWQnHO8ESVRzQ=; b=1o193EGM4oo0av5xwdMWVdUa1KcBhQ6/2ZK0kucaDLojF6vIuZFX3powOwYCZXRZYg MRw7327I/TI+zq9lQWCwBdEDvj4rpVjaplo0ahRyCPe+7Lvtt15Vodugftje3/RmAdO7 HJK0l0+plsxpj71QbWIhvq3nvp6icNB8uat2jNGlcP1rl7VKmjj9GYBnKn+wRY6/arWX YK3Zqw+LtkZLLtXfk1CpznytbYYsmlnuM66n/fmgoLOmLGowgycQU0kucDTLNImf3h1j E6gDMkJEJahe9TT2DxWqHP6vkfQZjNjd7qA9WfPysg8FPy7cO8/kARQutgHZUw5qxJXU 2+5g== X-Gm-Message-State: ACgBeo141lqlHfTWZNdB7JFWTKiyI+1McnAz1ML1gkCUcKNZnLMYA6C7 wenEpQNy4oar2+AIYw3BbV4Sghzgo4F/SQ== X-Received: by 2002:a17:902:eb90:b0:172:f986:a096 with SMTP id q16-20020a170902eb9000b00172f986a096mr1681082plg.94.1661182281916; Mon, 22 Aug 2022 08:31:21 -0700 (PDT) Received: from stoup.. ([71.212.157.236]) by smtp.gmail.com with ESMTPSA id i6-20020a17090a3d8600b001f262f6f717sm10353835pjc.3.2022.08.22.08.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 08:31:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org Subject: [PATCH v2 43/66] include/exec: Introduce TARGET_PAGE_ENTRY_EXTRA Date: Mon, 22 Aug 2022 08:27:18 -0700 Message-Id: <20220822152741.1617527-44-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220822152741.1617527-1-richard.henderson@linaro.org> References: <20220822152741.1617527-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Allow the target to cache items from the guest page tables. Signed-off-by: Richard Henderson --- include/exec/cpu-defs.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h index 5e12cc1854..67239b4e5e 100644 --- a/include/exec/cpu-defs.h +++ b/include/exec/cpu-defs.h @@ -163,6 +163,15 @@ typedef struct CPUTLBEntryFull { /* @lg_page_size contains the log2 of the page size. */ uint8_t lg_page_size; + + /* + * Allow target-specific additions to this structure. + * This may be used to cache items from the guest cpu + * page tables for later use by the implementation. + */ +#ifdef TARGET_PAGE_ENTRY_EXTRA + TARGET_PAGE_ENTRY_EXTRA +#endif } CPUTLBEntryFull; /*