acrn-hypervisor/hypervisor/common
Xiangyang Wu 65437960a9 HV:treewide: Add exec_vmread16 and exec_vmwrite16 functions
In the hypervisor, VMCS fields include 16-bit fields,
32-bit fields, 64-bit fields and natural-width fields.
In the current implement, no exec_vmread16/exec_vmwrite16
is for accessing 16-bit fields. So there are many type
casting for the return value and parameters vmread/vmwrite
operations.

Create exec_vmread16 and exec_vmwrite16 functions to
access 16-bit fields in VMCS;
Update related variables type for vmread/vmwrite operations;
Update related caller according to VMCS fields size.

V1--V2:
	This is new part of this patch serial to only
	update 16-bit vmread/vmread opertions and related
	caller.
V2--V3:
	Add "hu" for uint16_t argument in log function;
	Add comments for function get_vmcs_field;
	Update related variables type for exec_vmread16;
	Rename temp variable 'low' into 'value'.
V3-->V4:
	Few updates for exec_vmread16.
V4-->V5:
	Few updates for coding style;
	Replace "hux" with "hu" in log function for 16-bit
	variable.
V5-->V6:
	CPU_REG_64BIT_LAST is used in the vm_get_register and
	vm_set_register to make condition statement more
	understandable.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2018-07-18 12:31:42 +08:00
..
hv_main.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
hypercall.c HV:treewide: Add exec_vmread16 and exec_vmwrite16 functions 2018-07-18 12:31:42 +08:00
io_request.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
ptdev.c HV:misc:fix "signed/unsigned conversion with cast" 2018-07-16 15:45:40 +08:00
schedule.c HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
stack_protector.c HV:common:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
trusty_hypercall.c HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
vm_load.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00