early_alloc.h 437 B

1234567891011121314
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. #ifndef __KVM_HYP_EARLY_ALLOC_H
  3. #define __KVM_HYP_EARLY_ALLOC_H
  4. #include <asm/kvm_pgtable.h>
  5. void hyp_early_alloc_init(void *virt, unsigned long size);
  6. unsigned long hyp_early_alloc_nr_used_pages(void);
  7. void *hyp_early_alloc_page(void *arg);
  8. void *hyp_early_alloc_contig(unsigned int nr_pages);
  9. extern struct kvm_pgtable_mm_ops hyp_early_alloc_mm_ops;
  10. #endif /* __KVM_HYP_EARLY_ALLOC_H */