From nobody Wed Oct 1 02:07:02 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 (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1548715597966337.0599612234113; Mon, 28 Jan 2019 14:46:37 -0800 (PST) Received: from localhost ([127.0.0.1]:39647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goFfo-00010A-Sf for importer@patchew.org; Mon, 28 Jan 2019 17:46:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goFcA-0006wV-IB for qemu-devel@nongnu.org; Mon, 28 Jan 2019 17:42:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goFRS-0006Jz-NK for qemu-devel@nongnu.org; Mon, 28 Jan 2019 17:31:48 -0500 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]:37911) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goFRR-0006B8-0J for qemu-devel@nongnu.org; Mon, 28 Jan 2019 17:31:46 -0500 Received: by mail-oi1-x241.google.com with SMTP id a77so14513303oii.5 for ; Mon, 28 Jan 2019 14:31:30 -0800 (PST) Received: from cloudburst.twiddle.net ([12.227.73.85]) by smtp.gmail.com with ESMTPSA id v3sm7460438oib.57.2019.01.28.14.31.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 Jan 2019 14:31:29 -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=PuHA9slAwS6cMEvVcURGk2HxWJ9T4N5ch4vNRS6j+AM=; b=IiWuYMX1jpvgkxpK0LDH6uYffIgdEnbsgvw9Lfkk0W7xO9fnyr8g9p22PbEigM8Sqw yOo2D1YmFxwKbRgsf4j2VsvQmCtVB6LT50Ov0eGoW1T/4eeRMnN09iMEe2mDIoBPBwaX y8tHO7u7lh3OgGE6q/RjrKaDy7+EpcisfC0NU= 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=PuHA9slAwS6cMEvVcURGk2HxWJ9T4N5ch4vNRS6j+AM=; b=STy/mrElMEOGioQ7zOA4WbycSMquvOeQx6qQR7sWPAFFF9SvEQwmE9gH/A6LpMna5g 9T1dQtaC38iqbO7QTFWvWdyUiOKFgzpJY9U+IlVttcLws7PnnZezqKCZiK3au8L5N912 s1cMb5S8m0Jl/YO7qWIFTCLi6HljstVfz/DwE7qHPMJ7/+87wmrI4B5vu7k0nT9uTVSW 3uGOG3NPIjdnbAvN0KNYWDZONzURlE6bEAalU1EeXp+peftNK8FcLXKHWIqGewuL9vyl 0asxUerYreZWPo4AdU8wkBkQWYzjJH7ZtXr7sYZW8BpdvW3GQK43ZhPSmc9+ddunxSxl sBdQ== X-Gm-Message-State: AJcUukfhDPIeP4H7YnQPN6ibyfYibqqUCQyPtHJJBWexxaUxRWzh1Q3I MpC7eWIcTC+8AJsYkhopLKO0jpx8kkk= X-Google-Smtp-Source: ALg8bN5qqI3YNpWsfPvp+6zAJPp5z07gTGChpcQ3T/NEuJbv7KboXO+InqjGpl7x9EI1jyhFVNh9ew== X-Received: by 2002:a54:450f:: with SMTP id l15mr7612944oil.351.1548714689843; Mon, 28 Jan 2019 14:31:29 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Date: Mon, 28 Jan 2019 14:31:10 -0800 Message-Id: <20190128223118.5255-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20190128223118.5255-1-richard.henderson@linaro.org> References: <20190128223118.5255-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::241 Subject: [Qemu-devel] [PATCH v2 04/12] exec: Add target-specific tlb bits to MemTxAttrs 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 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" These bits can be used to cache target-specific data in cputlb read from the page tables. Signed-off-by: Richard Henderson Reviewed-by: Peter Maydell --- include/exec/memattrs.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/exec/memattrs.h b/include/exec/memattrs.h index d4a1642098..d4a3477d71 100644 --- a/include/exec/memattrs.h +++ b/include/exec/memattrs.h @@ -37,6 +37,16 @@ typedef struct MemTxAttrs { unsigned int user:1; /* Requester ID (for MSI for example) */ unsigned int requester_id:16; + /* + * The following are target-specific page-table bits. These are not + * related to actual memory transactions at all. However, this struct= ure + * is part of the tlb_fill interface, cached in the cputlb structure, + * and has unused bits. These fields will be read by target-specific + * helpers using env->iotlb[mmu_idx][tlb_index()].attrs.target_tlb_bit= N. + */ + unsigned int target_tlb_bit0 : 1; + unsigned int target_tlb_bit1 : 1; + unsigned int target_tlb_bit2 : 1; } MemTxAttrs; =20 /* Bus masters which don't specify any attributes will get this, --=20 2.17.2