acrn-hypervisor/hypervisor/include
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
..
arch/x86 HV:treewide:Add 16-bit atomic operations and update vpid type 2018-07-11 21:27:08 +08:00
common Documentation: add pictures to Trusty documentation 2018-07-05 00:06:51 -07:00
debug HV: assert: use signed int for __LINE__ 2018-07-10 13:10:10 +08:00
lib HV:treewide:Add 16-bit atomic operations and update vpid type 2018-07-11 21:27:08 +08:00
public HV:MM:add 'U/UL' suffix for unsigned contant value 2018-07-11 09:23:03 +08:00
hv_debug.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hv_lib.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
hypervisor.h hv: refine the address used in sbl multiboot code 2018-06-22 16:12:24 +08:00