KVM
early_alloc.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef __KVM_HYP_EARLY_ALLOC_H
3 #define __KVM_HYP_EARLY_ALLOC_H
4 
5 #include <asm/kvm_pgtable.h>
6 
7 void hyp_early_alloc_init(void *virt, unsigned long size);
8 unsigned long hyp_early_alloc_nr_used_pages(void);
9 void *hyp_early_alloc_page(void *arg);
10 void *hyp_early_alloc_contig(unsigned int nr_pages);
11 
12 extern struct kvm_pgtable_mm_ops hyp_early_alloc_mm_ops;
13 
14 #endif /* __KVM_HYP_EARLY_ALLOC_H */
struct kvm_pgtable_mm_ops hyp_early_alloc_mm_ops
Definition: early_alloc.c:12
unsigned long hyp_early_alloc_nr_used_pages(void)
Definition: early_alloc.c:19
void * hyp_early_alloc_contig(unsigned int nr_pages)
Definition: early_alloc.c:24
void hyp_early_alloc_init(void *virt, unsigned long size)
Definition: early_alloc.c:49
void * hyp_early_alloc_page(void *arg)
Definition: early_alloc.c:41
size_t size
Definition: gen-hyprel.c:133