Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c445f8ef authored by Avi Kivity's avatar Avi Kivity
Browse files

KVM: MMU: Initialize base_role for tdp mmus



Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 110312c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;