On 2013-08-14 16:41, Peter Maydell wrote:
On 14 August 2013 16:34, Marc Zyngier maz@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.
Good point, and not quite sure just yet. Probably we get a zeroed, clean page?
Anup, can you elaborate on how your L3 cache behaves?
Thanks,
M.