mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 20:47:56 +00:00
hypervisor will crash if user try to call hypercall HC_CREATE_VM in infinite style. actually, the number of VMs hypervisor can support depends on the bit width of 'vmid_bitmap'.should return error in case of overflow. other cleanup for this function to avoid memory leak in case of failure. Signed-off-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>