acrn-hypervisor/hypervisor/debug
Victor Sun 3bb4308361 HV: check vm id param when dispatching hypercall
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>
2019-04-26 16:21:14 +08:00
..
console.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
dbg_cmd.c hv: fix "Else alternative missing in if." 2019-04-03 09:20:55 +08:00
dump.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
hypercall.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
logmsg.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
Makefile hv: enhance Makefile to compile debug/release into 2 libraries 2018-11-23 08:47:34 +08:00
npk_log.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
printf.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
profiling.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
sbuf.c hv: reset per cpu sbuf pointers during vcpu reset 2019-04-19 16:20:34 +08:00
shell_priv.h HV: vuart: enable vuart console for VM 2019-04-25 11:21:54 +08:00
shell.c HV: vuart: enable vuart console for VM 2019-04-25 11:21:54 +08:00
string.c hv:cleanup header files for debug folder 2019-02-27 11:12:48 +08:00
trace.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
uart16550.c hv: minor fixes to a few calls to strncpy_s() 2019-03-20 08:55:42 +08:00
vuart.c HV: check vm id param when dispatching hypercall 2019-04-26 16:21:14 +08:00