mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
For hv shell commands with vm_id option, need to check it is in the valid range [0, CONFIG_MAX_VM]. This commit checks the input vm_id, if it's not in the valid range, an error message will be given, and vm_id will be assgined to default 0U. Tracked-On: #2520 Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>