acrn-hypervisor/hypervisor/arch/x86/guest
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
..
assign.c HV: vuart: enable vuart console for VM 2019-04-25 11:21:54 +08:00
ept.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
guest_memory.c HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
instr_emul.c hv: instr_emul: check the bit 0(w bit) of opcode when necessary 2019-04-23 09:47:36 +08:00
pm.c HV: Minor refinement about RTVM pm MACRO and comments 2019-04-04 00:27:55 +08:00
trusty.c HV: use term of UUID 2019-04-12 13:45:32 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
vcpuid.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
virq.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
virtual_cr.c hv: vlapic: remove TPR set/get API 2019-03-25 13:31:51 -07:00
vlapic_priv.h hv: vlapic: add apic register offset check API 2019-04-23 15:16:56 +08:00
vlapic.c vlapic: refine IPI broadcast to support x2APIC mode 2019-04-25 09:12:16 +08:00
vm.c HV: check vm id param when dispatching hypercall 2019-04-26 16:21:14 +08:00
vmcall.c HV: check vm id param when dispatching hypercall 2019-04-26 16:21:14 +08:00
vmcs.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
vmexit.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
vmsr.c hv: vmsr: refine x2apic MSR bitmap setting 2019-04-23 15:16:56 +08:00
vmtrr.c hv: vmtrr: hide mtrr if hide_mtrr is true 2019-03-16 17:14:12 +08:00
vmx_asm.S hv: refine guest.h 2019-02-03 13:00:42 +08:00
vmx_io.c hv: rename io_emul.c to vmx_io.c 2019-04-12 10:09:26 +08:00