acrn-hypervisor/hypervisor/arch/x86
Shiqing Gao 8e58a686f1 hv: vmcs: fix MISRA-C violations related to variable scope
This patch fixes the MISRA-C violations in arch/x86/vmcs.c.
 * add local variable if the input parameter passed by value
   is changed in function definition
 * move the variable declaration inside function scope if
   this variable is only used in one function

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-12-19 13:04:23 +08:00
..
boot function name change in init.c 2018-12-19 09:07:14 +08:00
configs HV: fix bug change default vuart IRQ for UP2 board 2018-12-17 11:08:56 +08:00
guest hv: fix MISRA-C violations "Pointer param should be declared pointer to const." 2018-12-19 13:03:03 +08:00
assign.c hv: fix possible buffer overflow issues 2018-12-14 20:38:15 +08:00
cpu_caps.c Fix Misra C violation in cpu_caps.c and security.c 2018-12-19 09:07:14 +08:00
cpu_state_tbl.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
cpu.c move security related funcs into security.c 2018-12-19 09:07:14 +08:00
e820.c HV: rename e820_entries to e820_entries_count 2018-12-12 09:12:12 +08:00
ept.c hv: enable/disable snoop control bit per vm 2018-12-18 13:45:10 +08:00
gdt.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
idt.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
init.c function name change in init.c 2018-12-19 09:07:14 +08:00
io.c hv: enforce data size on all out exits 2018-12-18 08:51:18 +08:00
ioapic.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
irq.c cpu_dead should only run on current pcpu 2018-12-17 14:31:52 +08:00
Kconfig HV: replace serial PCI MMIO base with BDF config 2018-12-03 13:20:35 +08:00
lapic.c hv: lapic: fix a theoretic infinite loop when clear lapic isr 2018-11-22 12:44:21 +08:00
mmu.c modulization: move functions related with cpu caps into cpu_caps.c 2018-12-19 09:07:14 +08:00
notify.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
page.c hv: minimize the case of "identifier reuse" 2018-12-07 15:21:39 +08:00
pagetable.c hv: mmu: replace dynamic memory allocation in memory 2018-11-02 13:15:48 +08:00
pm.c HV: modularization to refine pm related code. 2018-12-19 13:02:09 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
security.c Make ibrs_type as internal variable 2018-12-19 09:07:14 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
timer.c remove check_tsc 2018-12-17 14:31:52 +08:00
trampoline.c hv: drop the temperory stack for AP startup 2018-12-17 19:16:43 +08:00
trusty.c move security related funcs into security.c 2018-12-19 09:07:14 +08:00
virq.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmcs.c hv: vmcs: fix MISRA-C violations related to variable scope 2018-12-19 13:04:23 +08:00
vmexit.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmx_asm.S move security related funcs into security.c 2018-12-19 09:07:14 +08:00
vmx.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
vtd.c hv: enable/disable snoop control bit per vm 2018-12-18 13:45:10 +08:00
wakeup.S HV: modularization to refine pm related code. 2018-12-19 13:02:09 +08:00