KVM: MMU: Initialize base_role for tdp mmus
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
@@ -2885,6 +2885,7 @@ static int init_kvm_tdp_mmu(struct kvm_vcpu *vcpu)
|
|||||||
{
|
{
|
||||||
struct kvm_mmu *context = vcpu->arch.walk_mmu;
|
struct kvm_mmu *context = vcpu->arch.walk_mmu;
|
||||||
|
|
||||||
|
context->base_role.word = 0;
|
||||||
context->new_cr3 = nonpaging_new_cr3;
|
context->new_cr3 = nonpaging_new_cr3;
|
||||||
context->page_fault = tdp_page_fault;
|
context->page_fault = tdp_page_fault;
|
||||||
context->free = nonpaging_free;
|
context->free = nonpaging_free;
|
||||||
|
|||||||
Reference in New Issue
Block a user