linux/arch/x86/xen/mmu.h
<<
>>
Prefs
   1#ifndef _XEN_MMU_H
   2
   3#include <linux/linkage.h>
   4#include <asm/page.h>
   5
   6enum pt_level {
   7        PT_PGD,
   8        PT_PUD,
   9        PT_PMD,
  10        PT_PTE
  11};
  12
  13
  14void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
  15
  16
  17void xen_activate_mm(struct mm_struct *prev, struct mm_struct *next);
  18void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm);
  19void xen_exit_mmap(struct mm_struct *mm);
  20
  21pteval_t xen_pte_val(pte_t);
  22pmdval_t xen_pmd_val(pmd_t);
  23pgdval_t xen_pgd_val(pgd_t);
  24
  25pte_t xen_make_pte(pteval_t);
  26pmd_t xen_make_pmd(pmdval_t);
  27pgd_t xen_make_pgd(pgdval_t);
  28
  29void xen_set_pte(pte_t *ptep, pte_t pteval);
  30void xen_set_pte_at(struct mm_struct *mm, unsigned long addr,
  31                    pte_t *ptep, pte_t pteval);
  32
  33#ifdef CONFIG_X86_PAE
  34void xen_set_pte_atomic(pte_t *ptep, pte_t pte);
  35void xen_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
  36void xen_pmd_clear(pmd_t *pmdp);
  37#endif  /* CONFIG_X86_PAE */
  38
  39void xen_set_pmd(pmd_t *pmdp, pmd_t pmdval);
  40void xen_set_pud(pud_t *ptr, pud_t val);
  41void xen_set_pmd_hyper(pmd_t *pmdp, pmd_t pmdval);
  42void xen_set_pud_hyper(pud_t *ptr, pud_t val);
  43
  44#if PAGETABLE_LEVELS == 4
  45pudval_t xen_pud_val(pud_t pud);
  46pud_t xen_make_pud(pudval_t pudval);
  47void xen_set_pgd(pgd_t *pgdp, pgd_t pgd);
  48void xen_set_pgd_hyper(pgd_t *pgdp, pgd_t pgd);
  49#endif
  50
  51pgd_t *xen_get_user_pgd(pgd_t *pgd);
  52
  53pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
  54void  xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
  55                                  pte_t *ptep, pte_t pte);
  56
  57#endif  /* _XEN_MMU_H */
  58