From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v3 06/11] ARM: KVM: force cache clean on page fault when caches are off Date: Thu, 6 Feb 2014 10:49:05 +0000 Message-ID: <20140206104904.GC29446@arm.com> References: <1391630151-7875-1-git-send-email-marc.zyngier@arm.com> <1391630151-7875-7-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Christoffer Dall To: Marc Zyngier Return-path: Received: from fw-tnat.austin.arm.com ([217.140.110.23]:53133 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755706AbaBFKtn (ORCPT ); Thu, 6 Feb 2014 05:49:43 -0500 Content-Disposition: inline In-Reply-To: <1391630151-7875-7-git-send-email-marc.zyngier@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Feb 05, 2014 at 07:55:46PM +0000, Marc Zyngier wrote: > In order for a guest with caches disabled to observe data written > contained in a given page, we need to make sure that page is > committed to memory, and not just hanging in the cache (as guest > accesses are completely bypassing the cache until it decides to > enable it). > > For this purpose, hook into the coherent_cache_guest_page > function and flush the region if the guest SCTLR > register doesn't show the MMU and caches as being enabled. > > Signed-off-by: Marc Zyngier > Reviewed-by: Christoffer Dall Reviewed-by: Catalin Marinas