From patchwork Thu Feb 23 08:50:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xuquan (Euler)" X-Patchwork-Id: 9587953 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4ADBA60210 for ; Thu, 23 Feb 2017 08:52:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 40A5F285B1 for ; Thu, 23 Feb 2017 08:52:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3468F286B4; Thu, 23 Feb 2017 08:52:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B0577285B1 for ; Thu, 23 Feb 2017 08:52:51 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgp6d-0003wB-Pn; Thu, 23 Feb 2017 08:50:31 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgp6c-0003w2-BY for xen-devel@lists.xen.org; Thu, 23 Feb 2017 08:50:30 +0000 Received: from [193.109.254.147] by server-7.bemta-6.messagelabs.com id E3/3F-24539-552AEA85; Thu, 23 Feb 2017 08:50:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrIKsWRWlGSWpSXmKPExsVSPpHPUTdo0bo Ig2tH+CyWfFzM4sDocXT3b6YAxijWzLyk/IoE1owtd9tYC2bLVmz9P5WpgfGnVBcjF4eQwBlG ic+/JjJBOBsYJbp3PWbrYuTkYBPQldh++hQriC0iYC6xdckWRpAiZoETTBKr1v5kB0kIC0RKv O85wAJRFCdxYeUnRghbT+JYL8hUTg4WAVWJ3a9ngdXwCgRLLPu/BGwBo4CYxPdTa8BqmAXEJe ZOmwW2TEJAROLhxdNsELaYxL9dD6FsRYk9fR9YIeozJK61zmSHmCkocXLmExaIGkmJgytusIA cKiFwgVGi/9dCqKGmEoduLmSdwCgyC8m+WUhmzUIyCyKuI7Fg9yc2CFtbYtnC18wQdr7ElDfP oXpDJPauWAVkgwLmNqPE6WkvoRKKElO6H7IvYORcxahenFpUllqka6mXVJSZnlGSm5iZo2toY KaXm1pcnJiempOYVKyXnJ+7iREYlQxAsIPx7qaAQ4ySHExKorwnY9dFCPEl5adUZiQWZ8QXle akFh9ilOHgUJLg3bwAKCdYlJqeWpGWmQNMDzBpCQ4eJRFeFZA0b3FBYm5xZjpE6hSjopQ473a QhABIIqM0D64NlpIuMcpKCfMyAh0ixFOQWpSbWYIq/4pRnINRSZj3CcgUnsy8Erjpr4AWMwEt tnReC7K4JBEhJdXAWH9S4w7rZb5ne05/nrjM2vmL/5UdvJPuiEbbL9a7cY5vxzMug577rzxnd M2VqvwqOP2DWLWUztzDz8O5Km9tW7H33tuA6T6nr//iWsRYInvtmtuLxX2nEhu17i00/mp34+ OOpwkTUuu3tR2ykGZ6p3Rl55N3TVEMDvf2vf11z698wuNth2yufvVVYinOSDTUYi4qTgQA9zc DEEQDAAA= X-Env-Sender: xuquan8@huawei.com X-Msg-Ref: server-16.tower-27.messagelabs.com!1487839818!88146651!1 X-Originating-IP: [119.145.14.65] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NSA9PiA3NzQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 9.2.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 46360 invoked from network); 23 Feb 2017 08:50:25 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-16.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 23 Feb 2017 08:50:25 -0000 Received: from 172.24.1.137 (EHLO SZXEMI403-HUB.china.huawei.com) ([172.24.1.137]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DUV08534; Thu, 23 Feb 2017 16:50:14 +0800 (CST) Received: from SZXEMI506-MBX.china.huawei.com ([169.254.5.247]) by SZXEMI403-HUB.china.huawei.com ([10.83.65.55]) with mapi id 14.03.0235.001; Thu, 23 Feb 2017 16:50:04 +0800 From: "Xuquan (Quan Xu)" To: "xen-devel@lists.xen.org" Thread-Topic: [PATCH] x86/apicv: move posted_intr_vector handler to pi_notification_interrupt Thread-Index: AdKNsdLwJ3D0ELMjReSqKmIrufpDgw== Date: Thu, 23 Feb 2017 08:50:03 +0000 Message-ID: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [10.142.69.246] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090202.58AEA247.0001, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.5.247, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: e50aaeb942a6205d71abc52e9d86b2fb Cc: "yang.zhang.wz@gmail.com" , Kevin Tian , "quan.xu0@gmail.com" , Jan Beulich , Andrew Cooper , "Nakajima, Jun" , "Gao, Chao" Subject: [Xen-devel] [PATCH] x86/apicv: move posted_intr_vector handler to pi_notification_interrupt X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From e101539e18625cb70dfaee58ae7e73aa5df7b8a9 Mon Sep 17 00:00:00 2001 From: Quan Xu Date: Fri, 24 Feb 2017 08:43:16 +0800 Subject: [PATCH] x86/apicv: move posted_intr_vector handler to pi_notification_interrupt event_check_interrupt is likely used in pair with original delivery logic. Now since delivery path is changed, we should move to pi_notification_interrupt always. Signed-off-by: Quan Xu --- xen/arch/x86/hvm/vmx/vmx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- 1.8.3.1 diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 61925cf..1b026fa 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -2279,13 +2279,9 @@ const struct hvm_function_table * __init start_vmx(void) if ( cpu_has_vmx_posted_intr_processing ) { + alloc_direct_apic_vector(&posted_intr_vector, pi_notification_interrupt); if ( iommu_intpost ) - { - alloc_direct_apic_vector(&posted_intr_vector, pi_notification_interrupt); alloc_direct_apic_vector(&pi_wakeup_vector, pi_wakeup_interrupt); - } - else - alloc_direct_apic_vector(&posted_intr_vector, event_check_interrupt); } else {