Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-20 Thread Christoffer Dall
On Tue, Jun 19, 2012 at 6:41 AM, Andrea Arcangeli aarca...@redhat.com wrote: On Tue, Jun 19, 2012 at 12:32:06PM +0300, Avi Kivity wrote: On 06/19/2012 01:20 AM, Christoffer Dall wrote: On Mon, Jun 18, 2012 at 9:45 AM, Avi Kivity a...@redhat.com wrote: On 06/15/2012 10:09 PM, Christoffer Dall

Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-20 Thread Andrea Arcangeli
On Wed, Jun 20, 2012 at 11:13:36AM -0400, Christoffer Dall wrote: ah, we don't do things right, we use gfn_to_pfn() flat out and will always break the COW :) I guess now, when change_pte is a nop, it's outright incorrect if anyone runs KSM. This has just been added to my todo-list.

Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-19 Thread Avi Kivity
On 06/19/2012 01:20 AM, Christoffer Dall wrote: On Mon, Jun 18, 2012 at 9:45 AM, Avi Kivity a...@redhat.com wrote: On 06/15/2012 10:09 PM, Christoffer Dall wrote: From: Christoffer Dall cd...@cs.columbia.edu Handles the guest faults in KVM by mapping in corresponding user pages in the 2nd

Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-19 Thread Andrea Arcangeli
On Tue, Jun 19, 2012 at 12:32:06PM +0300, Avi Kivity wrote: On 06/19/2012 01:20 AM, Christoffer Dall wrote: On Mon, Jun 18, 2012 at 9:45 AM, Avi Kivity a...@redhat.com wrote: On 06/15/2012 10:09 PM, Christoffer Dall wrote: From: Christoffer Dall cd...@cs.columbia.edu Handles the guest

Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-18 Thread Avi Kivity
On 06/15/2012 10:09 PM, Christoffer Dall wrote: From: Christoffer Dall cd...@cs.columbia.edu Handles the guest faults in KVM by mapping in corresponding user pages in the 2nd stage page tables. Introduces new ARM-specific kernel memory types, PAGE_KVM_GUEST and pgprot_guest variables used

Re: [PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-18 Thread Christoffer Dall
On Mon, Jun 18, 2012 at 9:45 AM, Avi Kivity a...@redhat.com wrote: On 06/15/2012 10:09 PM, Christoffer Dall wrote: From: Christoffer Dall cd...@cs.columbia.edu Handles the guest faults in KVM by mapping in corresponding user pages in the 2nd stage page tables. Introduces new ARM-specific

[PATCH v8 13/15] ARM: KVM: Handle guest faults in KVM

2012-06-15 Thread Christoffer Dall
From: Christoffer Dall cd...@cs.columbia.edu Handles the guest faults in KVM by mapping in corresponding user pages in the 2nd stage page tables. Introduces new ARM-specific kernel memory types, PAGE_KVM_GUEST and pgprot_guest variables used to map 2nd stage memory for KVM guests. Leverages MMU