When page is swapped in it is mapped into guest memory only after guest
tries to access it again and generate another fault. To save this fault
we can map it immediately since we know that guest is going to access
the page. Do it only when tdp is enabled for now. Shadow paging case is
more complicated. CR[034] and EFER registers should be switched before
doing mapping and then switched back.
+void kvm_arch_async_page_ready(struct kvm_vcpu *vcpu, struct kvm_async_pf *work)
+{
+ if (!vcpu->arch.mmu.direct_map || is_error_page(work->page))
+ return;
+ vcpu->arch.mmu.page_fault(vcpu, work->gva, 0, true);
+}