acrn-hypervisor/hypervisor/arch/x86/guest
Junjun Shan ca83c09b9f hv: treewide: fix multiple MISRAC violations
MISARC has requirements about  Marco redefinition, usage of ++ or -- and
assignment operator in boolean expression. This patch is used to solve
these violations.

The modifications are summarized as following:
1.The HC_VM_SET_MEMORY_REGION, HC_VM_GPA2HPA, HC_VM_SET_MEMORY_REGIONS are
redefined twice in acrn_hv_des.h, so delete them to solve the macro
redefinition violations.

2.The macro BUS_LOCK are redefined in bits.h and atomic.h, then delete
the declaration in both two files, add a new declaration in cpu.h and
include the header file.

3.modify the code to solve the improper usage of -- operators in string.c.

4.modify the while loop to for loop to avoid assignment operator in
boolean expression in vlapic.c.

v1 -> v2:
 *Modify the format of commit logs and signed-off name.

 *Modify the code format from 'd = d-1;' to 'd--;' to be better.

Signed-off-by: Junjun Shan <junjun.shan@intel.com>
2018-08-15 11:21:09 +08:00
..
guest.c HV: Logical conjunction needs brackets under /arch/x86/guest 2018-08-14 09:53:32 +08:00
instr_emul.c HV: Logical conjunction needs brackets under /arch/x86/guest 2018-08-14 09:53:32 +08:00
instr_emul.h HV: instr_emul: Remove dead code 2018-08-07 12:09:22 +08:00
mptable.c HV: Adding mptable support for partition mode ACRN 2018-08-03 13:36:40 +08:00
pm.c HV: Logical conjunction needs brackets under /arch/x86/guest 2018-08-14 09:53:32 +08:00
ucode.c hv: get correct fault address for copy_to/from_gva 2018-08-09 14:46:13 +08:00
vcpu.c HV: handle trusty on vm reset 2018-08-14 09:55:58 +08:00
vlapic_priv.h HV:VLAPIC:add suffix "_fn" for function pointer 2018-07-31 10:33:22 +08:00
vlapic.c hv: treewide: fix multiple MISRAC violations 2018-08-15 11:21:09 +08:00
vm.c HV: handle trusty on vm reset 2018-08-14 09:55:58 +08:00
vmcall.c HV: Enclose debug specific code with #ifdef HV_DEBUG 2018-08-15 11:17:29 +08:00
vmsr.c HV: Logical conjunction needs brackets under /arch/x86/guest 2018-08-14 09:53:32 +08:00