On 10/04/2011 12:55 AM, Stefan Weil wrote: > Am 03.10.2011 23:40, schrieb Scott Wood: >> The interface isn't powerpc-specific. It just happens to be the only >> arch so far that qemu supports that needs the implementation to do >> something (or possibly just the only one where that need has been >> discovered). >> >> What problem is it causing the way it is? > > My patch was triggered by this discussion thread and a remark from > Peter Maydell: > > http://lists.nongnu.org/archive/html/qemu-devel/2011-09/msg02272.html > > The only problem is that ppc differs from all other hosts: > > * No other host needs qemu_cache_utils_init() today. > > * All other hosts define flush_icache_range() in tcg-target.h. > > * All other hosts only call flush_icache_range() from tcg code. > > I learned now that ppc will need flush_icache_range() for kvm, too. > So it won't be possible to implement a uniform handling of > flush_icache_range() for all host architectures.
This doesn't smell right... why would other arches need it for TCG, but not KVM? Either you need to flush when writing code to memory, or you don't. Is it just that KVM isn't implemented yet on those architectures? -Scott