2007-07-17 18:37:04 -07:00
|
|
|
#ifndef _XEN_MMU_H
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <asm/page.h>
|
|
|
|
|
2008-04-02 07:36:36 -07:00
|
|
|
enum pt_level {
|
|
|
|
PT_PGD,
|
|
|
|
PT_PUD,
|
|
|
|
PT_PMD,
|
|
|
|
PT_PTE
|
|
|
|
};
|
|
|
|
|
2007-07-17 18:37:06 -07:00
|
|
|
|
2007-07-17 18:37:04 -07:00
|
|
|
void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
|
|
|
|
|
|
|
|
|
|
|
|
void xen_activate_mm(struct mm_struct *prev, struct mm_struct *next);
|
|
|
|
void xen_dup_mmap(struct mm_struct *oldmm, struct mm_struct *mm);
|
|
|
|
void xen_exit_mmap(struct mm_struct *mm);
|
|
|
|
|
|
|
|
void xen_pgd_pin(pgd_t *pgd);
|
2007-07-17 18:37:05 -07:00
|
|
|
//void xen_pgd_unpin(pgd_t *pgd);
|
2007-07-17 18:37:04 -07:00
|
|
|
|
2008-05-09 04:05:57 -07:00
|
|
|
pteval_t xen_pte_val(pte_t);
|
|
|
|
pmdval_t xen_pmd_val(pmd_t);
|
|
|
|
pgdval_t xen_pgd_val(pgd_t);
|
2007-07-17 18:37:04 -07:00
|
|
|
|
2008-05-09 04:05:57 -07:00
|
|
|
pte_t xen_make_pte(pteval_t);
|
|
|
|
pmd_t xen_make_pmd(pmdval_t);
|
|
|
|
pgd_t xen_make_pgd(pgdval_t);
|
2007-07-17 18:37:04 -07:00
|
|
|
|
2008-05-30 17:24:27 -07:00
|
|
|
void xen_set_pte(pte_t *ptep, pte_t pteval);
|
2007-07-17 18:37:04 -07:00
|
|
|
void xen_set_pte_at(struct mm_struct *mm, unsigned long addr,
|
|
|
|
pte_t *ptep, pte_t pteval);
|
|
|
|
void xen_set_pte_atomic(pte_t *ptep, pte_t pte);
|
2008-05-30 17:24:27 -07:00
|
|
|
void xen_set_pmd(pmd_t *pmdp, pmd_t pmdval);
|
2007-07-17 18:37:04 -07:00
|
|
|
void xen_set_pud(pud_t *ptr, pud_t val);
|
2008-05-30 17:24:27 -07:00
|
|
|
void xen_set_pmd_hyper(pmd_t *pmdp, pmd_t pmdval);
|
|
|
|
void xen_set_pud_hyper(pud_t *ptr, pud_t val);
|
2007-07-17 18:37:04 -07:00
|
|
|
void xen_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
|
|
|
|
void xen_pmd_clear(pmd_t *pmdp);
|
|
|
|
|
2008-06-16 04:30:02 -07:00
|
|
|
pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
|
|
|
|
void xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
|
|
|
|
pte_t *ptep, pte_t pte);
|
|
|
|
|
2007-07-17 18:37:04 -07:00
|
|
|
#endif /* _XEN_MMU_H */
|