mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
tools: acrnctl: Free vmmngr list after vm ops done
vmmngr_struct entry is allocated in get_vm_list. we should free it after vm ops done. Signed-off-by: Kaige Fu <kaige.fu@intel.com> Reviewed-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com> Reviewed-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -34,6 +34,11 @@ static const char *state_str[] = {
|
||||
*/
|
||||
void get_vm_list(void);
|
||||
|
||||
/**
|
||||
* @brief free all vmmngr_struct allocated by get_vm_list
|
||||
*/
|
||||
void put_vm_list(void);
|
||||
|
||||
/**
|
||||
* @brief search vm indentified by vm from vmmngr_head
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user