mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-05 15:06:58 +00:00
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> |
||
---|---|---|
.. | ||
hv_main.c | ||
hypercall.c | ||
io_request.c | ||
ptdev.c | ||
schedule.c | ||
stack_protector.c | ||
trusty_hypercall.c | ||
vm_load.c |