blob: 73809bb951b40a7b8baf73773260276ed575c623 [file] [log] [blame]
Jeremy Fitzhardinge3b827c12007-07-17 18:37:04 -07001#ifndef _XEN_MMU_H
2
3#include <linux/linkage.h>
4#include <asm/page.h>
5
Mark McLoughlinf6433702008-04-02 15:36:36 +01006enum pt_level {
7 PT_PGD,
8 PT_PUD,
9 PT_PMD,
10 PT_PTE
11};
12
Jeremy Fitzhardingef87e4ca2007-07-17 18:37:06 -070013
Jeremy Fitzhardingee791ca02009-02-26 15:48:33 -080014bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);
Jeremy Fitzhardingee791ca02009-02-26 15:48:33 -080015
Jeremy Fitzhardinge3b827c12007-07-17 18:37:04 -070016void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);
17
Jeremy Fitzhardingee57778a2008-06-16 04:30:02 -070018pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep);
19void xen_ptep_modify_prot_commit(struct mm_struct *mm, unsigned long addr,
20 pte_t *ptep, pte_t pte);
21
Jeremy Fitzhardinge319f3ba2009-01-28 14:35:01 -080022unsigned long xen_read_cr2_direct(void);
23
Thomas Gleixner030cb6c2009-08-20 14:30:02 +020024extern void xen_init_mmu_ops(void);
Stefano Stabellini59151002010-06-17 14:22:52 +010025extern void xen_hvm_init_mmu_ops(void);
Jeremy Fitzhardinge3b827c12007-07-17 18:37:04 -070026#endif /* _XEN_MMU_H */