mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 00:38:28 +00:00
HV:fix vcpu violations
vcpu is never scan because of scan tool will be crashed! After modulization, the vcpu can be scaned by the scan tool. Clean up the violations in vcpu.c. Fix the violations: 1.No brackets to then/else. 2.Function return value not checked. 3.Signed/unsigned coversion without cast. V1->V2: change the type of "vcpu->arch.irq_window_enabled" to bool. V2->V3: add "void *" prefix on the 1st parameter of memset. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -324,7 +324,7 @@ struct acrn_vcpu_arch {
|
||||
} exception_info;
|
||||
|
||||
uint8_t lapic_mask;
|
||||
uint32_t irq_window_enabled;
|
||||
bool irq_window_enabled;
|
||||
uint32_t nrexits;
|
||||
|
||||
/* VCPU context state information */
|
||||
|
Reference in New Issue
Block a user