From patchwork Tue Oct 11 00:57:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Feng" X-Patchwork-Id: 9370045 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 373CC60487 for ; Tue, 11 Oct 2016 01:30:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 313E828CB1 for ; Tue, 11 Oct 2016 01:30:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 25D1328CB3; Tue, 11 Oct 2016 01:30:57 +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 8E18028D30 for ; Tue, 11 Oct 2016 01:30:56 +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 1btls8-0005vq-Ra; Tue, 11 Oct 2016 01:28:48 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1btls7-0005ve-Fy for xen-devel@lists.xen.org; Tue, 11 Oct 2016 01:28:47 +0000 Received: from [85.158.143.35] by server-4.bemta-6.messagelabs.com id E7/6B-29421-E404CF75; Tue, 11 Oct 2016 01:28:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRWlGSWpSXmKPExsVywNxEW9fP4U+ 4wfV2EYslHxezODB6HN39mymAMYo1My8pvyKBNeNX7wPWglWsFZt/HGJuYNzF0sXIySEkUCnx 9ftlRhBbQoBX4siyGawQtr/Emgcv2CBq6iXmPN4OVs8moChx8OIhsBoRAWmJa59Berk4mAUWM Eo0XjzKDJIQFgiR6Pu8EMjm4GARUJX4/oIXJMwr4Cix8+hLZoj5chIbdv8H28sp4CQx+e1UNp ByIaCajv3sExh5FzAyrGJUL04tKkst0jXVSyrKTM8oyU3MzNE1NDDTy00tLk5MT81JTCrWS87 P3cQIDAQGINjBOP2y/yFGSQ4mJVHeIqM/4UJ8SfkplRmJxRnxRaU5qcWHGGU4OJQkePXsgXKC RanpqRVpmTnAkIRJS3DwKInw5oOkeYsLEnOLM9MhUqcYdTkW/Li9lkmIJS8/L1VKnJcTpEgAp CijNA9uBCw+LjHKSgnzMgIdJcRTkFqUm1mCKv+KUZyDUUmY1wRkCk9mXgncpldARzABHcGy+A fIESWJCCmpBsbqRUxrZ/8N+T3v+O4LDGbO851ZOGsZajTrszsNMsVnMofUtPtneFztV/dK6Mn gvqi1rlngc8zq3hOuYREbA0P2uEwOP3FUO8ZfKuXYo0CTpV133/GUcm4IrrikdieVe+9uuy8h Js9/uXHeNboacTGcqW1e5+I5+VOMH3+ePqvLbRK3mErdJSWW4oxEQy3mouJEAHghTTGKAgAA X-Env-Sender: feng.wu@intel.com X-Msg-Ref: server-10.tower-21.messagelabs.com!1476149320!30791318!4 X-Originating-IP: [192.55.52.43] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 54598 invoked from network); 11 Oct 2016 01:28:45 -0000 Received: from mga05.intel.com (HELO mga05.intel.com) (192.55.52.43) by server-10.tower-21.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 11 Oct 2016 01:28:45 -0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 10 Oct 2016 18:28:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,327,1473145200"; d="scan'208";a="178535718" Received: from feng-bdw-de-pi.bj.intel.com ([10.238.154.57]) by fmsmga004.fm.intel.com with ESMTP; 10 Oct 2016 18:28:44 -0700 From: Feng Wu To: xen-devel@lists.xen.org Date: Tue, 11 Oct 2016 08:57:49 +0800 Message-Id: <1476147473-30970-4-git-send-email-feng.wu@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1476147473-30970-1-git-send-email-feng.wu@intel.com> References: <1476147473-30970-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 v5 3/7] 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 --- v5: - Use vmx_pi_list_remove() instead of vmx_pi_list_cleanup() 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 d210516..b8b152a 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -337,6 +337,7 @@ static void vmx_vcpu_destroy(struct vcpu *v) * separately here. */ vmx_vcpu_disable_pml(v); + vmx_pi_list_remove(v); vmx_destroy_vmcs(v); vpmu_destroy(v); passive_domain_destroy(v);