From patchwork Fri Oct 28 13:39:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 619511 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1022192pvb; Fri, 28 Oct 2022 06:41:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7BrZ0jpX+UiuN9Aej0I9rg4cI/LiYKP3+ybEdEPcordByQ+veFC16NiWfgqD1fQCf5R8WT X-Received: by 2002:ac8:5c13:0:b0:39c:ee3e:c686 with SMTP id i19-20020ac85c13000000b0039cee3ec686mr46475678qti.485.1666964470795; Fri, 28 Oct 2022 06:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666964470; cv=none; d=google.com; s=arc-20160816; b=jbmXh0NZ6p2Xw4eOZ0hIgirICanOC8KQscrpgnoYeMtDY7aIllGH2ZNBYlFsGTR0VG Tooho0kSnR72y6pVtE0wkZefbDS5qJvy58m1TEsg9xcjCPRpGvonMZAcXAJouZ2JzgEp gssQYB3xKT1T7TbIsojogBI1cHtO4c3pREoNIfJcKXBcEqmp9YILHVahMFezlqdB08D5 1a0KQKnEucipHwy3ahRlgkv4++MVafebARkOMTkGfq4T0cCMGQ6cAZcpg7bv9vY/7Tr3 nzi/27fYXezo7mVAdcPPedMDHXgqxhqooJXPvnzKemXTHncor6UXb07waigm1HixHIFk Og2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=anZ6XgTCsYFhcjKR6p7zTuJM8BS5HaFnxnQljkHKXPk=; b=FMg8AvMpPNw07tGAiFrHNo4oiKChxYeA2JhRyi6q4VjFIasqPqG0Dv0KSamhYTTzZe Z7MYS7iVGXpu/ZG0jX9MOv+QKEYmO9kVZM8bfYCGfNoswRfK1AdxBMCgrhv0yFirmVW0 e0ypCrni4ExPfxGKlqFxXmiHW/CPvvYpkeoIVkW08JdSRotGeCKJZQaOTh7zS5YBLE4W tnzVZgIbjB0F6+t2IfOFvtbCdLSfx8nrUokV0PSbsDNaL7htARMu1e0oYD9kXn/7Lu0P TTNxICTOLWNVtxjp9w44JgdGsWFIgxmNVMbdi39UMiiECiQQYGOYh2VMsCYXytQnZ4dZ i/Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HdyWnEZ3; 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 de12-20020a05620a370c00b006ee91d6b2a1si805283qkb.619.2022.10.28.06.41.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Oct 2022 06:41:10 -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=HdyWnEZ3; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooPal-0008Jp-QZ; Fri, 28 Oct 2022 09:40:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooPaj-0008GB-88 for qemu-devel@nongnu.org; Fri, 28 Oct 2022 09:40:09 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ooPah-0007qI-Es for qemu-devel@nongnu.org; Fri, 28 Oct 2022 09:40:08 -0400 Received: by mail-wr1-x42d.google.com with SMTP id j15so6662734wrq.3 for ; Fri, 28 Oct 2022 06:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=anZ6XgTCsYFhcjKR6p7zTuJM8BS5HaFnxnQljkHKXPk=; b=HdyWnEZ3nTbUyP5T8MW7Hz8YL1xvmuzNG7CbGGtaVp14CGNTZRxKs+rQvp2mmE0b3V FWidBHxBKKZ/K1ako1oqRR+X+zKQllBmnLU15F8Sgn2AwQmhgV9Wx9N8O5iXK+OeDpd1 OWJlxljpNpQti8FA0JRZQ6bARfvBeutgil9NbNtUjSlAZP4Ao62QG2LxQU6+ko1ibnnh +jYZL8nme9VT9QQ23TopCWK8LFQ01JutF6eU4FzoKXKxXrRU7emMdqOKbwi8InSyWel5 9pYi7aI/lpEK73ON3O3BDgGVEO6X7d85GjDxYILSNgAFj1EfDFpkRZ+Jd7/X2fbdy//Y Fyaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=anZ6XgTCsYFhcjKR6p7zTuJM8BS5HaFnxnQljkHKXPk=; b=s2BD7nDnx/OeFo8zMHJ/7cm1Z8bXfiFAt+7ECSfhiE2T3SpKuBaUFXoaJ2UUxd7Vja mvaRVondNeqOS3+sVMYAY2cu5/WPTvkUDVaNslvyJ+kG83Hebox+PG+hsiQSDvpyts5t WFD5naX6t4uWfuBeZPCW6vyHkXHe4DFotdnBQ0RcbvwD85WaIfKGwwfN2SPR9vkLB4/m CK3IfC6Lgq2KFaXw/dIOls1z1HpkQJm3PtZIBW+UXEGvXp9mDX1s7csj0DrDxZ8bCTgc krekLOkTNN0D0OL1QZ+rCEyIK0yMXfalt3BjbcLze3blAJX5uyyPjb130HGtIhzU8DK5 Q2kA== X-Gm-Message-State: ACrzQf2PdjeNNnD3RZ6lmxr7bJ39yoJfXT4ciODg+l5VZj70Xjde1f/c vRNinGFMzXb6b3Efrp5j/eYP/Q== X-Received: by 2002:a05:6000:504:b0:236:5fe9:883e with SMTP id a4-20020a056000050400b002365fe9883emr21965476wrf.65.1666964405310; Fri, 28 Oct 2022 06:40:05 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id l16-20020a5d4110000000b002365cd93d05sm3572858wrp.102.2022.10.28.06.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Oct 2022 06:40:04 -0700 (PDT) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [PATCH 0/7] target/arm: Implement FEAT_EVT Date: Fri, 28 Oct 2022 14:39:55 +0100 Message-Id: <20221028134002.730598-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x42d.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 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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org The architectural feature FEAT_EVT adds adds five new bits to the HCR_EL2 register: TTLBIS, TTLBOS, TICAB, TOCU and TID4. These allow the guest to enable trapping of various EL1 instructions to EL2. This patch series implements the feature and turns it on for the 'max' CPU. Patch 1 is a bug fix where we forgot one of the existing trap bits when we added the new TLB maintenance operations for FEAT_TLBIOS and FEAT_TLBRANGE. thanks -- PMM Peter Maydell (7): target/arm: Make TLBIOS and TLBIRANGE ops trap on HCR_EL2.TTLB target/arm: Allow relevant HCR bits to be written for FEAT_EVT target/arm: Implement HCR_EL2.TTLBIS traps target/arm: Implement HCR_EL2.TTLBOS traps target/arm: Implement HCR_EL2.TICAB,TOCU traps target/arm: Implement HCR_EL2.TID4 traps target/arm: Report FEAT_EVT for TCG '-cpu max' docs/system/arm/emulation.rst | 1 + target/arm/cpu.h | 30 +++++++ target/arm/cpu64.c | 1 + target/arm/cpu_tcg.c | 1 + target/arm/helper.c | 144 ++++++++++++++++++++++------------ 5 files changed, 126 insertions(+), 51 deletions(-)