mmu.h 607 字节
Newer Older
J
Jeremy Fitzhardinge 已提交
1 2 3 4 5
#ifndef _XEN_MMU_H

#include <linux/linkage.h>
#include <asm/page.h>

6 7 8 9 10 11 12
enum pt_level {
	PT_PGD,
	PT_PUD,
	PT_PMD,
	PT_PTE
};

J
Jeremy Fitzhardinge 已提交
13

14 15
bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);

J
Jeremy Fitzhardinge 已提交
16 17
void set_pte_mfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags);

18 19 20 21
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);

22 23
unsigned long xen_read_cr2_direct(void);

24
extern void xen_init_mmu_ops(void);
25
extern void xen_hvm_init_mmu_ops(void);
J
Jeremy Fitzhardinge 已提交
26
#endif	/* _XEN_MMU_H */