summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/pgtable_types.h
diff options
context:
space:
mode:
authorJuergen Gross2014-11-28 11:53:56 +0100
committerDavid Vrabel2014-12-04 15:09:04 +0100
commit792230c3a66b3d17d6dcca712866d24f2283d4a6 (patch)
tree8afc8973622985092d2a0913a6ba53028d625b39 /arch/x86/include/asm/pgtable_types.h
parentxen: Delay invalidating extra memory (diff)
downloadkernel-qcow2-linux-792230c3a66b3d17d6dcca712866d24f2283d4a6.tar.gz
kernel-qcow2-linux-792230c3a66b3d17d6dcca712866d24f2283d4a6.tar.xz
kernel-qcow2-linux-792230c3a66b3d17d6dcca712866d24f2283d4a6.zip
x86: Introduce function to get pmd entry pointer
Introduces lookup_pmd_address() to get the address of the pmd entry related to a virtual address in the current address space. This function is needed for support of a virtual mapped sparse p2m list in xen pv domains, as we need the address of the pmd entry, not the one of the pte in that case. Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'arch/x86/include/asm/pgtable_types.h')
-rw-r--r--arch/x86/include/asm/pgtable_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
index 07789647bf33..d83f5e7ddbdf 100644
--- a/arch/x86/include/asm/pgtable_types.h
+++ b/arch/x86/include/asm/pgtable_types.h
@@ -396,6 +396,7 @@ static inline void update_page_count(int level, unsigned long pages) { }
extern pte_t *lookup_address(unsigned long address, unsigned int *level);
extern pte_t *lookup_address_in_pgd(pgd_t *pgd, unsigned long address,
unsigned int *level);
+extern pmd_t *lookup_pmd_address(unsigned long address);
extern phys_addr_t slow_virt_to_phys(void *__address);
extern int kernel_map_pages_in_pgd(pgd_t *pgd, u64 pfn, unsigned long address,
unsigned numpages, unsigned long page_flags);