1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef __KVM_NVHE_HYP_ALLOC_MGT__ 3 #define __KVM_NVHE_HYP_ALLOC_MGT__ 4 #include <asm/kvm_host.h> 5 6 struct hyp_mgt_allocator_ops { 7 int (*refill)(struct kvm_hyp_memcache *host_mc); 8 int (*reclaimable)(void); 9 void (*reclaim)(struct kvm_hyp_memcache *host_mc, int target); 10 }; 11 12 int hyp_alloc_mgt_refill(unsigned long id, struct kvm_hyp_memcache *host_mc); 13 int hyp_alloc_mgt_reclaimable(void); 14 void hyp_alloc_mgt_reclaim(struct kvm_hyp_memcache *host_mc, int target); 15 16 #endif /* __KVM_NVHE_HYP_ALLOC_MGT__ */ 17