From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v2] efi: introduce efi_arch_flush_dcache_area Date: Tue, 8 Sep 2015 11:50:56 +0100 Message-ID: <1441709456.24450.60.camel@citrix.com> References: <1441708697-578-1-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZZGUO-0008Jm-UF for xen-devel@lists.xenproject.org; Tue, 08 Sep 2015 10:51:01 +0000 In-Reply-To: <1441708697-578-1-git-send-email-stefano.stabellini@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini , xen-devel@lists.xenproject.org Cc: Mark Rutland , wei.liu2@citrix.com, JBeulich@suse.com List-Id: xen-devel@lists.xenproject.org On Tue, 2015-09-08 at 11:38 +0100, Stefano Stabellini wrote: > Objects loaded by FileHandle->Read need to be flushed from dcache, > otherwise copy_from_paddr will read stale data when copying the kernel, > causing a failure to boot. > > Introduce efi_arch_flush_dcache_area and call it from read_file. > > This commit introduces no functional changes on x86. > > Reported-by: Mark Rutland > Signed-off-by: Stefano Stabellini > Release-acked-by: Wei Liu > CC: Mark Rutland > CC: ian.campbell@citrix.com > CC: JBeulich@suse.com > Acked-by: Ian Campbell