From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: qemu-kvm: Role of flush_icache_range on PPC Date: Thu, 29 Sep 2011 07:02:35 +1000 Message-ID: <1317243755.29415.99.camel@pasglop> References: <4E832DE3.40503@siemens.com> <5B15DB32-18DF-4637-AD37-4BE652A031E3@suse.de> <4E83330C.2080901@siemens.com> <4E8358FD.6030408@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , Alexander Graf , kvm , qemu-devel Developers , "qemu-ppc@nongnu.org" , David Gibson To: Scott Wood Return-path: Received: from gate.crashing.org ([63.228.1.57]:34850 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751602Ab1I1VDG (ORCPT ); Wed, 28 Sep 2011 17:03:06 -0400 In-Reply-To: <4E8358FD.6030408@freescale.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, 2011-09-28 at 12:27 -0500, Scott Wood wrote: > Why would it need to be synchronous? Even if it's asynchronous emulated > DMA, we don't want it sitting around only in a data cache that > instruction fetches won't snoop. Except that this is exactly what happens on real HW :-) The guest will do the necessary invalidations. DMA doesn't keep the icache coherent on HW, why should it on kvm/qemu ? > It's not implemented yet in mainline for powerpc (we have something > internal that is on the backlog of things to be cleaned up and sent > out), but this is what we'd do for kvm_arch_insert_sw_breakpoint(). Yes, breakpoints do need a flash, as does the initial program load. Cheers, Ben.