Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp806763rdb; Sat, 6 Jan 2024 09:50:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXVqumbqVR9g8eJckOVSYwuQpAXllnAqMDEA7vZOISZwOpKfrt1m1rwbd+SmX0E/dHAjkL X-Received: by 2002:a05:6e02:216b:b0:360:6649:29c2 with SMTP id s11-20020a056e02216b00b00360664929c2mr2238148ilv.0.1704563440755; Sat, 06 Jan 2024 09:50:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704563440; cv=none; d=google.com; s=arc-20160816; b=G6AJFJsUGpVqjDmhqnHxX+Rbj/KZR0fYzfFVxhpCvMYW7jq3/nsvc4PVPB4ZZ4u9BS zggJFqoTBmmhwvXGGve5Mj6cLZfYtAxDLpWtVsoqySdqchDBCM3dPe3tYN6SyVUL4Zx5 IFuZ2BHFYMqnZs69cHMEsir6YCa3sOF7nlHTThMn55aclkLJ6e23t8vWjOqLVaPIFGaq ijKsCuop7BN/Z260nWUs3ISDdq5/KTMh4SZtvsXxcTONMMlah4dYdPRViomIcVRkIvSG lxlCdzCCrf/TxDfOqYWqZT55dhX5j83JTBKwmG6NwLbBuoB8iUTP/qe3oMlNtPrcL1UQ Jslg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:date; bh=yQ9HOtbgql3gNCXw9K/urpYebkD4txIvPdMOuw8HG/0=; fh=0m1H+FbiHtAvRxBvKvG9WqMdlbqM8t2ViyhDS/sd3Xg=; b=LDD+qD2EkV1OYV/ovhiUS1Yi1/hp5yMd7qRyo2F2mOXGp03ZWSwVfQ7clCuDih2ogh kmJ0edqkwLtoMOxUmnWwfgh5YLTZ6BpQb/ZC1pFqNWXK4ie+U3Lj4jN+46TH3VrUZzFk I2hEuC7gftJ/Cug2Glwm8hoEsBLET/JxCVIj0ss+greQtyGipoTKuKCelqRwV8dSz8i2 nYJIaVNjrphXBcRqcvEdYJAwN4s2dCZw9J+zpPrnlFiFw9AkMaffN4aqgp1zuy6sdbIG HH45nMNURh2xc9il85kq9Xh5uaFcIVy6Us/w31VsPVpXhlkD4jIcZG5CLQrcVuNBXur2 +mag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mO0vgzdJ; spf=pass (google.com: domain of linux-kernel+bounces-18683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n18-20020a170902e55200b001d3a2b682b1si3293538plf.199.2024.01.06.09.50.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 09:50:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=mO0vgzdJ; spf=pass (google.com: domain of linux-kernel+bounces-18683-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 680DD282734 for ; Sat, 6 Jan 2024 17:50:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29BF7CA7C; Sat, 6 Jan 2024 17:50:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="mO0vgzdJ" X-Original-To: linux-kernel@vger.kernel.org Received: from out-170.mta0.migadu.com (out-170.mta0.migadu.com [91.218.175.170]) (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 5D7E6C2D9 for ; Sat, 6 Jan 2024 17:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Date: Sat, 6 Jan 2024 17:50:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1704563428; 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=yQ9HOtbgql3gNCXw9K/urpYebkD4txIvPdMOuw8HG/0=; b=mO0vgzdJ4D7GWICW/2dqAj+wRcim04Bd6gHfMcNOfYagypsVB0ptVYq6YatG+sEJW/I4HO sr6dZC9xfviQNV8BfPbb0zbW1McK7A74o2cooXH0S1uGujt9zmByUU36Q1m2FqdtaM4tO3 n4kyeOWnXn8lQ7PT+oK/P2MvAAjAbJg= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Oliver Upton To: Marc Zyngier Cc: Ilkka Koskinen , James Morse , Suzuki K Poulose , Zenghui Yu , Catalin Marinas , Will Deacon , Gavin Shan , Mark Rutland , Raghavendra Rao Ananta , D Scott Phillips , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH] KVM: arm64: Workaround for Ampere AC03_CPU_36 (exception taken to an incorrect EL) Message-ID: References: <20240105213251.4141-1-ilkka@os.amperecomputing.com> <87sf3au0bu.wl-maz@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87sf3au0bu.wl-maz@kernel.org> X-Migadu-Flow: FLOW_OUT On Sat, Jan 06, 2024 at 12:13:09PM +0000, Marc Zyngier wrote: [...] > > From 265cb193190c13c651d8e008d34d1d18505d4804 Mon Sep 17 00:00:00 2001 > > From: Oliver Upton > > Date: Fri, 5 Jan 2024 23:18:14 +0000 > > Subject: [PATCH] KVM: arm64: Mitigate AmpereOne erratum AC03_CPU_36 > > > > The AmpereOne design suffers from an erratum where if an asynchronous > > exception arrives while EL2 is modifying hypervisor exception controls > > (i.e. HCR_EL2, SCTLR_EL2) the PE may take an invalid exception to > > another EL. > > Same questions about SCTLR_EL2 and the notion of "another EL". I've got the same questions :) This is just a rewording of Ampere's erratum description. https://amperecomputing.com/customer-connect/products/AmpereOne-device-documentation > Other than the passing comments, I'm OK with this patch. However, I am > very worried that this is only the start of a very long game of > whack-a-mole, because there is no actual documentation on what goes > wrong. > > For example, we have plenty of writes to SCTLR_EL2 (using the > SCTLR_EL1 alias if running VHE) for MTE. Are any of those affected? > > Short of having some solid handle on what is happening, I don't see > how we can promise to support this system. Completely agree. At least on the AmpereOne machines I have access to this seems to do the trick, but that observation is no replacement for full documentation. -- Thanks, Oliver