mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
HV:fix type related violations
1.Function return type inconsistent 2.cast on a constant value V1->V2 add () to return type V2->V3 keep the sbuf_get and sbuf_put return code 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:
@@ -132,7 +132,6 @@ int rdmsr_vmexit_handler(struct vcpu *vcpu);
|
||||
int wrmsr_vmexit_handler(struct vcpu *vcpu);
|
||||
void init_msr_emulation(struct vcpu *vcpu);
|
||||
|
||||
extern const char vm_exit;
|
||||
struct run_context;
|
||||
int vmx_vmrun(struct run_context *context, int ops, int ibrs);
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ struct per_cpu_timers {
|
||||
|
||||
struct hv_timer {
|
||||
struct list_head node; /* link all timers */
|
||||
int mode; /* timer mode: one-shot or periodic */
|
||||
enum tick_mode mode; /* timer mode: one-shot or periodic */
|
||||
uint64_t fire_tsc; /* tsc deadline to interrupt */
|
||||
uint64_t period_in_cycle; /* period of the periodic timer in unit of TSC cycles */
|
||||
timer_handle_t func; /* callback if time reached */
|
||||
|
||||
@@ -16,7 +16,7 @@ int vmexit_handler(struct vcpu *vcpu);
|
||||
int vmcall_vmexit_handler(struct vcpu *vcpu);
|
||||
int cpuid_vmexit_handler(struct vcpu *vcpu);
|
||||
int cr_access_vmexit_handler(struct vcpu *vcpu);
|
||||
|
||||
extern void vm_exit(void);
|
||||
static inline uint64_t
|
||||
vm_exit_qualification_bit_mask(uint64_t exit_qual, uint32_t msb, uint32_t lsb)
|
||||
{
|
||||
|
||||
@@ -20,13 +20,12 @@ enum {
|
||||
HV_NPK_LOG_CMD_QUERY,
|
||||
};
|
||||
|
||||
enum {
|
||||
HV_NPK_LOG_RES_INVALID,
|
||||
HV_NPK_LOG_RES_OK,
|
||||
HV_NPK_LOG_RES_KO,
|
||||
HV_NPK_LOG_RES_ENABLED,
|
||||
HV_NPK_LOG_RES_DISABLED,
|
||||
};
|
||||
|
||||
#define HV_NPK_LOG_RES_INVALID 0x1U
|
||||
#define HV_NPK_LOG_RES_OK 0x2U
|
||||
#define HV_NPK_LOG_RES_KO 0x3U
|
||||
#define HV_NPK_LOG_RES_ENABLED 0x4U
|
||||
#define HV_NPK_LOG_RES_DISABLED 0x5U
|
||||
|
||||
struct hv_npk_log_param;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user