Re: [PATCH v2 10/20] kvm: x86/mmu: Add TDP MMU PF handler

2020-10-16 Thread Paolo Bonzini
On 14/10/20 20:26, Ben Gardon wrote: > + if (is_tdp_mmu_root(vcpu->kvm, vcpu->arch.mmu->root_hpa)) > + r = kvm_tdp_mmu_map(vcpu, gpa, error_code, map_writable, > + max_level, pfn, prefault, is_tdp); > + else > + r = __direct_map(vcpu,

[PATCH v2 10/20] kvm: x86/mmu: Add TDP MMU PF handler

2020-10-14 Thread Ben Gardon
Add functions to handle page faults in the TDP MMU. These page faults are currently handled in much the same way as the x86 shadow paging based MMU, however the ordering of some operations is slightly different. Future patches will add eager NX splitting, a fast page fault handler, and parallel pag