diff --git a/hypervisor/arch/x86/guest/virq.c b/hypervisor/arch/x86/guest/virq.c index a0451ec75..a1e021678 100644 --- a/hypervisor/arch/x86/guest/virq.c +++ b/hypervisor/arch/x86/guest/virq.c @@ -304,12 +304,6 @@ void vcpu_inject_ud(struct acrn_vcpu *vcpu) (void)vcpu_queue_exception(vcpu, IDT_UD, 0); } -/* Inject alignment check exception(#AC) to guest */ -void vcpu_inject_ac(struct acrn_vcpu *vcpu) -{ - (void)vcpu_queue_exception(vcpu, IDT_AC, 0); -} - /* Inject stack fault exception(#SS) to guest */ void vcpu_inject_ss(struct acrn_vcpu *vcpu) { diff --git a/hypervisor/include/arch/x86/irq.h b/hypervisor/include/arch/x86/irq.h index 6abf23be6..1b2da09fc 100644 --- a/hypervisor/include/arch/x86/irq.h +++ b/hypervisor/include/arch/x86/irq.h @@ -199,17 +199,6 @@ void vcpu_inject_pf(struct acrn_vcpu *vcpu, uint64_t addr, uint32_t err_code); */ void vcpu_inject_ud(struct acrn_vcpu *vcpu); -/** - * @brief Inject alignment check exeception(AC) to guest. - * - * @param[in] vcpu Pointer to vCPU. - * - * @return None - * - * @pre vcpu != NULL - */ -void vcpu_inject_ac(struct acrn_vcpu *vcpu); - /** * @brief Inject stack fault exeception(SS) to guest. *