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