Searched refs:gfn (Results 1 – 10 of 10) sorted by relevance
/arch/x86/kvm/ |
D | mmu.c | 376 static int *slot_largepage_idx(gfn_t gfn, struct kvm_memory_slot *slot) in slot_largepage_idx() argument 380 idx = (gfn / KVM_PAGES_PER_HPAGE) - in slot_largepage_idx() 385 static void account_shadowed(struct kvm *kvm, gfn_t gfn) in account_shadowed() argument 389 gfn = unalias_gfn(kvm, gfn); in account_shadowed() 390 write_count = slot_largepage_idx(gfn, in account_shadowed() 391 gfn_to_memslot_unaliased(kvm, gfn)); in account_shadowed() 395 static void unaccount_shadowed(struct kvm *kvm, gfn_t gfn) in unaccount_shadowed() argument 399 gfn = unalias_gfn(kvm, gfn); in unaccount_shadowed() 400 write_count = slot_largepage_idx(gfn, in unaccount_shadowed() 401 gfn_to_memslot_unaliased(kvm, gfn)); in unaccount_shadowed() [all …]
|
D | paging_tmpl.h | 72 gfn_t gfn; member 199 walker->gfn = gpte_to_gfn(pte); in FNAME() 206 walker->gfn = gpte_to_gfn_pde(pte); in FNAME() 207 walker->gfn += PT_INDEX(addr, PT_PAGE_TABLE_LEVEL); in FNAME() 209 walker->gfn += pse36_gfn_delta(pte); in FNAME() 269 if (gpte_to_gfn(gpte) != vcpu->arch.update_pte.gfn) in FNAME() 308 gw->gfn, sw->pfn, false); in FNAME() 426 large_gfn = walker.gfn & ~(KVM_PAGES_PER_HPAGE-1); in FNAME() 428 walker.gfn = large_gfn; in FNAME() 434 pfn = gfn_to_pfn(vcpu->kvm, walker.gfn); in FNAME() [all …]
|
D | x86.c | 1575 gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) in unalias_gfn() argument 1582 if (gfn >= alias->base_gfn in unalias_gfn() 1583 && gfn < alias->base_gfn + alias->npages) in unalias_gfn() 1584 return alias->target_gfn + gfn - alias->base_gfn; in unalias_gfn() 1586 return gfn; in unalias_gfn()
|
/arch/ia64/kvm/ |
D | misc.h | 34 static inline void kvm_set_pmt_entry(struct kvm *kvm, gfn_t gfn, in kvm_set_pmt_entry() argument 41 pmt_base[gfn] = pte; in kvm_set_pmt_entry()
|
D | kvm-ia64.c | 1791 gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) in unalias_gfn() argument 1793 return gfn; in unalias_gfn()
|
/arch/powerpc/kvm/ |
D | booke.c | 293 gfn_t gfn; in kvmppc_handle_exit() local 309 gfn = vcpu->arch.paddr_accessed >> PAGE_SHIFT; in kvmppc_handle_exit() 311 if (kvm_is_visible_gfn(vcpu->kvm, gfn)) { in kvmppc_handle_exit() 338 gfn_t gfn; in kvmppc_handle_exit() local 356 gfn = gpaddr >> PAGE_SHIFT; in kvmppc_handle_exit() 358 if (kvm_is_visible_gfn(vcpu->kvm, gfn)) { in kvmppc_handle_exit()
|
D | 44x_tlb.c | 280 gfn_t gfn; in kvmppc_mmu_map() local 293 gfn = gpaddr >> PAGE_SHIFT; in kvmppc_mmu_map() 294 new_page = gfn_to_page(vcpu->kvm, gfn); in kvmppc_mmu_map() 296 printk(KERN_ERR "Couldn't get guest page for gfn %lx!\n", gfn); in kvmppc_mmu_map()
|
D | powerpc.c | 34 gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) in unalias_gfn() argument 36 return gfn; in unalias_gfn()
|
/arch/x86/include/asm/ |
D | kvm_host.h | 191 gfn_t gfn; member 286 gfn_t gfn; /* presumed gfn during guest pte update */ member 627 struct kvm_memory_slot *gfn_to_memslot_unaliased(struct kvm *kvm, gfn_t gfn);
|
/arch/s390/kvm/ |
D | kvm-s390.c | 696 gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) in unalias_gfn() argument 698 return gfn; in unalias_gfn()
|