Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-13 Thread Christoffer Dall
On Tue, Dec 13, 2011 at 12:10 PM, Antonios Motakis wrote: > On 12/12/2011 04:49 PM, Avi Kivity wrote: >> On 12/12/2011 05:25 PM, Peter Maydell wrote: >>> On 12 December 2011 15:15, Avi Kivity  wrote: We need to differentiate in how Linux-as-a-guest acts and how the cpu is supposed to wor

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-13 Thread Antonios Motakis
On 12/12/2011 04:49 PM, Avi Kivity wrote: On 12/12/2011 05:25 PM, Peter Maydell wrote: On 12 December 2011 15:15, Avi Kivity wrote: We need to differentiate in how Linux-as-a-guest acts and how the cpu is supposed to work. A guest operating system can theoretically assign the ASID x to proces

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-12 Thread Christoffer Dall
On Mon, Dec 12, 2011 at 10:49 AM, Avi Kivity wrote: > On 12/12/2011 05:25 PM, Peter Maydell wrote: >> On 12 December 2011 15:15, Avi Kivity wrote: >> > We need to differentiate in how Linux-as-a-guest acts and how the cpu is >> > supposed to work.  A guest operating system can theoretically assig

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-12 Thread Avi Kivity
On 12/12/2011 05:25 PM, Peter Maydell wrote: > On 12 December 2011 15:15, Avi Kivity wrote: > > We need to differentiate in how Linux-as-a-guest acts and how the cpu is > > supposed to work. A guest operating system can theoretically assign the > > ASID x to process A running on vcpu 0, and the s

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-12 Thread Peter Maydell
On 12 December 2011 15:15, Avi Kivity wrote: > We need to differentiate in how Linux-as-a-guest acts and how the cpu is > supposed to work.  A guest operating system can theoretically assign the > ASID x to process A running on vcpu 0, and the same ASID x to process B > running on vcpu 1 That wou

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-12 Thread Avi Kivity
On 12/12/2011 05:09 PM, Christoffer Dall wrote: > On Mon, Dec 12, 2011 at 9:40 AM, Avi Kivity wrote: > > On 12/11/2011 12:24 PM, Christoffer Dall wrote: > >> This commit introduces the framework for guest memory management > >> through the use of 2nd stage translation. Each VM has a pointer > >> t

Re: [Android-virt] [PATCH v5 04/13] ARM: KVM: Memory virtualization setup

2011-12-12 Thread Christoffer Dall
On Mon, Dec 12, 2011 at 9:40 AM, Avi Kivity wrote: > On 12/11/2011 12:24 PM, Christoffer Dall wrote: >> This commit introduces the framework for guest memory management >> through the use of 2nd stage translation. Each VM has a pointer >> to a level-1 tabled (the pgd field in struct kvm_arch) whic