Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-05 Thread Marcelo Tosatti
On Thu, Jul 28, 2011 at 11:36:17AM +0300, Avi Kivity wrote: > Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded. > On SVM, it is not possible to implement this, but on VMX this is possible > and was indeed implemented until nested SVM changed this to unconditionally > read PDPTE

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-04 Thread Roedel, Joerg
On Tue, Aug 02, 2011 at 08:34:32AM -0400, Avi Kivity wrote: > On 08/02/2011 12:31 PM, Roedel, Joerg wrote: > > On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote: > > > On 07/29/2011 02:31 PM, Roedel, Joerg wrote: > > > > On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > > >

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-02 Thread Roedel, Joerg
On Tue, Aug 02, 2011 at 08:34:32AM -0400, Avi Kivity wrote: > On 08/02/2011 12:31 PM, Roedel, Joerg wrote: > > On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote: > > > On 07/29/2011 02:31 PM, Roedel, Joerg wrote: > > > > On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > > >

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-02 Thread Avi Kivity
On 08/02/2011 12:31 PM, Roedel, Joerg wrote: On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote: > On 07/29/2011 02:31 PM, Roedel, Joerg wrote: > > On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > > > Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloade

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-08-02 Thread Roedel, Joerg
On Sun, Jul 31, 2011 at 04:08:44AM -0400, Avi Kivity wrote: > On 07/29/2011 02:31 PM, Roedel, Joerg wrote: > > On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > > > Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded. > > > On SVM, it is not possible to implement thi

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-07-31 Thread Avi Kivity
On 07/29/2011 02:31 PM, Roedel, Joerg wrote: On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded. > On SVM, it is not possible to implement this, but on VMX this is possible > and was indeed implemented until neste

Re: [PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-07-29 Thread Roedel, Joerg
On Thu, Jul 28, 2011 at 04:36:17AM -0400, Avi Kivity wrote: > Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded. > On SVM, it is not possible to implement this, but on VMX this is possible > and was indeed implemented until nested SVM changed this to unconditionally > read PDPTE

[PATCH] KVM: MMU: Do not unconditionally read PDPTE from guest memory

2011-07-28 Thread Avi Kivity
Architecturally, PDPTEs are cached in the PDPTRs when CR3 is reloaded. On SVM, it is not possible to implement this, but on VMX this is possible and was indeed implemented until nested SVM changed this to unconditionally read PDPTEs dynamically. This has noticable impact when running PAE guests.