Message ID | 1427111639-4575-5-git-send-email-takahiro.akashi@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@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 365769F318 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Mar 2015 12:01:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8CFC42017E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Mar 2015 12:00:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B810B200CA for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 23 Mar 2015 12:00:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ya104-0003YB-GP; Mon, 23 Mar 2015 11:58:32 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Ya0xQ-0001kb-VD for linux-arm-kernel@lists.infradead.org; Mon, 23 Mar 2015 11:55:49 +0000 Received: by pdbcz9 with SMTP id cz9so185413674pdb.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 23 Mar 2015 04:55:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=rIy5SQZFGGQFBm6En8OgHUtxw9spzZ+QeS5HG3kDyFI=; b=Y4hcjqSZLSsFKNHjC5yHGKtYoN34ixQtAn0chcMJR89HIcq5O8c7PvDwiVt/meIjZk B5Q1jhrFeAu2Fq5GlGAzzTtV14x3c4hPldJtbhngTXmQxqX69nvCbe18WdQaF+gDWV1w 53x3jsyguJ3sfiAg59Vh8jhofJT7aHBGhvQquedvxEMzYDCFGkEBoX4pA8+c/7zNZdcN 2Yds20k4StN1xs4a+kmLyn/akWbyaasEzrtwlyAzAQaiIuF9JYTyli6BdmOub6DbV0+w dYAV1vytXSQ12iPI6+Q1ioJ+iilbGKqeWE+Q1zJIe1woGx3pWf0kRgE0R1Qy9DJ8XWt/ EcDg== X-Gm-Message-State: ALoCoQkNfvd1Ckpw5uSnVWT/xdFETivBBNIYPxiIi5kLC3wYpJnM6WYmlBvDh0oxUhbjfvBC4Ptw X-Received: by 10.68.182.132 with SMTP id ee4mr20433926pbc.24.1427111727700; Mon, 23 Mar 2015 04:55:27 -0700 (PDT) Received: from localhost.localdomain (61-205-5-195m5.grp1.mineo.jp. [61.205.5.195]) by mx.google.com with ESMTPSA id ok8sm799377pdb.66.2015.03.23.04.55.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Mar 2015 04:55:26 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: catalin.marinas@arm.com, will.deacon@arm.com, marc.zyngier@arm.com, mark.rutland@arm.com Subject: [RFC 4/4] arm64: kvm: add cpu reset at module exit Date: Mon, 23 Mar 2015 20:53:59 +0900 Message-Id: <1427111639-4575-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427111639-4575-1-git-send-email-takahiro.akashi@linaro.org> References: <1427111639-4575-1-git-send-email-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150323_045549_084959_991158CB X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, geoff@infradead.org, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, AKASHI Takahiro <takahiro.akashi@linaro.org>, broonie@kernel.org, david.griego@linaro.org, christoffer.dall@linaro.org, freddy77@gmail.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, 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 |
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 08804d3..b85dad6 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -1181,6 +1181,12 @@ void kvm_arch_hardware_disable(void) void kvm_arch_exit(void) { kvm_perf_teardown(); + + unregister_reboot_notifier(&kvm_reboot_nb); + /* + * Reset each CPU in EL2 to initial state. + */ + on_each_cpu(kvm_cpu_reset, NULL, 1); } static int arm_init(void)
This patch doesn't enable kvm to be built as a module, but is a prerequisite when kvm is transformed to be module-capable. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- arch/arm/kvm/arm.c | 6 ++++++ 1 file changed, 6 insertions(+)