mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 04:25:57 +00:00
If the vmcall param passed from guest is representing a vmid, we should make sure it is a valid one because it is a pre-condition of following get_vm_from_vmid(). And then we don't need to do NULL VM pointer check in is_valid_vm() because get_vm_from_vmid() would never return NULL. Tracked-On: #2978 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Yonghua Huang <yonghua.huang@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>