mmu.h 607 B

123456789101112131415161718192021222324252627
  1. #ifndef _XEN_MMU_H
  2. #include <linux/linkage.h>
  3. #include <asm/page.h>
  4. enum pt_level {
  5. PT_PGD,
  6. PT_PUD,
  7. PT_PMD,
  8. PT_PTE
  9. };
  10. bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
  11. void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
  12. pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
  13. void xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
  14. pte_t *ptep, pte_t pte);
  15. unsigned long xen_read_cr2_direct(void);
  16. extern void xen_init_mmu_ops(void);
  17. extern void xen_hvm_init_mmu_ops(void);
  18. #endif /* _XEN_MMU_H */