From patchwork Fri Apr 29 14:49:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 8983571 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B3F009F372 for ; Fri, 29 Apr 2016 14:51:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 036E1201C8 for ; Fri, 29 Apr 2016 14:51:07 +0000 (UTC) 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.kernel.org (Postfix) with ESMTPS id 2E59920114 for ; Fri, 29 Apr 2016 14:51:06 +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 1aw9jL-0000Eq-Fi; Fri, 29 Apr 2016 14:49:19 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aw9jJ-0000Ee-Vg for xen-devel@lists.xenproject.org; Fri, 29 Apr 2016 14:49:18 +0000 Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id 2D/A9-06723-D6473275; Fri, 29 Apr 2016 14:49:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDIsWRWlGSWpSXmKPExsXS6fjDSzenRDn c4PhcHYvvWyYzOTB6HP5whSWAMYo1My8pvyKBNeP/7W7Ggns8Faemr2dvYHzM1cXIySEkkCex ovUHI4jNK2An8fr5LxYQW0LAUGLf/FVsIDaLgKrEr49PWEFsNgF1ibZn24FsDg4RAQOJc0eTu hi5OJgFGhkl7rR8YgapERbQlXj5ZDFYjRDQzOUvUkDCnAL2ErMvtzODhHkFBCX+7hAGCTMDVb w93co4gZFnFkJmFpIMhK0l8fDXLRYIW1ti2cLXzCDlzALSEsv/cUCErSSOnDjNiKoExHaV+Pj nFOMCRo5VjOrFqUVlqUW6pnpJRZnpGSW5iZk5uoYGpnq5qcXFiempOYlJxXrJ+bmbGIGhygAE Oxi/9DsfYpTkYFIS5b2qqxwuxJeUn1KZkVicEV9UmpNafIhRhoNDSYL3aRFQTrAoNT21Ii0zB xg1MGkJDh4lEd7kYqA0b3FBYm5xZjpE6hSjopQ4rwpIQgAkkVGaB9cGi9RLjLJSwryMQIcI8R SkFuVmlqDKv2IU52BUEuZ1A5nCk5lXAjf9FdBiJqDFApsUQRaXJCKkpBoYq612sNW91Cj+tXh iybytR33ObDp67u+jt2I7NL1Eny+cuzToT2pRVTuTW9ujgmNlBtveCiXMbg/ikTfsykxunrD+ r/cdi3/Zfi8etBet07XjFDr9em9V0d6dJRXeHv5ZwUWcZwS8OOK2hfIfC6h02rZ75oxGXutXE rbyFRKuBr5FhblmxyqVWIozEg21mIuKEwFeTA2izwIAAA== X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-6.tower-206.messagelabs.com!1461941354!36923661!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 46921 invoked from network); 29 Apr 2016 14:49:16 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-6.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 29 Apr 2016 14:49:16 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Fri, 29 Apr 2016 08:49:14 -0600 Message-Id: <5723908F02000078000E744C@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.0 Date: Fri, 29 Apr 2016 08:49:19 -0600 From: "Jan Beulich" To: "xen-devel" References: <57238EAA02000078000E741D@prv-mh.provo.novell.com> In-Reply-To: <57238EAA02000078000E741D@prv-mh.provo.novell.com> Mime-Version: 1.0 Cc: George Dunlap , Andrew Cooper , Wei Liu Subject: [Xen-devel] [PATCH 1/2] x86/p2m: clean up altp2m 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Jan Beulich x86/p2m: clean up altp2m Signed-off-by: Jan Beulich --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -618,9 +618,11 @@ void p2m_teardown(struct p2m_domain *p2m void p2m_final_teardown(struct domain *d) { - /* We must teardown unconditionally because + /* + * We must teardown both of them unconditionally because * we initialise them unconditionally. */ + p2m_teardown_altp2m(d); p2m_teardown_nestedp2m(d); /* Iterate over all p2m tables per domain */ Reviewed-by: Andrew Cooper Acked-by: George Dunlap --- a/xen/arch/x86/mm/p2m.c +++ b/xen/arch/x86/mm/p2m.c @@ -618,9 +618,11 @@ void p2m_teardown(struct p2m_domain *p2m void p2m_final_teardown(struct domain *d) { - /* We must teardown unconditionally because + /* + * We must teardown both of them unconditionally because * we initialise them unconditionally. */ + p2m_teardown_altp2m(d); p2m_teardown_nestedp2m(d); /* Iterate over all p2m tables per domain */