mmu.h 667 字节
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
J
Jeremy Fitzhardinge 已提交
2 3 4 5 6
#ifndef _XEN_MMU_H

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

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

J
Jeremy Fitzhardinge 已提交
15

16 17
bool __set_phys_to_machine(unsigned long pfn, unsigned long mfn);

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

20 21
pte_t xen_ptep_modify_prot_start(struct vm_area_struct *vma, unsigned long addr, pte_t *ptep);
void  xen_ptep_modify_prot_commit(struct vm_area_struct *vma, unsigned long addr,
22 23
				  pte_t *ptep, pte_t pte);

24 25
unsigned long xen_read_cr2_direct(void);

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