2007-07-18 08:37:04 +07:00
|
|
|
#ifndef _XEN_MMU_H
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <asm/page.h>
|
|
|
|
|
2008-04-02 21:36:36 +07:00
|
|
|
enum pt_level {
|
|
|
|
PT_PGD,
|
2017-03-18 01:55:14 +07:00
|
|
|
PT_P4D,
|
2008-04-02 21:36:36 +07:00
|
|
|
PT_PUD,
|
|
|
|
PT_PMD,
|
|
|
|
PT_PTE
|
|
|
|
};
|
|
|
|
|
2007-07-18 08:37:06 +07:00
|
|
|
|
2009-02-27 06:48:33 +07:00
|
|
|
bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
|
|
|
|
|
2007-07-18 08:37:04 +07:00
|
|
|
void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
|
|
|
|
|
2008-06-16 18: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);
|
|
|
|
|
2009-01-29 05:35:01 +07:00
|
|
|
unsigned long xen_read_cr2_direct(void);
|
|
|
|
|
2009-08-20 19:30:02 +07:00
|
|
|
extern void xen_init_mmu_ops(void);
|
2010-06-17 20:22:52 +07:00
|
|
|
extern void xen_hvm_init_mmu_ops(void);
|
2007-07-18 08:37:04 +07:00
|
|
|
#endif /* _XEN_MMU_H */
|