From patchwork Mon Mar 23 11:53:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 46184 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E222A214B0 for ; Mon, 23 Mar 2015 11:55:43 +0000 (UTC) Received: by lbiz11 with SMTP id z11sf26947935lbi.2 for ; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=L9MGy4X/ggB5lIaqSa7vGmWFOJLpeQyMAuVIgv3B9A0=; b=MN9n9bhS/tcv7VYEU6Up81+TpyDp1DtxOs//QgyrebLtY96YNlDeTReoe4vXV77pw3 b1K9pS7QZRvFjz/rR6GgFjTrSyiPN9FDPWPC2Ib9pwrO/6lrfX2URGAWo4eKP+Lc5T2H pcV/B3IhhYEXa+t+jQpJpxwjRZDA6hvKG3KzahGqbhPbFJuTj3hpwYErJusZFkgU0HmG +ZHzEHwfAhnttw3vLqh8xWMduKF3eSh3ni+CL9C6FpLwlJ1i/bha493rAbRqNf/kB/g8 hu8XiqW1yKWTM1Hvu9nyY+u1K7CWReuY/+dLhmq8hSLF/cpBAdpBvQLajgNBOLBQ/ia4 9LEw== X-Gm-Message-State: ALoCoQlxs5HmlDe4tHGOCYB5FZ7sZYazXhh1IKEFk0xHNChzzrsNrkqMsz9a+ycOo28oXWXvxxYv X-Received: by 10.112.44.167 with SMTP id f7mr13229521lbm.9.1427111742897; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.10 with SMTP id cq10ls49091lad.72.gmail; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) X-Received: by 10.152.22.229 with SMTP id h5mr83923846laf.21.1427111742719; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id i19si475600lbh.59.2015.03.23.04.55.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 04:55:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by labe2 with SMTP id e2so56579346lab.3 for ; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) X-Received: by 10.112.185.66 with SMTP id fa2mr82151561lbc.117.1427111742629; Mon, 23 Mar 2015 04:55:42 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp776297lbq; Mon, 23 Mar 2015 04:55:41 -0700 (PDT) X-Received: by 10.70.103.74 with SMTP id fu10mr48817094pdb.2.1427111740966; Mon, 23 Mar 2015 04:55:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc4si577673pdb.237.2015.03.23.04.55.39; Mon, 23 Mar 2015 04:55:40 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752700AbbCWLzf (ORCPT + 27 others); Mon, 23 Mar 2015 07:55:35 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:34630 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbbCWLz2 (ORCPT ); Mon, 23 Mar 2015 07:55:28 -0400 Received: by pacwe9 with SMTP id we9so189537324pac.1 for ; Mon, 23 Mar 2015 04:55:27 -0700 (PDT) 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 To: catalin.marinas@arm.com, will.deacon@arm.com, marc.zyngier@arm.com, mark.rutland@arm.com Cc: christoffer.dall@linaro.org, geoff@infradead.org, broonie@kernel.org, david.griego@linaro.org, freddy77@gmail.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, AKASHI Takahiro 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: takahiro.akashi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- arch/arm/kvm/arm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)