From: Alexander Graf Subject: Re: [PATCH v3 7/9] KVM: arm/arm64: Only clean the dcache on translation fault Date: Tue, 21 Aug 2018 15:35:14 +0200 Message-ID: References: <20171023161122.15291-1-marc.zyngier@arm.com> <20171023161122.15291-8-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu To: Marc Zyngier , Christoffer Dall , Catalin Marinas , Will Deacon Return-path: In-Reply-To: <20171023161122.15291-8-marc.zyngier@arm.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kvmarm-bounces@lists.cs.columbia.edu Sender: kvmarm-bounces@lists.cs.columbia.edu List-Id: kvm.vger.kernel.org On 10/23/2017 06:11 PM, Marc Zyngier wrote: > The only case where we actually need to perform a dcache maintenance > is when we map the page for the first time, and subsequent permission > faults do not require cache maintenance. Let's make it conditional > on not being a permission fault (and thus a translation fault). > > Reviewed-by: Christoffer Dall > Signed-off-by: Marc Zyngier This patch unfortunately breaks something on Hi1616 SoCs when running 32bit guests. With this patch applied (and thus with 4.18) I get random illegal instruction warnings from 32bit code inside VMs. I do not know at this point whether this affects other CPUs as well. If anyone is interested in a reproducer, I have something handy. But for now I believe we should just revert this patch. Alex