acrn-hypervisor/hypervisor/arch/x86/guest
Huihuang Shi 198e01716a HV:fix vcpu violations
vcpu is never scan because of scan tool will be crashed!
After modulization, the vcpu can be scaned by the scan tool.
Clean up the violations in vcpu.c.
Fix the violations:
    1.No brackets to then/else.
    2.Function return value not checked.
    3.Signed/unsigned coversion without cast.

V1->V2:
    change the type of "vcpu->arch.irq_window_enabled" to bool.
V2->V3:
    add "void *" prefix on the 1st parameter of memset.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-06-28 13:28:26 +08:00
..
assign.c HV:fix simple violations 2019-06-25 20:09:21 +08:00
ept.c HV: Add ept_flush_leaf_page API 2019-06-20 09:32:55 +08:00
guest_memory.c HV: remove unused function copy_to_gva 2019-05-22 16:36:03 +08:00
instr_emul.c hv: instr_emul: fix movzx return memory opsize wrong 2019-05-13 11:53:51 +08:00
pm.c HV: fix expression is not boolean 2019-06-21 09:04:44 +08:00
trusty.c hv: ept: unify EPT API name to verb-object style 2019-06-14 14:40:25 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c HV:fix vcpu violations 2019-06-28 13:28:26 +08:00
vcpuid.c HV: return virtual lapic id in vcpuid 0b leaf 2019-06-06 15:22:10 +08:00
virq.c HV:fix vcpu violations 2019-06-28 13:28:26 +08:00
virtual_cr.c hv: vmcs: don't trap when setting reserved bit in cr0/cr4 2019-05-30 11:33:01 +08:00
vlapic_priv.h hv: vlapic: add apic register offset check API 2019-04-23 15:16:56 +08:00
vlapic.c hv: vlapic: remove ISR vector stack 2019-06-27 15:27:37 +08:00
vm_reset.c hv: initial host reset implementation 2019-05-23 18:24:17 +08:00
vm.c hv: bugfix for sbuf reset 2019-06-27 15:40:19 +08:00
vmcall.c HV: introduce relative vm id for hcall api 2019-06-12 11:00:40 +08:00
vmcs.c hv: distinguish between LAPIC_PASSTHROUGH configured vs enabled 2019-05-23 11:15:31 +08:00
vmexit.c HV: implement wbinvd instruction emulation 2019-06-20 09:32:55 +08:00
vmsr.c hv: vmsr: present sgx related msr to guest 2019-05-29 11:24:13 +08:00
vmtrr.c hv: ept: unify EPT API name to verb-object style 2019-06-14 14:40:25 +08:00
vmx_asm.S hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
vmx_io.c HV: rename 'type' in struct io_request 2019-05-06 18:25:20 +08:00