Re: [PATCH v3 3/3] arm/arm64: KVM: Use kernel mapping to perform invalidation on page fault

2015-01-29 Thread Christoffer Dall
On Wed, Jan 21, 2015 at 06:39:48PM +, Marc Zyngier wrote: When handling a fault in stage-2, we need to resync I$ and D$, just to be sure we don't leave any old cache line behind. That's very good, except that we do so using the *user* address. Under heavy load (swapping like crazy), we

[PATCH v3 3/3] arm/arm64: KVM: Use kernel mapping to perform invalidation on page fault

2015-01-21 Thread Marc Zyngier
When handling a fault in stage-2, we need to resync I$ and D$, just to be sure we don't leave any old cache line behind. That's very good, except that we do so using the *user* address. Under heavy load (swapping like crazy), we may end up in a situation where the page gets mapped in stage-2