acrn-hypervisor/hypervisor/include/arch/x86/asm/guest
Junjie Mao 83a938bae6 HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28
The coding guideline rules C-TY-27 and C-TY-28, combined, requires that
assignment and arithmetic operations shall be applied only on operands of the
same kind. This patch either adds explicit type casts or adjust types of
variables to align the types of operands.

The only semantic change introduced by this patch is the promotion of the
second argument of set_vmcs_bit() and clear_vmcs_bit() to
uint64_t (formerly uint32_t). This avoids clear_vmcs_bit() to accidentally
clears the upper 32 bits of the requested VMCS field.

Other than that, this patch has no semantic change. Specifically this patch
is not meant to fix buggy narrowing operations, only to make these
operations explicit.

Tracked-On: #6776
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2021-11-04 18:15:47 +08:00
..
assign.h ACRN: hv: Terminology modification in hv code 2021-11-02 10:00:55 +08:00
ept.h HV: treewide: fix violations of coding guideline C-FN-09 2021-11-04 18:15:47 +08:00
guest_memory.h doc: update uses of VHM in doxygen comments 2021-10-18 19:09:07 -07:00
guest_pm.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
hyperv.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
instr_emul.h HV: Fix decode_instruction() trigger #UD for emulating UC-lock 2021-07-21 11:25:47 +08:00
lock_instr_emul.h HV: rename splitlock file name 2021-07-21 11:25:47 +08:00
nested.h hv: nested: enable multiple active VMCS12 support 2021-09-26 08:49:35 +08:00
trusty.h ACRN: hv: Unify terminology for user vm 2021-11-02 10:00:55 +08:00
ucode.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vcat.h hv: vCAT: implementing the vCAT MSRs write handler 2021-10-28 19:12:29 +08:00
vcpu.h HV: treewide: fix violations of coding guideline C-PP-04 2021-11-04 18:15:47 +08:00
vcpuid.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vept.h hv: nested: Introduce L2 VM EPT VIOLATION handler 2021-06-04 13:53:47 +08:00
virq.h hv: Fix vcpu signaling racing problem in lock instruction emulation 2021-11-02 15:01:20 +08:00
virtual_cr.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vlapic.h hv: vlapic: wrap a function to calculate destination vcpu mask by shorthand 2021-05-24 10:27:32 +08:00
vm_reset.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vm.h ACRN: hv: Terminology modification in hv code 2021-11-02 10:00:55 +08:00
vmcs.h HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vmexit.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vmtrr.h hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vmx_io.h ACRN: hv: Terminology modification in hv code 2021-11-02 10:00:55 +08:00