From patchwork Sat Jul 9 04:18:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corneliu ZUZU X-Patchwork-Id: 9221985 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 CAEC460467 for ; Sat, 9 Jul 2016 04:21:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BD9CE2854C for ; Sat, 9 Jul 2016 04:21:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B22C828615; Sat, 9 Jul 2016 04:21:18 +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 4C9A52854C for ; Sat, 9 Jul 2016 04:21:18 +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 1bLjjX-0002Bo-4F; Sat, 09 Jul 2016 04:19:15 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bLjjV-0002Bc-QG for xen-devel@lists.xen.org; Sat, 09 Jul 2016 04:19:13 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 78/1C-28758-14B70875; Sat, 09 Jul 2016 04:19:13 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRWlGSWpSXmKPExsUSfTxjoa5DdUO 4wed2NYslHxezODB6HN39mymAMYo1My8pvyKBNeP/7pfsBXc4KxoW3mRuYFzD0cXIySEk4C7x /cFF9i5GLiB7DaPE2isv2CESJxklpk0PhrDdJLZ9e88IUbSOUWLejBPMIAk2AW2Jc4fuMYHYI gLSEtc+XwYrYhZYzSjR3XSCDSQhLBAu8e/YQrAiFgFVif7H/1m7GDk4eAVcJC7ttgcxJQTkJB ZcSAep4BRwlTj39jUrxF4XiRv7JoF1SgjkSKx8NosdolxK4n+rEsgmCYEeFonnzx+xQ9TISDy aeJNtAqPQAkaGVYwaxalFZalFuoYWeklFmekZJbmJmTm6hgbGermpxcWJ6ak5iUnFesn5uZsY gWFYz8DAuIPx92nPQ4ySHExKorwXbBvChfiS8lMqMxKLM+KLSnNSiw8xynBwKEnwilcB5QSLU tNTK9Iyc4ARAZOW4OBREuHVBEnzFhck5hZnpkOkTjEqSonzcoIkBEASGaV5cG2wKLzEKCslzM vIwMAgxFOQWpSbWYIq/4pRnINRSZg3C2QKT2ZeCdz0V0CLmYAWGwTUgywuSURISTUwxux6u+Z h1UEtHQVVrWbf6o5jnXU9oRcLGk16lBYftnhqz/sijtft3JuLR/mXv/mySztJ3PUI/yXxfe4f Ykx4ZhQpe/46orv2vL3i1lNZKqXbFnPaSM3f855bMisn9z7TnMpuqVBOnau3LzC+rT9Z6Tv1b Nz7mWKv8jTPup5N8Pi48/ndd4zblFiKMxINtZiLihMBlWBg3b0CAAA= X-Env-Sender: czuzu@bitdefender.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1468037952!42046524!1 X-Originating-IP: [91.199.104.161] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 47383 invoked from network); 9 Jul 2016 04:19:12 -0000 Received: from mx01.bbu.dsd.mx.bitdefender.com (HELO mx01.bbu.dsd.mx.bitdefender.com) (91.199.104.161) by server-16.tower-31.messagelabs.com with DHE-RSA-AES128-GCM-SHA256 encrypted SMTP; 9 Jul 2016 04:19:12 -0000 Received: (qmail 12035 invoked from network); 9 Jul 2016 07:19:12 +0300 Received: from unknown (HELO mx-sr.buh.bitdefender.com) (10.17.80.103) by mx01.bbu.dsd.mx.bitdefender.com with AES256-GCM-SHA384 encrypted SMTP; 9 Jul 2016 07:19:11 +0300 Received: from smtp03.buh.bitdefender.org (unknown [10.17.80.77]) by mx-sr.buh.bitdefender.com (Postfix) with ESMTP id C57117FC01 for ; Sat, 9 Jul 2016 07:19:11 +0300 (EEST) Received: (qmail 4497 invoked from network); 9 Jul 2016 07:19:11 +0300 Received: from 188-24-34-246.rdsnet.ro (HELO localhost.localdomain) (czuzu@bitdefender.com@188.24.34.246) by smtp03.buh.bitdefender.org with SMTP; 9 Jul 2016 07:19:11 +0300 From: Corneliu ZUZU To: xen-devel@lists.xen.org Date: Sat, 9 Jul 2016 07:18:29 +0300 Message-Id: <1468037910-6846-1-git-send-email-czuzu@bitdefender.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1468037509-6428-1-git-send-email-czuzu@bitdefender.com> References: <1468037509-6428-1-git-send-email-czuzu@bitdefender.com> X-BitDefender-Scanner: Clean, Agent: BitDefender qmail 3.1.6 on smtp03.buh.bitdefender.org, sigver: 7.66242 X-BitDefender-Spam: No (0) X-BitDefender-SpamStamp: Build: [Engines: 2.15.6.911, Dats: 425852, Stamp: 3], Multi: [Enabled, t: (0.000014, 0.001752)], BW: [Enabled, t: (0.000007,0.000001)], RBL DNSBL: [Disabled], APM: [Enabled, Score: 500, t: (0.002154), Flags: 85D2ED72; NN_NO_CONTENT_TYPE; NN_NO_LINK_NMD; NN_LEGIT_BITDEFENDER; NN_LEGIT_S_SQARE_BRACKETS; NN_LEGIT_MAILING_LIST_TO], SGN: [Enabled, t: (0.008133)], URL: [Enabled, t: (0.000005)], RTDA: [Enabled, t: (0.013246), Hit: No, Details: v2.3.10; Id: 2m1ghmj.1amgkr0nl.111qh], total: 0(775) X-BitDefender-CF-Stamp: none Cc: Julien Grall , Tamas K Lengyel , Stefano Stabellini , Razvan Cojocaru Subject: [Xen-devel] [PATCH 09/16] arm/monitor: move d->monitor cleanup to monitor_cleanup_domain() 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 d->monitor is a monitor subsystem resource, clean it up in the proper stub. Signed-off-by: Corneliu ZUZU --- xen/include/asm-arm/monitor.h | 2 +- xen/include/asm-arm/vm_event.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/include/asm-arm/monitor.h b/xen/include/asm-arm/monitor.h index 5a0fc65..9a9734a 100644 --- a/xen/include/asm-arm/monitor.h +++ b/xen/include/asm-arm/monitor.h @@ -54,7 +54,7 @@ static inline int monitor_init_domain(struct domain *d) static inline void monitor_cleanup_domain(struct domain *d) { - /* No arch-specific domain cleanup on ARM. */ + memset(&d->monitor, 0, sizeof(d->monitor)); } static inline diff --git a/xen/include/asm-arm/vm_event.h b/xen/include/asm-arm/vm_event.h index 93fc4db..3a8f585 100644 --- a/xen/include/asm-arm/vm_event.h +++ b/xen/include/asm-arm/vm_event.h @@ -39,8 +39,6 @@ void vm_event_cleanup_domain(struct domain *d, struct vm_event_domain *ved) /* Uninitialize specified subsystem. */ if ( &d->vm_event->monitor == ved ) monitor_cleanup_domain(d); - - memset(&d->monitor, 0, sizeof(d->monitor)); } static inline void vm_event_toggle_singlestep(struct domain *d, struct vcpu *v)