arch/arm64/kvm/hyp/include/nvhe/early_alloc.h
raw| 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 */ |