Re: [Android-virt] [PATCH v5 08/13] ARM: KVM: Handle guest faults in KVM

2011-12-13 Thread Christoffer Dall
On Tue, Dec 13, 2011 at 4:45 AM, Avi Kivity a...@redhat.com wrote: On 12/12/2011 09:53 PM, Christoffer Dall wrote: A bigger problem is that you pin all memory; what are the plans wrt mmu notifiers? hmm, I have no plans (yet). I haven't looked into neither MMU shrinker nor MMU notifier.

Re: [Android-virt] [PATCH v5 08/13] ARM: KVM: Handle guest faults in KVM

2011-12-13 Thread Marc Zyngier
On 13/12/11 13:10, Christoffer Dall wrote: On Tue, Dec 13, 2011 at 4:45 AM, Avi Kivity a...@redhat.com wrote: On 12/12/2011 09:53 PM, Christoffer Dall wrote: - as far as I know it's not common to have swap space on ARM architectures, but I could be wrong. It will become common once you

Re: [Android-virt] [PATCH v5 08/13] ARM: KVM: Handle guest faults in KVM

2011-12-13 Thread Avi Kivity
On 12/13/2011 03:10 PM, Christoffer Dall wrote: the question is just which mappings are the most efficient to reclaim. Do you have accessed bits in those PTEs? nope. We can protect the underlying target pages though, but... Yeah, we have the same issue with one of the vendors.

Re: [Android-virt] [PATCH v5 08/13] ARM: KVM: Handle guest faults in KVM

2011-12-13 Thread Christoffer Dall
On Tue, Dec 13, 2011 at 8:23 AM, Avi Kivity a...@redhat.com wrote: On 12/13/2011 03:10 PM, Christoffer Dall wrote: the question is just which mappings are the most efficient to reclaim. Do you have accessed bits in those PTEs? nope. We can protect the underlying target pages though,

Re: [Android-virt] [PATCH v5 08/13] ARM: KVM: Handle guest faults in KVM

2011-12-13 Thread Avi Kivity
On 12/13/2011 03:44 PM, Christoffer Dall wrote: It's not really critical to have efficient reclaim here, since it happens so rarely. It just needs to do something. when would you trigger it - when it reaches a certain limit, or? And then what, free the lot and re-allocate what's