Message ID | 1474425470-3629-4-git-send-email-feng.wu@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <xen-devel-bounces@lists.xen.org> 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 CCEF260B16 for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 21 Sep 2016 03:10:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D39592969F for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 21 Sep 2016 03:10:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C7CCB29CDD; Wed, 21 Sep 2016 03:10:23 +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 EB3F32969F for <patchwork-xen-devel@patchwork.kernel.org>; Wed, 21 Sep 2016 03:10:22 +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 <xen-devel-bounces@lists.xen.org>) id 1bmXt7-0002fx-MC; Wed, 21 Sep 2016 03:07:57 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from <feng.wu@intel.com>) id 1bmXt6-0002fn-By for xen-devel@lists.xen.org; Wed, 21 Sep 2016 03:07:56 +0000 Received: from [85.158.143.35] by server-4.bemta-6.messagelabs.com id 3C/DE-29421-B89F1E75; Wed, 21 Sep 2016 03:07:55 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrFLMWRWlGSWpSXmKPExsVywNwkVrf758N wg+kXhC2WfFzM4sDocXT3b6YAxijWzLyk/IoE1oy/H0+wFyxjrfhwaRZ7A+N2li5GTg4hgQqJ e1c+soLYEgK8EkeWzYCyAyQu7z3MBFFTL3F66mmwejYBRYmDFw+B1YgISEtc+3yZsYuRi4NZY AGjROPFo8wgCWGBEIlDl0+xgdgsAqoSK5tugzXzCjhIrHo0hQVigZzEht3/GUFsTgFHiRttn6 CWOUg8/PqRfQIj7wJGhlWMGsWpRWWpRbqGFnpJRZnpGSW5iZk5uoYGZnq5qcXFiempOYlJxXr J+bmbGIHhwAAEOxhvbgw4xCjJwaQkyivH9yBciC8pP6UyI7E4I76oNCe1+BCjDAeHkgTvth8P w4UEi1LTUyvSMnOAgQmTluDgURLhFQJJ8xYXJOYWZ6ZDpE4x6nIs+HF7LZMQS15+XqqUOG8FS JEASFFGaR7cCFiUXGKUlRLmZQQ6SoinILUoN7MEVf4VozgHo5Iw73yQKTyZeSVwm14BHcEEdM SWnw9AjihJREhJNTC6mYcv/VHp7bx6faZGmIrE1ITnJRvcFstbT1qxo3yL7KR7y3ckbnt07zZ HXZLmhuxYx1bD9VWG2WZvlr80bJGKn3ZD1nvD62vlWsYrjff7Ws9xjLZbou14U9ulZ5Nnl+At 6fM2P2akhV2WKJqo9ijUqSbJ8flno2+sfmf+y/Klicvfn5Ym+1OJpTgj0VCLuag4EQDR0Ly6j QIAAA== X-Env-Sender: feng.wu@intel.com X-Msg-Ref: server-12.tower-21.messagelabs.com!1474427268!34296260!4 X-Originating-IP: [192.55.52.93] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTkyLjU1LjUyLjkzID0+IDMyNDY2NQ==\n X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 50194 invoked from network); 21 Sep 2016 03:07:54 -0000 Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by server-12.tower-21.messagelabs.com with DHE-RSA-CAMELLIA256-SHA encrypted SMTP; 21 Sep 2016 03:07:54 -0000 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 20 Sep 2016 20:07:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.30,371,1470726000"; d="scan'208"; a="1033977552" Received: from feng-bdw-de-pi.bj.intel.com ([10.238.154.76]) by orsmga001.jf.intel.com with ESMTP; 20 Sep 2016 20:07:52 -0700 From: Feng Wu <feng.wu@intel.com> To: xen-devel@lists.xen.org Date: Wed, 21 Sep 2016 10:37:47 +0800 Message-Id: <1474425470-3629-4-git-send-email-feng.wu@intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1474425470-3629-1-git-send-email-feng.wu@intel.com> References: <1474425470-3629-1-git-send-email-feng.wu@intel.com> Cc: kevin.tian@intel.com, Feng Wu <feng.wu@intel.com>, george.dunlap@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, jbeulich@suse.com Subject: [Xen-devel] [PATCH v4 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 <xen-devel.lists.xen.org> List-Unsubscribe: <https://lists.xen.org/cgi-bin/mailman/options/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=unsubscribe> List-Post: <mailto:xen-devel@lists.xen.org> List-Help: <mailto:xen-devel-request@lists.xen.org?subject=help> List-Subscribe: <https://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" <xen-devel-bounces@lists.xen.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c index 7305f40..821cba2 100644 --- a/xen/arch/x86/hvm/vmx/vmx.c +++ b/xen/arch/x86/hvm/vmx/vmx.c @@ -336,6 +336,7 @@ static void vmx_vcpu_destroy(struct vcpu *v) * separately here. */ vmx_vcpu_disable_pml(v); + vmx_pi_list_cleanup(v); vmx_destroy_vmcs(v); vpmu_destroy(v); passive_domain_destroy(v);
We should remove the vCPU from the per-cpu blocking list if it is going to be destroyed. Signed-off-by: Feng Wu <feng.wu@intel.com> --- v4: - Call vmx_pi_list_cleanup() before vmx_destroy_vmcs() xen/arch/x86/hvm/vmx/vmx.c | 1 + 1 file changed, 1 insertion(+)