acrn-hypervisor/hypervisor/arch/x86
Junjun Shan eb8c4fb0d5 hv:Fix Implict conversion:actual to formal param
MISRAC has requirement about implict conversion: actual to formal
param. This patch is used to fix part of these violations.

1.Add a new structure seg_desc_vmcs to hold the VMCS field address of
segment selector to clean up seg_desc structure.

2.Add the definition of maximum MSI entry and the relevant judgement.

3.The violations in shell.c, logmsg.c will be fixed in other series of
patches with modification of function snprintf(), vsnprintf() and other
related usages.

v1->v2:
  *Move the definition of struct seg_desc_vmcs from instr_emul.h to
   instr_emul.c.
  *Modify the formal parameter type in function definition from uint8_t
   to char instead of using cast.
  *Drop the const declaration for char data in formal parameter.

v2->v3:
  *update the data missing conversion.
  *change type of internal parameter len to avoid casting in npklog.c.
  *change the conversion from signed char to unsigned int in
   uart16550_getc() to solve sign-extension.

Tracked-On: #861
Signed-off-by: Junjun Shan <junjun.shan@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-09-18 13:09:39 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
guest hv:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00
assign.c HV: improve pass-thru device interrupt process 2018-09-10 10:12:45 +08:00
cpu_primary.S hv: mmu: cleanup mmu.h 2018-09-03 09:32:49 +08:00
cpu_save_boot_ctx.S hv: move boot_ctx offset definitions 2018-08-14 13:05:06 +08:00
cpu_state_tbl.c HV: Add const qualifiers where required 2018-08-17 10:02:12 +08:00
cpu.c hv: avoid memory leak in trampoline code preparing 2018-09-11 13:00:54 +08:00
cpuid.c hv:Replace vlapic pointer with instance in vcpu_arch 2018-09-12 09:20:07 +08:00
ept.c hv: ept: remove find_next_table 2018-09-03 09:32:49 +08:00
gdt.c HV: Removed the unused parameters and union from gdt 2018-08-27 09:40:25 +08:00
idt.S hv: Leave interrupts disabled during vmexit - ACRN partition mode 2018-08-31 08:48:47 +08:00
io.c hv: Replace dynamic memory allocation for I/O bitmaps 2018-09-12 09:20:07 +08:00
ioapic.c hv: pgtable: fix 'Use of function like macro' 2018-09-07 11:11:06 +08:00
irq.c hv:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00
Kconfig security: Enable '-fpie, -pie' options 2018-08-31 11:18:26 +08:00
lapic.c hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
mmu.c hv:treewide:fix multiple MISRAC violations 2018-09-13 11:12:29 +08:00
mtrr.c hv: treewide: fix 'Expression is not Boolean' 2018-09-03 11:23:53 +08:00
notify.c hv:Fix Implict conversion:actual to formal param 2018-09-18 13:09:39 +08:00
pagetable.c hv: treewide: fix 'Use of function like macro' 2018-09-11 10:49:48 +08:00
pm.c hv: pgtable: fix 'Use of function like macro' 2018-09-07 11:11:06 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c hv: add compile time assert for static checks 2018-08-14 13:05:06 +08:00
timer.c hv:treewide:fix multiple MISRAC violations 2018-09-13 11:12:29 +08:00
trampoline.S hv: mmu: cleanup mmu.h 2018-09-03 09:32:49 +08:00
trusty.c HV: trusty: refine version checking when initializing trusty 2018-09-18 13:09:01 +08:00
virq.c hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
vmexit.c hv:Replace vlapic pointer with instance in vcpu_arch 2018-09-12 09:20:07 +08:00
vmx_asm.S fix spec_ctrl msr save/restore 2018-08-16 16:24:13 +08:00
vmx.c hv:treewide:fix multiple MISRAC violations 2018-09-13 11:12:29 +08:00
vtd.c hv: remove unused MACROs 2018-09-18 09:43:43 +08:00
wakeup.S pm: use cpu_context for s3 save/restore 2018-08-07 09:55:13 +08:00