From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B7B6C77B7F for ; Wed, 17 May 2023 10:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230189AbjEQKZH (ORCPT ); Wed, 17 May 2023 06:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjEQKZG (ORCPT ); Wed, 17 May 2023 06:25:06 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7270C3C1E for ; Wed, 17 May 2023 03:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684319066; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6kCDd/wHVYniWnWaYfQFj8W3J0td+4UsnrwjwgtLZpc=; b=ZGdx04oMk8oCJRfIGMrrLvnT05FBuGDtmEzB+rB9Wgi75uxprbaMN0rqG74XN2lPNkZUmB fO10afrayz8wQA2CSDw6qy/HGLnb8DLPYMlIenjzmmAu0ftaEnbvk/IEKQ27ZH/iHj2Sda SFqj3gOjRwWop3zhVX/LU2H0ZYg1OEo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-399-lMgLT-zQMsGLAlrxWEDyQQ-1; Wed, 17 May 2023 06:24:21 -0400 X-MC-Unique: lMgLT-zQMsGLAlrxWEDyQQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 890AB101A54F; Wed, 17 May 2023 10:24:20 +0000 (UTC) Received: from localhost (dhcp-192-239.str.redhat.com [10.33.192.239]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5101E1121314; Wed, 17 May 2023 10:24:20 +0000 (UTC) From: Cornelia Huck To: Marc Zyngier , James Morse , Suzuki K Poulose , Oliver Upton , Zenghui Yu Cc: Catalin Marinas , steven.price@arm.com, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org Subject: Re: [PATCH 2/2] KVM: arm64: Handle trap of tagged Set/Way CMOs In-Reply-To: <20230515204601.1270428-3-maz@kernel.org> Organization: Red Hat GmbH References: <20230515204601.1270428-1-maz@kernel.org> <20230515204601.1270428-3-maz@kernel.org> User-Agent: Notmuch/0.37 (https://notmuchmail.org) Date: Wed, 17 May 2023 12:24:19 +0200 Message-ID: <87ttwb45nw.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Mon, May 15 2023, Marc Zyngier wrote: > We appear to have missed the Set/Way CMOs when adding MTE support. > Not that we really expect anyone to use them, but you never know > what stupidity some people can come up with... > > Treat these mostly like we deal with the classic S/W CMOs, only > with an additional check that MTE really is enabled. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/kvm/sys_regs.c | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) Reviewed-by: Cornelia Huck