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