From bef6dbc23883e028dad60422ac9f2eee64a87d42 Mon Sep 17 00:00:00 2001 From: Shuo A Liu Date: Sat, 8 May 2021 14:34:39 +0800 Subject: [PATCH] hv: WA ACRN-6886: Interrupt the target CPU and let it do PI with VMENTRY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tracked-On: #5866 Signed-off-by: Shuo A Liu --- hypervisor/arch/x86/guest/vlapic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/guest/vlapic.c b/hypervisor/arch/x86/guest/vlapic.c index f856a2acd..e06851046 100644 --- a/hypervisor/arch/x86/guest/vlapic.c +++ b/hypervisor/arch/x86/guest/vlapic.c @@ -521,7 +521,8 @@ static void apicv_advanced_accept_intr(struct acrn_vlapic *vlapic, uint32_t vect bitmap_set_lock(ACRN_REQUEST_EVENT, &vcpu->arch.pending_req); if (get_pcpu_id() != pcpuid_from_vcpu(vcpu)) { - apicv_trigger_pi_anv(pcpuid_from_vcpu(vcpu), (uint32_t)vcpu->arch.pid.control.bits.nv); + /* WA: Interrupt the target CPU and let it do PI with VMENTRY */ + vcpu_make_request(vcpu, ACRN_REQUEST_EVENT); } } }