acrn-hypervisor/hypervisor/include/lib
Xiangyang Wu 4dc39fdb8e HV:treewide:Add 16-bit atomic operations and update vpid type
There are some integer type conversions reported by static
analysis tool for vcpu id, number of created vcpus, and
vpid, to reduce these type conversions, redesign vcpu id,
number of created vcpus, and vpid type as uint16_t as per
their usage, related 16-bit atomic operations shall be
added in HV.
MISRA C requires that all unsigned constants should have the suffix 'U'
(e.g. 0xffU), but the assembler may not accept such C-style constants.

Add 16-bit atomic add/dec/store operations;
Update temporary variables type and parameters type of
related caller;
Update vpid type as uint16_t;
Replace Macro with constant value for CPU_PAGE_SIZE.

Note: According to SDM A.10, there are some bits defined
in the IA32_VMX_EPT_VPID_CAP MSR to support the INVVPID
instruction, these bits don't mean actual VPID, so
the vpid field in the data struct vmx_capability doesn't
be updated.

V1--V2:
	update comments for assembly code as per coding style;

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
2018-07-11 21:27:08 +08:00
..
crypto license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
atomic.h HV:treewide:Add 16-bit atomic operations and update vpid type 2018-07-11 21:27:08 +08:00
bits.h hv: Add 32bit bitmap bit ops API 2018-07-05 10:01:15 +08:00
errno.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
list.h HV:header:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
macros.h HV:MM:add 'U/UL' suffix for unsigned contant value 2018-07-11 09:23:03 +08:00
mem_mgt.h HV:treewide:Update return type of function ffs64 and ffz64 2018-07-02 15:11:22 +08:00
rtl.h HV: timer: keep TSC frequency in KHz 2018-07-03 10:18:06 +08:00
spinlock.h fix parted of "missing for discarded return value" 2018-06-19 16:21:45 +08:00
sprintf.h hv:replace unsigned long long with uint64_t 2018-06-12 10:21:19 +08:00
stdarg.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
types.h HV:lib:fix "signed/unsigned conversion without cast" 2018-07-04 12:18:38 +08:00
util.h HV: include: integral type cleanup 2018-07-10 13:10:10 +08:00