[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 1/5] include/uk/plat: Memory Ballooning API
From: Cason Schindler <cason.j.schindler@xxxxxxxxx> Add inflate and deflate API headers in memory.h. Signed-off-by: Jack Raney <raney.jack99@xxxxxxxxx> Signed-off-by: Cason Schindler <cason.j.schindler@xxxxxxxxx> --- include/uk/plat/memory.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/uk/plat/memory.h b/include/uk/plat/memory.h index 4c4e4dc..1cff18e 100644 --- a/include/uk/plat/memory.h +++ b/include/uk/plat/memory.h @@ -164,6 +164,25 @@ struct uk_alloc *ukplat_memallocator_get(void); */ void ukplat_stack_set_current_thread(void *thread_addr); +/** + * Inflates the memory balloon by 1 extent. After this point, the extent + * starting at the specified virtual address will be unavailable to the guest. + * The host will then be able to use the extent for its own purposes. + * @param va The starting virtual address to release + * @param order The sie of the extent to be released + * @return >= 0 on success, < 0 otherwise. + */ +int ukplat_inflate(void *va, int order); + +/** + * Deflates the memory balloon by 1 extent, and returns a frame to the + * hypervisor starting at the specified virtual address. + * @param va The starting virtual address to recover + * @param order The size of the extent to be recovered + * @return num pages reclaimed on success, < 0 otherwise. + */ +int ukplat_deflate(void *va, int order); + #ifdef __cplusplus } #endif -- 2.24.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |