Skip to content

Commit c5391d2

Browse files
ying2liuacrnsi
authored andcommitted
HV: remove unused function vcpu_inject_ac
Change-Id: I4b139e78c372d0941923fc8260db7a3578a894f2 Tracked-On: #3123 Signed-off-by: yliu79 <ying2.liu@intel.com> Reviewed-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent 26de86d commit c5391d2

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

hypervisor/arch/x86/guest/virq.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,6 @@ void vcpu_inject_ud(struct acrn_vcpu *vcpu)
304304
(void)vcpu_queue_exception(vcpu, IDT_UD, 0);
305305
}
306306

307-
/* Inject alignment check exception(#AC) to guest */
308-
void vcpu_inject_ac(struct acrn_vcpu *vcpu)
309-
{
310-
(void)vcpu_queue_exception(vcpu, IDT_AC, 0);
311-
}
312-
313307
/* Inject stack fault exception(#SS) to guest */
314308
void vcpu_inject_ss(struct acrn_vcpu *vcpu)
315309
{

hypervisor/include/arch/x86/irq.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,6 @@ void vcpu_inject_pf(struct acrn_vcpu *vcpu, uint64_t addr, uint32_t err_code);
199199
*/
200200
void vcpu_inject_ud(struct acrn_vcpu *vcpu);
201201

202-
/**
203-
* @brief Inject alignment check exeception(AC) to guest.
204-
*
205-
* @param[in] vcpu Pointer to vCPU.
206-
*
207-
* @return None
208-
*
209-
* @pre vcpu != NULL
210-
*/
211-
void vcpu_inject_ac(struct acrn_vcpu *vcpu);
212-
213202
/**
214203
* @brief Inject stack fault exeception(SS) to guest.
215204
*

0 commit comments

Comments
 (0)