Re: [PATCH] KVM: MMU: Disassociate direct maps from guest levels

2010-03-23 Thread Avi Kivity
On 03/17/2010 08:16 PM, Marcelo Tosatti wrote: On Sun, Mar 14, 2010 at 10:22:52AM +0200, Avi Kivity wrote: Direct maps are linear translations for a section of memory, used for real mode or with large pages. As such, they are independent of the guest levels. Teach the mmu about this by

Re: [PATCH] KVM: MMU: Disassociate direct maps from guest levels

2010-03-23 Thread Avi Kivity
On 03/23/2010 12:51 PM, Avi Kivity wrote: On 03/17/2010 08:16 PM, Marcelo Tosatti wrote: On Sun, Mar 14, 2010 at 10:22:52AM +0200, Avi Kivity wrote: Direct maps are linear translations for a section of memory, used for real mode or with large pages. As such, they are independent of the guest

Re: [PATCH] KVM: MMU: Disassociate direct maps from guest levels

2010-03-23 Thread Marcelo Tosatti
On Tue, Mar 23, 2010 at 01:02:35PM +0200, Avi Kivity wrote: On 03/23/2010 12:51 PM, Avi Kivity wrote: On 03/17/2010 08:16 PM, Marcelo Tosatti wrote: On Sun, Mar 14, 2010 at 10:22:52AM +0200, Avi Kivity wrote: Direct maps are linear translations for a section of memory, used for real mode or

Re: [PATCH] KVM: MMU: Disassociate direct maps from guest levels

2010-03-17 Thread Marcelo Tosatti
On Sun, Mar 14, 2010 at 10:22:52AM +0200, Avi Kivity wrote: Direct maps are linear translations for a section of memory, used for real mode or with large pages. As such, they are independent of the guest levels. Teach the mmu about this by making page-role.glevels = 0 for direct maps. This

[PATCH] KVM: MMU: Disassociate direct maps from guest levels

2010-03-14 Thread Avi Kivity
Direct maps are linear translations for a section of memory, used for real mode or with large pages. As such, they are independent of the guest levels. Teach the mmu about this by making page-role.glevels = 0 for direct maps. This allows direct maps to be shared among real mode and the various