summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-12-21 16:26:01 +0200
committerAvi Kivity <avi@redhat.com>2011-01-12 11:31:11 +0200
commitc445f8ef43bd9d2fb28213920d9b21f2465d22df (patch)
treeb55e7dfb45ea596ce94301d156f64d8b3cfec65a /arch/x86/kvm
parent110312c84b5fbd4daf5de2417fa8ab5ec883858d (diff)
downloadlinux-stable-c445f8ef43bd9d2fb28213920d9b21f2465d22df.tar.gz
linux-stable-c445f8ef43bd9d2fb28213920d9b21f2465d22df.tar.bz2
linux-stable-c445f8ef43bd9d2fb28213920d9b21f2465d22df.zip
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/kvm')
-rw-r--r--arch/x86/kvm/mmu.c1
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)
{
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;