diff options
author | Avi Kivity <avi@redhat.com> | 2010-12-21 09:26:01 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-01-12 04:31:11 -0500 |
commit | c445f8ef43bd9d2fb28213920d9b21f2465d22df (patch) | |
tree | b55e7dfb45ea596ce94301d156f64d8b3cfec65a /arch/x86 | |
parent | 110312c84b5fbd4daf5de2417fa8ab5ec883858d (diff) |
KVM: MMU: Initialize base_role for tdp mmus
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/mmu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index ea6063d9242e..b77a5ba398be 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -2885,6 +2885,7 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu) | |||
2885 | { | 2885 | { |
2886 | struct kvm_mmu *context = vcpu->arch.walk_mmu; | 2886 | struct kvm_mmu *context = vcpu->arch.walk_mmu; |
2887 | 2887 | ||
2888 | context->base_role.word = 0; | ||
2888 | context->new_cr3 = nonpaging_new_cr3; | 2889 | context->new_cr3 = nonpaging_new_cr3; |
2889 | context->page_fault = tdp_page_fault; | 2890 | context->page_fault = tdp_page_fault; |
2890 | context->free = nonpaging_free; | 2891 | context->free = nonpaging_free; |