Re: [PATCH v3 2/3] arm/arm64: KVM: Invalidate data cache on unmap

2015-01-29 Thread Christoffer Dall
On Wed, Jan 21, 2015 at 06:39:47PM +, Marc Zyngier wrote: > Let's assume a guest has created an uncached mapping, and written > to that page. Let's also assume that the host uses a cache-coherent > IO subsystem. Let's finally assume that the host is under memory > pressure and starts to swap th

[PATCH v3 2/3] arm/arm64: KVM: Invalidate data cache on unmap

2015-01-21 Thread Marc Zyngier
Let's assume a guest has created an uncached mapping, and written to that page. Let's also assume that the host uses a cache-coherent IO subsystem. Let's finally assume that the host is under memory pressure and starts to swap things out. Before this "uncached" page is evicted, we need to make sur