Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-06-18 Thread Gleb Natapov
On Tue, Jun 18, 2013 at 08:51:25PM +0800, Xiao Guangrong wrote: > On 06/18/2013 06:57 PM, Gleb Natapov wrote: > > On Mon, Jun 17, 2013 at 08:11:03PM +0800, Xiao Guangrong wrote: > >> On 06/11/2013 07:32 PM, Gleb Natapov wrote: > >>> On Tue, May 21, 2013 at 03:52:12PM +0800, Xiao Guangrong wrote: >

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-06-18 Thread Xiao Guangrong
On 06/18/2013 06:57 PM, Gleb Natapov wrote: > On Mon, Jun 17, 2013 at 08:11:03PM +0800, Xiao Guangrong wrote: >> On 06/11/2013 07:32 PM, Gleb Natapov wrote: >>> On Tue, May 21, 2013 at 03:52:12PM +0800, Xiao Guangrong wrote: On 05/19/2013 12:52 PM, Jun Nakajima wrote: > From: Nadav Har'El

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-06-18 Thread Gleb Natapov
On Mon, Jun 17, 2013 at 08:11:03PM +0800, Xiao Guangrong wrote: > On 06/11/2013 07:32 PM, Gleb Natapov wrote: > > On Tue, May 21, 2013 at 03:52:12PM +0800, Xiao Guangrong wrote: > >> On 05/19/2013 12:52 PM, Jun Nakajima wrote: > >>> From: Nadav Har'El > >>> > >>> This is the first patch in a serie

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-06-17 Thread Xiao Guangrong
On 06/11/2013 07:32 PM, Gleb Natapov wrote: > On Tue, May 21, 2013 at 03:52:12PM +0800, Xiao Guangrong wrote: >> On 05/19/2013 12:52 PM, Jun Nakajima wrote: >>> From: Nadav Har'El >>> >>> This is the first patch in a series which adds nested EPT support to KVM's >>> nested VMX. Nested EPT means em

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-06-11 Thread Gleb Natapov
On Tue, May 21, 2013 at 03:52:12PM +0800, Xiao Guangrong wrote: > On 05/19/2013 12:52 PM, Jun Nakajima wrote: > > From: Nadav Har'El > > > > This is the first patch in a series which adds nested EPT support to KVM's > > nested VMX. Nested EPT means emulating EPT for an L1 guest so that L1 can >

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Gleb Natapov
On Tue, May 21, 2013 at 03:26:18PM -0700, Nakajima, Jun wrote: > On Tue, May 21, 2013 at 4:05 AM, Xiao Guangrong > wrote: > > On 05/21/2013 05:01 PM, Gleb Natapov wrote: > >> On Tue, May 21, 2013 at 04:30:13PM +0800, Xiao Guangrong wrote: > > @@ -772,6 +810,7 @@ static gpa_t FNAME(gva_to_gpa_n

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Xiao Guangrong
On 05/22/2013 06:26 AM, Nakajima, Jun wrote: > On Tue, May 21, 2013 at 4:05 AM, Xiao Guangrong > wrote: >> On 05/21/2013 05:01 PM, Gleb Natapov wrote: >>> On Tue, May 21, 2013 at 04:30:13PM +0800, Xiao Guangrong wrote: >> @@ -772,6 +810,7 @@ static gpa_t FNAME(gva_to_gpa_nested)(struct >>

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Nakajima, Jun
On Tue, May 21, 2013 at 4:05 AM, Xiao Guangrong wrote: > On 05/21/2013 05:01 PM, Gleb Natapov wrote: >> On Tue, May 21, 2013 at 04:30:13PM +0800, Xiao Guangrong wrote: > @@ -772,6 +810,7 @@ static gpa_t FNAME(gva_to_gpa_nested)(struct kvm_vcpu > *vcpu, gva_t vaddr, > >return g

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Xiao Guangrong
On 05/21/2013 05:01 PM, Gleb Natapov wrote: > On Tue, May 21, 2013 at 04:30:13PM +0800, Xiao Guangrong wrote: @@ -772,6 +810,7 @@ static gpa_t FNAME(gva_to_gpa_nested)(struct kvm_vcpu *vcpu, gva_t vaddr, return gpa; } +#endif >>> >>> Strange! >>> >>> Why does nest

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Gleb Natapov
On Tue, May 21, 2013 at 04:30:13PM +0800, Xiao Guangrong wrote: > >> @@ -772,6 +810,7 @@ static gpa_t FNAME(gva_to_gpa_nested)(struct kvm_vcpu > >> *vcpu, gva_t vaddr, > >> > >>return gpa; > >> } > >> +#endif > > > > Strange! > > > > Why does nested ept not need these functions? How to emul

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Xiao Guangrong
On 05/21/2013 03:52 PM, Xiao Guangrong wrote: > On 05/19/2013 12:52 PM, Jun Nakajima wrote: >> From: Nadav Har'El >> >> This is the first patch in a series which adds nested EPT support to KVM's >> nested VMX. Nested EPT means emulating EPT for an L1 guest so that L1 can use >> EPT when running a

Re: [PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-21 Thread Xiao Guangrong
On 05/19/2013 12:52 PM, Jun Nakajima wrote: > From: Nadav Har'El > > This is the first patch in a series which adds nested EPT support to KVM's > nested VMX. Nested EPT means emulating EPT for an L1 guest so that L1 can use > EPT when running a nested guest L2. When L1 uses EPT, it allows the L2

[PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-18 Thread Jun Nakajima
From: Nadav Har'El This is the first patch in a series which adds nested EPT support to KVM's nested VMX. Nested EPT means emulating EPT for an L1 guest so that L1 can use EPT when running a nested guest L2. When L1 uses EPT, it allows the L2 guest to set its own cr3 and take its own page faults

[PATCH v3 03/13] nEPT: Add EPT tables support to paging_tmpl.h

2013-05-08 Thread Jun Nakajima
This is the first patch in a series which adds nested EPT support to KVM's nested VMX. Nested EPT means emulating EPT for an L1 guest so that L1 can use EPT when running a nested guest L2. When L1 uses EPT, it allows the L2 guest to set its own cr3 and take its own page faults without either of L0