KVM: MMU: Initialize base_role for tdp mmus
authorAvi Kivity <avi@redhat.com>
Tue, 21 Dec 2010 14:26:01 +0000 (16:26 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:31:11 +0000 (11:31 +0200)
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c

index ea6063d9242ea09fd767ac540193e9ed324ce034..b77a5ba398be63fe3943738fcac635650a03cfbf 100644 (file)
@@ -2885,6 +2885,7 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
 {
        struct kvm_mmu *context = vcpu->arch.walk_mmu;
 
+       context->base_role.word = 0;
        context->new_cr3 = nonpaging_new_cr3;
        context->page_fault = tdp_page_fault;
        context->free = nonpaging_free;