Re: [PATCH 2/2] KVM: Make CR4 reloads also reload CR3 if paging is enabled

2009-05-25 Thread Avi Kivity
Marcelo Tosatti wrote: On Mon, May 25, 2009 at 11:47:24AM +0300, Avi Kivity wrote: The processor is documented to reload the PDPTRs while in PAE mode if any of the CR4 bits PSE, PGE, or PAE change. Linux relies on this behaviour when zapping the low mappings of PAE kernels during boot. The

Re: [PATCH 2/2] KVM: Make CR4 reloads also reload CR3 if paging is enabled

2009-05-25 Thread Marcelo Tosatti
On Mon, May 25, 2009 at 11:47:24AM +0300, Avi Kivity wrote: > The processor is documented to reload the PDPTRs while in PAE mode if any > of the CR4 bits PSE, PGE, or PAE change. Linux relies on this > behaviour when zapping the low mappings of PAE kernels during boot. > > The code already handle

[PATCH 2/2] KVM: Make CR4 reloads also reload CR3 if paging is enabled

2009-05-25 Thread Avi Kivity
The processor is documented to reload the PDPTRs while in PAE mode if any of the CR4 bits PSE, PGE, or PAE change. Linux relies on this behaviour when zapping the low mappings of PAE kernels during boot. The code already handled changes to CR4.PAE; augment it to also notice changes to PSE and PGE