acrn-hypervisor/hypervisor/include/arch/x86
Xiangyang Wu 612cdceaca HV:treewide:Add exec_vmread32 and exec_vmwrite32 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_vmread32/exec_vmwrite32
is for accessing 32-bit fields. So there are many type
casting for the return value and parameters vmread/vmwrite
operations.

Create exec_vmread32 and exec_vmwrite32 functions to
access 32-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 32 bit vmread/vmread opertions and related
        caller.
V2-->V3:
	Update related variables type in data structure
	 for exec_vmread32/exec_vmwrite32.
	Rename temp variable 'low' into 'value' for
	exec_vmread32;
V3-->V4:
	Remove useless type conversion.

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
..
guest HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
apicreg.h HV: vioapic: cleaning up integral-type-related violations 2018-07-17 15:37:45 +08:00
assign.h HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
cpu.h HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
cpufeatures.h HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpuid.h HV:CPU: Add 'U/UL' for constant value in CPU module 2018-07-10 10:28:33 +08:00
gdt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
hob_parse.h HV: Parse SeedList HOB 2018-06-07 09:55:29 +08:00
host_pm.h hv: trap vm0 write/read pm1a/pm1b registers 2018-06-29 00:50:01 +08:00
hv_arch.h hv: implement lowlevel S3 enter/wakeup 2018-06-29 00:50:01 +08:00
idt.h HV:treewide:transfer the struct member types to non-basic types 2018-06-29 15:48:19 +08:00
io.h HV: Fix missing brackets for MISRA C Violations 2018-07-13 09:09:12 +08:00
ioapic.h HV: ioapic: unify the access pattern to RTEs 2018-07-17 15:37:45 +08:00
irq.h hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
lapic.h hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
mmu.h HV: vlapic: save complex expressions to local variables 2018-07-13 10:02:44 +08:00
msr.h [REVERT-ME]: disable turbo mode 2018-07-10 16:37:40 +08:00
mtrr.h hv: basic MTRR virtualization 2018-06-08 12:06:15 +08:00
multiboot.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
per_cpu.h HV: per_cpu: drop dependency on version.h and add license header 2018-07-17 13:54:03 +08:00
reboot.h hv: Add reboot shell command 2018-05-18 16:38:40 +08:00
softirq.h HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
timer.h HV: treewide: enforce unsignedness of pcpu_id 2018-06-21 16:59:21 +08:00
trusty.h [REVERT-ME]:handle discontinuous hpa for trusty 2018-07-11 11:11:24 +08:00
vmexit.h HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
vmx.h HV:treewide:Add exec_vmread32 and exec_vmwrite32 functions 2018-07-18 12:31:42 +08:00
vtd.h hv: change several APIs to void type 2018-07-18 12:30:37 +08:00
zeropage.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00