acrn-hypervisor/hypervisor/dm/vpci
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
..
ivshmem.c hv: ivshmem: map SHM BAR with PAT ignored 2021-08-13 11:17:15 +08:00
pci_pt.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vdev.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vhostbridge.c ACRN: hv: Unify terminology for user vm 2021-11-02 10:00:55 +08:00
vmcs9900.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vmsi.c hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vmsix.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vmsix_on_msi.c hv: mod: do not use explicit arch name when including headers 2021-05-08 11:15:46 +08:00
vpci.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vpci_bridge.c ACRN: hv: Terminology modification in hv code 2021-11-02 10:00:55 +08:00
vpci_priv.h hv: deny the launch of VM if pass-thru PIO bar isn't identical mapping 2021-09-28 08:49:01 +08:00
vroot_port.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00
vsriov.c HV: treewide: fix violations of coding guideline C-TY-27 & C-TY-28 2021-11-04 18:15:47 +08:00