lkml.org 
[lkml]   [2010]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/22] KVM: MMU: Make tdp_enabled a mmu-context parameter
On 04/27/2010 01:38 PM, Joerg Roedel wrote:
> This patch changes the tdp_enabled flag from its global
> meaning to the mmu-context and renames it to direct_map
> there. This is necessary for Nested SVM with emulation of
> Nested Paging where we need an extra MMU context to shadow
> the Nested Nested Page Table.
>
> @@ -2423,6 +2424,7 @@ static int init_kvm_softmmu(struct kvm_vcpu *vcpu)
> r = paging32_init_context(vcpu);
>
> vcpu->arch.mmu.base_role.cr4_pae = !!is_pae(vcpu);
> + vcpu->arch.mmu.direct_map = false;
>
> return r;
> }
>

We could also set direct_map = true for real mode, would probably
simplify some later logic (can be cleaned up later, no need to update now).

--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2010-04-27 14:09    [W:0.251 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site