From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter.maydell@linaro.org (Peter Maydell) Date: Wed, 14 Aug 2013 16:41:12 +0100 Subject: [PATCH] ARM64: KVM: Fix coherent_icache_guest_page() for host with external L3-cache. In-Reply-To: <19553bad1c8427526f6e9a87d605ade3@www.loen.fr> References: <1376480832-18705-1-git-send-email-pranavkumar@linaro.org> <38A6DD0E-5639-43BB-8318-32D59923E309@suse.de> <19553bad1c8427526f6e9a87d605ade3@www.loen.fr> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 14 August 2013 16:34, Marc Zyngier wrote: > When userspace loads the kernel into memory, the kernel is not flushed > to RAM, and may sit in the L3 cache if the cache is big enough. You > end-up executing garbage... My proposed fix is to let kvmtool do the > flushing, as we have userspace cache management operations for this > exact purpose. Why does this issue only apply to the loaded kernel and not to the zero bytes in the rest of RAM? I know executing zeroes isn't a very useful thing to do but it should be a well defined thing. -- PMM