From patchwork Wed Aug 31 03:56:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Feng" X-Patchwork-Id: 9306305 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 CD84E607D2 for ; Wed, 31 Aug 2016 04:28:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB84628B87 for ; Wed, 31 Aug 2016 04:28:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEA4928E23; Wed, 31 Aug 2016 04:28:02 +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 4354328B87 for ; Wed, 31 Aug 2016 04:28:00 +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 1bex5e-00017W-UB; Wed, 31 Aug 2016 04:25:30 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bex5d-000178-3n for xen-devel@lists.xen.org; Wed, 31 Aug 2016 04:25:29 +0000 Received: from [85.158.143.35] by server-8.bemta-6.messagelabs.com id 91/AD-05361-83C56C75; Wed, 31 Aug 2016 04:25:28 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRWlGSWpSXmKPExsXS1tYhomsecyz c4OZyG4slHxezODB6HN39mymAMYo1My8pvyKBNePQ5n3sBR9ZKo49n8LYwDiNpYuRk0NIoFJi eeMtZhBbQoBX4siyGawQtq/Ey7ZpzBA19RI7V/5kBLHZBBQlDl48BFYjIiAtce3zZaA4Fwezw AJGicaLR8EahAVCJD7cXsgGYrMIqEp83rAIrJlXwEFicstUqGVyEht2/weLcwo4Svw4/hCong NomYPEjnvGExh5FzAyrGJUL04tKkst0rXUSyrKTM8oyU3MzNE1NDDTy00tLk5MT81JTCrWS87 P3cQIDAUGINjBeHdTwCFGSQ4mJVHe8L9Hw4X4kvJTKjMSizPii0pzUosPMcpwcChJ8NpFHwsX EixKTU+tSMvMAQYlTFqCg0dJhFcCJM1bXJCYW5yZDpE6xajLseDH7bVMQix5+XmpUuK876KAi gRAijJK8+BGwCLkEqOslDAvI9BRQjwFqUW5mSWo8q8YxTkYlYR5D4FM4cnMK4Hb9AroCCagIw ruHAY5oiQRISXVwJgzyTb/+s/QoGv+9xuirl1Q55lUUq0j+Gq23cX+3aueivx6aLntv23fvSv 3l/ld0SzKYFv88qxK5/N5UqseduzonqrL1Gn2RCYgLW/P8jUVn6b6dNst3KlgHnm0X+PItEva Lq1ttybO7fW3uFXeJ3B3wkzR65trtX7VdsfvX93/dsJ7YTcOxVglluKMREMt5qLiRAAi6Wkoi wIAAA== X-Env-Sender: feng.wu@intel.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1472617522!30750590!4 X-Originating-IP: [134.134.136.20] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTM0LjEzNC4xMzYuMjAgPT4gMzU1MzU4\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31718 invoked from network); 31 Aug 2016 04:25:27 -0000 Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by server-10.tower-21.messagelabs.com with DHE-RSA-CAMELLIA256-SHA encrypted SMTP; 31 Aug 2016 04:25:27 -0000 Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga101.jf.intel.com with ESMTP; 30 Aug 2016 21:25:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,260,1470726000"; d="scan'208";a="2931020" Received: from feng-bdw-de-pi.bj.intel.com ([10.238.154.74]) by fmsmga005.fm.intel.com with ESMTP; 30 Aug 2016 21:25:25 -0700 From: Feng Wu To: xen-devel@lists.xen.org Date: Wed, 31 Aug 2016 11:56:28 +0800 Message-Id: <1472615791-8664-4-git-send-email-feng.wu@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1472615791-8664-1-git-send-email-feng.wu@intel.com> References: <1472615791-8664-1-git-send-email-feng.wu@intel.com> Cc: kevin.tian@intel.com, Feng Wu , george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, jbeulich@suse.com Subject: [Xen-devel] [PATCH v3 3/6] VMX: Cleanup PI per-cpu blocking list when vcpu is destroyed 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: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP We should remove the vCPU from the per-cpu blocking list if it is going to be destroyed. Signed-off-by: Feng Wu --- xen/arch/x86/hvm/vmx/vmx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index b869728..37fa2f1 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -346,6 +346,7 @@ static void vmx_vcpu_destroy(struct vcpu *v) vmx_destroy_vmcs(v); vpmu_destroy(v); passive_domain_destroy(v); + vmx_pi_blocking_cleanup(v); } static DEFINE_PER_CPU(struct vmx_msr_state, host_msr_state);