Message ID | 1427953216-11737-5-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBE5N6OUAKGQEZNUJU7Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F1509216D1 for <linaro@patches.linaro.org>; Thu, 2 Apr 2015 05:41:39 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf2820971wgi.3 for <linaro@patches.linaro.org>; Wed, 01 Apr 2015 22:41:39 -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=6RTVhSS6XlW3yDosbFrVF3Xy9un7w+SXiVkzED/RNGw=; b=bqMjlxaMWoB67vOLSaOsPFNBO5iSkubB03yz/0AjNmP3omX27DVHcU1n0Yj5TqXrER cjUIpwAi2yfBtfvXYwlYKawgPzA2ZQnm+4/aCIbyELNsjRnqs0+JwZQJ1rPSUDN9mESk MrgWIDB8dsvWH24/VIJHvL/c98v+Jox6KShGnhN9Ry23R7gdagEhZOQvcHoCApJQd0tQ Z1HSbLcHWawJE7St9wtZF2sZceQQOh+tn4Wm87xfRQ/kfqvkcVoHM/JC2kQMq2OZz7no +zrLhoON9PrmQqkphdVPthZlY/eDGIl4NvRU0+2+wrE2zDjS34QT4u+SaIEahnH7j+i5 pcRw== X-Gm-Message-State: ALoCoQlO6YUZBJGYUg5nc6lYHleT0wUoEwH8U5EaMVZJ92x/9euJMotog1e3+gMGr2j7GphCE4zN X-Received: by 10.112.93.203 with SMTP id cw11mr1140639lbb.0.1427953299268; Wed, 01 Apr 2015 22:41:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.199 with SMTP id x7ls171657lae.0.gmail; Wed, 01 Apr 2015 22:41:39 -0700 (PDT) X-Received: by 10.152.206.103 with SMTP id ln7mr1786513lac.40.1427953299093; Wed, 01 Apr 2015 22:41:39 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id dh4si1461369lac.35.2015.04.01.22.41.38 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 22:41:38 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by lbdc10 with SMTP id c10so51651332lbd.2 for <patchwork-forward@linaro.org>; Wed, 01 Apr 2015 22:41:38 -0700 (PDT) X-Received: by 10.112.218.5 with SMTP id pc5mr40143053lbc.32.1427953298665; Wed, 01 Apr 2015 22:41:38 -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 k9csp1110406lbq; Wed, 1 Apr 2015 22:41:37 -0700 (PDT) X-Received: by 10.68.102.228 with SMTP id fr4mr82790169pbb.87.1427953296791; Wed, 01 Apr 2015 22:41:36 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d17si5939862pdf.186.2015.04.01.22.41.35; Wed, 01 Apr 2015 22:41:36 -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 S1752845AbbDBFlb (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 27 others); Thu, 2 Apr 2015 01:41:31 -0400 Received: from mail-pd0-f181.google.com ([209.85.192.181]:34782 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752670AbbDBFl0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Apr 2015 01:41:26 -0400 Received: by pdbni2 with SMTP id ni2so78552143pdb.1 for <linux-kernel@vger.kernel.org>; Wed, 01 Apr 2015 22:41:26 -0700 (PDT) X-Received: by 10.68.216.99 with SMTP id op3mr20391184pbc.69.1427953286535; Wed, 01 Apr 2015 22:41:26 -0700 (PDT) Received: from localhost.localdomain (61-205-5-51m5.grp1.mineo.jp. [61.205.5.51]) by mx.google.com with ESMTPSA id hb6sm3854757pbd.88.2015.04.01.22.41.19 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 22:41:25 -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 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 <takahiro.akashi@linaro.org> Subject: [v3 4/5] arm64: kvm: add cpu reset at module exit Date: Thu, 2 Apr 2015 14:40:15 +0900 Message-Id: <1427953216-11737-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427953216-11737-1-git-send-email-takahiro.akashi@linaro.org> References: <1427953216-11737-1-git-send-email-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> 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.217.180 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 4892974..85c142b 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -1178,6 +1178,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(+)