HV: code cleanup as MISRA-C report for guest/vmsr

like: constant of unsigned int need add U/UL as surfix.
enum value can't use to give or compare with int directlly.
unsigned and signed mis-matched

Signed-off-by: Minggui Cao <minggui.cao@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Minggui Cao
2018-07-10 19:07:46 +08:00
committed by Jack Ren
parent 8c43ad54bf
commit 4cab8b9cc5
5 changed files with 78 additions and 78 deletions

View File

@@ -271,11 +271,11 @@ struct vcpu {
#endif
};
#define is_vcpu_bsp(vcpu) ((vcpu)->vcpu_id == 0)
#define is_vcpu_bsp(vcpu) ((vcpu)->vcpu_id == 0U)
/* do not update Guest RIP for next VM Enter */
static inline void vcpu_retain_rip(struct vcpu *vcpu)
{
(vcpu)->arch_vcpu.inst_len = 0;
(vcpu)->arch_vcpu.inst_len = 0U;
}
/* External Interfaces */