Il 09/09/2013 11:38, Sunil ha scritto: > Thanks Paolo. > > I am using KVM with EPT support, so I understand this will require > gfn->pfn translation. Going through the code, looks like function > tdp_page_fault() is responsible for setting up this mapping. > > Though the page table is constructed lazily, I understand the page > contents are already transferred during migration. Can you please > explain or point to function names which finds the correct page > contents for given gfn ? (looks like pte is created in > __direct_map()) GFNs are looked up through the memory slots array. Look at gfn_to_memslot, gfn_to_hva, and related functions in virt/kvm/kvm_main.c; also the __gfn_to_memslot and __gfn_to_hva_memslot inlines in include/linux/kvm_host.h. Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html