Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 #ifndef __KVM_HYP_EARLY_ALLOC_H
0003 #define __KVM_HYP_EARLY_ALLOC_H
0004 
0005 #include <asm/kvm_pgtable.h>
0006 
0007 void hyp_early_alloc_init(void *virt, unsigned long size);
0008 unsigned long hyp_early_alloc_nr_used_pages(void);
0009 void *hyp_early_alloc_page(void *arg);
0010 void *hyp_early_alloc_contig(unsigned int nr_pages);
0011 
0012 extern struct kvm_pgtable_mm_ops hyp_early_alloc_mm_ops;
0013 
0014 #endif /* __KVM_HYP_EARLY_ALLOC_H */