[PATCH] ARM64: KVM: Fix coherent_icache_guest_page() for host with external L3-cache.

Peter Maydell peter.maydell at linaro.org
Wed Aug 14 11:41:12 EDT 2013


On 14 August 2013 16:34, Marc Zyngier <maz at misterjones.org> 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



More information about the linux-arm-kernel mailing list