Re: [PATCH v2 04/10] arm64: KVM: flush VM pages before letting the guest enable caches

2014-01-29 Thread Christoffer Dall
On Wed, Jan 22, 2014 at 02:56:36PM +, Marc Zyngier wrote: When the guest runs with caches disabled (like in an early boot sequence, for example), all the writes are diectly going to RAM, bypassing the caches altogether. Once the MMU and caches are enabled, whatever sits in the cache

[PATCH v2 04/10] arm64: KVM: flush VM pages before letting the guest enable caches

2014-01-22 Thread Marc Zyngier
When the guest runs with caches disabled (like in an early boot sequence, for example), all the writes are diectly going to RAM, bypassing the caches altogether. Once the MMU and caches are enabled, whatever sits in the cache becomes suddently visible, which isn't what the guest expects. A way