acrn-hypervisor/hypervisor/include/arch/x86/guest
Yan, Like ede1459e19 hv: fix the vm pointer check before use
After using get_vm_from_vmid(), vm pointer is always not NULL. But there are still many NULL pointer checks.
This commit replaced the NULL vm pointer check with a validation check which checks the vm status.
In addition, NULL check for pointer returned by get_sos_vm() and get_vm_config() is removed.

Tracked-On: #2520
Signed-off-by: Yan, Like <like.yan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-04-02 16:29:51 +08:00
..
assign.h hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
ept.h hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
guest_memory.h HV: Modularize boot folder 2019-03-14 09:05:53 +08:00
guest_pm.h HV: Register S5 pio handler for dm-launched RTVM 2019-03-29 16:17:44 +08:00
instr_emul.h hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
io_emul.h hv: add default handlers for PIO/MMIO access 2019-04-01 11:16:37 +08:00
trusty.h hv: seed: refine header file 2019-03-15 14:09:56 +08:00
ucode.h HV:treewide:rename vcpu data structure 2018-11-05 15:35:49 +08:00
vcpu.h Revert "hv: vmsr: add IA32_MISC_ENABLE to msr store area" 2019-03-26 13:59:21 +08:00
vcpuid.h hv:cleanup header file for vm.c & vm.h 2019-02-03 13:50:42 +08:00
virtual_cr.h hv:move some files to guest folder 2019-01-30 20:43:04 +08:00
vlapic.h hv: vlapic: remove TPR set/get API 2019-03-25 13:31:51 -07:00
vm.h hv: fix the vm pointer check before use 2019-04-02 16:29:51 +08:00
vmcs.h hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmexit.h hv: refine guest.h 2019-02-03 13:00:42 +08:00
vmtrr.h modularization: clean up namings in vMTRR module 2018-12-14 09:43:06 +08:00