mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
hv:Change acrn_vhm_vector to static
-- Change acrn_vhm_vector to static, only used in io_request.c -- Add set_vhm_vector() api, it will call this api instead of acrn_vhm_vector except io_request.c Tracked-On: #1842 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -1138,7 +1138,7 @@ int32_t hcall_set_callback_vector(const struct acrn_vm *vm, uint64_t param)
|
||||
pr_err("%s: Invalid passed vector\n");
|
||||
ret = -EINVAL;
|
||||
} else {
|
||||
acrn_vhm_vector = (uint32_t)param;
|
||||
set_vhm_vector((uint32_t)param);
|
||||
ret = 0;
|
||||
}
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#define ACRN_DBG_IOREQUEST 6U
|
||||
|
||||
uint32_t acrn_vhm_vector = VECTOR_VIRT_IRQ_VHM;
|
||||
static uint32_t acrn_vhm_vector = VECTOR_VIRT_IRQ_VHM;
|
||||
|
||||
static void fire_vhm_interrupt(void)
|
||||
{
|
||||
@@ -195,3 +195,8 @@ void set_vhm_req_state(struct acrn_vm *vm, uint16_t vhm_req_id, uint32_t state)
|
||||
clac();
|
||||
}
|
||||
}
|
||||
|
||||
void set_vhm_vector(uint32_t vector)
|
||||
{
|
||||
acrn_vhm_vector = vector;
|
||||
}
|
||||
|
Reference in New Issue
Block a user