From patchwork Thu May 26 13:39:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Feng" X-Patchwork-Id: 9137007 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 238E66075C for ; Thu, 26 May 2016 14:05:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 182AC281D4 for ; Thu, 26 May 2016 14:05:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D006282F2; Thu, 26 May 2016 14:05:32 +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 943FD27984 for ; Thu, 26 May 2016 14:05:31 +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 1b5vsp-0006gi-6i; Thu, 26 May 2016 14:03:31 +0000 Received: from mail6.bemta6.messagelabs.com ([85.158.143.247]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5vso-0006ff-1p for xen-devel@lists.xen.org; Thu, 26 May 2016 14:03:30 +0000 Received: from [85.158.143.35] by server-1.bemta-6.messagelabs.com id 17/D0-19820-13207475; Thu, 26 May 2016 14:03:29 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRWlGSWpSXmKPExsVywNykQteQyT3 c4NF8ZoslHxezODB6HN39mymAMYo1My8pvyKBNWPJyv8sBR9ZKn5/O8LYwDiNpYuRk0NIoFJi 8ZPbYLaEAK/EkWUzWLsYOYBsf4mXbz0gSuol3t46xQRiswkoShy8eIgVxBYRkJa49vkyYxcjF wezwAlGid9TZoIlhAVCJJ5sWM0IYrMIqEosXNcJFucVcJA4PmUDK8QuOYkNu/+D1XAKOEr8+3 6aEWKZg8SDuWcYJzDyLmBkWMWoXpxaVJZapGusl1SUmZ5RkpuYmaNraGCml5taXJyYnpqTmFS sl5yfu4kRGAoMQLCDseOf0yFGSQ4mJVFecXG3cCG+pPyUyozE4oz4otKc1OJDjDIcHEoSvJcO AOUEi1LTUyvSMnOAQQmTluDgURLh3c/gHi7EW1yQmFucmQ6ROsWoy7Hgx+21TEIsefl5qVLiv GtBigRAijJK8+BGwCLkEqOslDAvI9BRQjwFqUW5mSWo8q8YxTkYlYR574BM4cnMK4Hb9AroCC agI/y/OIMcUZKIkJJqYAx70dJ0r/PU/v5PvsrHjJd68nduO++ybrrYdoWzfXcWKSwJr9QoWxf 4cmf6/Ikq1mUs649fPPd08+xp6zcvD5/z5M3y3pTibbKar0sTxRiPB0Us8Jxn/eJX88mZd85l l91/e0Qj7ehWtu6IZP19VwuLuvcoPS14vHqDAaeYX626vatyXv3hbUuUWIozEg21mIuKEwF+4 IauiwIAAA== X-Env-Sender: feng.wu@intel.com X-Msg-Ref: server-9.tower-21.messagelabs.com!1464271404!16005351!3 X-Originating-IP: [192.55.52.120] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 22660 invoked from network); 26 May 2016 14:03:28 -0000 Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by server-9.tower-21.messagelabs.com with SMTP; 26 May 2016 14:03:28 -0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 26 May 2016 07:03:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,367,1459839600"; d="scan'208";a="110948256" Received: from feng-bdw-de-pi.bj.intel.com ([10.238.154.60]) by fmsmga004.fm.intel.com with ESMTP; 26 May 2016 07:03:26 -0700 From: Feng Wu To: xen-devel@lists.xen.org Date: Thu, 26 May 2016 21:39:12 +0800 Message-Id: <1464269954-8056-3-git-send-email-feng.wu@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1464269954-8056-1-git-send-email-feng.wu@intel.com> References: <1464269954-8056-1-git-send-email-feng.wu@intel.com> Cc: kevin.tian@intel.com, keir@xen.org, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, jbeulich@suse.com, Feng Wu Subject: [Xen-devel] [PATCH v2 2/4] 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 65f5288..b01128a 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -366,6 +366,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);