Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CD57568C for ; Mon, 24 Jul 2023 13:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1690206412; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6xn9gPQjRRb0V1QRm23HnyLiUiGqmHFZ2cvUJktxsWk=; b=adNxMYI5mThzWxqK8oQvYCp8lq5VmIqAKadMPzKGnOCDMSaB5JJlEMJH2u3D4Kt5pftnNE 8pV7qatEmXNJ5nqBS0nWBax6auu8633utgkcEsKLe5FXxRqg6svttxiMO7B7CB+wsL9MZV e73BosVa7Ampw+bDl7qNgDQhw1x+CMI= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-261-c_zMYn73Od-2CVB-8-ocSw-1; Mon, 24 Jul 2023 09:46:51 -0400 X-MC-Unique: c_zMYn73Od-2CVB-8-ocSw-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-63cfe1c2d35so9812416d6.0 for ; Mon, 24 Jul 2023 06:46:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690206411; x=1690811211; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:reply-to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6xn9gPQjRRb0V1QRm23HnyLiUiGqmHFZ2cvUJktxsWk=; b=iV8OjitDIJaROuDOz8bc6REH0QfjqDoag58dsKSzzahV1J59342tn27/VkUMeiBSrO 9IKUFlDoCpRkngAPRt2kd3o9Cf4WPyOLtghcNbfBtFRCzW+rhh+Ulom9CLOx2Jgh29Hp soFH4Yn+gzdniKygftsMJcunRENueGUtD5NGcMqzojeGFJBdi88BxkCpoJC+Js6q8CGq 7zHveaYA308M6tucXLiclTu4qiRX0cVAWNpCpyuy86CSZoMem5lcBcUGEd9h/melyYxj toEywA0POGZjPZPixgUZgMKcN32n1D/jJGZ+C92+5kQOBQQ0T4g249kNbNxmrtkNXVUz 7NnQ== X-Gm-Message-State: ABy/qLZdVXMqGSDE51HPcnCGLgHHoNvr1vxAkWxjZZKBx82aSIZ1azwT wKsSFaCviniwKoe4sMkTrCc/RSB10lmGV03bbU+uK9VojHKOuYp4+IchST7kHPO1LNPsW/T4swj SVgEJ837jaagO+6Fo X-Received: by 2002:a0c:f4cf:0:b0:630:21a6:bb44 with SMTP id o15-20020a0cf4cf000000b0063021a6bb44mr7270324qvm.56.1690206411079; Mon, 24 Jul 2023 06:46:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlG26No1QqlAVxxmnZeRTHRWyhZarVbTKQTqaWhvG6qsLSi8NvGKBb2EOxzJM6QcQZEwT16xWw== X-Received: by 2002:a0c:f4cf:0:b0:630:21a6:bb44 with SMTP id o15-20020a0cf4cf000000b0063021a6bb44mr7270310qvm.56.1690206410831; Mon, 24 Jul 2023 06:46:50 -0700 (PDT) Received: from ?IPV6:2a01:e0a:368:50e0:e390:42c6:ce16:9d04? ([2a01:e0a:368:50e0:e390:42c6:ce16:9d04]) by smtp.gmail.com with ESMTPSA id n13-20020a0ce54d000000b00637873ff0f3sm3595004qvm.15.2023.07.24.06.46.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jul 2023 06:46:50 -0700 (PDT) Message-ID: <236a8b03-673e-b242-88c3-4a97fbaf937a@redhat.com> Date: Mon, 24 Jul 2023 15:46:43 +0200 Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Reply-To: eric.auger@redhat.com Subject: Re: [PATCH 07/27] arm64: Add missing BRB/CFP/DVP/CPP instructions To: Marc Zyngier , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Catalin Marinas , Mark Brown , Mark Rutland , Will Deacon , Alexandru Elisei , Andre Przywara , Chase Conklin , Ganapatrao Kulkarni , Darren Hart , Miguel Luis , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu References: <20230712145810.3864793-1-maz@kernel.org> <20230712145810.3864793-8-maz@kernel.org> From: Eric Auger In-Reply-To: <20230712145810.3864793-8-maz@kernel.org> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Marc, On 7/12/23 16:57, Marc Zyngier wrote: > HFGITR_EL2 traps a bunch of instructions for which we don't have > encodings yet. Add them. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/include/asm/sysreg.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/arm64/include/asm/sysreg.h b/arch/arm64/include/asm/sysreg.h > index 9dfd127be55a..e2357529c633 100644 > --- a/arch/arm64/include/asm/sysreg.h > +++ b/arch/arm64/include/asm/sysreg.h > @@ -737,6 +737,13 @@ > #define OP_TLBI_VALE2NXS sys_insn(1, 4, 9, 7, 5) > #define OP_TLBI_VMALLS12E1NXS sys_insn(1, 4, 9, 7, 6) > > +/* Misc instructions */ > +#define OP_BRB_IALL sys_insn(1, 1, 7, 2, 4) > +#define OP_BRB_INJ sys_insn(1, 1, 7, 2, 5) > +#define OP_CFP_RCTX sys_insn(1, 3, 7, 3, 4) > +#define OP_DVP_RCTX sys_insn(1, 3, 7, 3, 5) > +#define OP_CPP_RCTX sys_insn(1, 3, 7, 3, 7) > + > /* Common SCTLR_ELx flags. */ > #define SCTLR_ELx_ENTP2 (BIT(60)) > #define SCTLR_ELx_DSSBS (BIT(44)) Reviewed-by: Eric Auger Thanks Eric