Message ID | 1427358326-3708-5-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRB5EFZ6UAKGQEANBQMQQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB2D421584 for <linaro@patches.linaro.org>; Thu, 26 Mar 2015 08:27:33 +0000 (UTC) Received: by wibfv9 with SMTP id fv9sf3917141wib.1 for <linaro@patches.linaro.org>; Thu, 26 Mar 2015 01:27:33 -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=jXtkdn3IMLIK32i2V5Mo6o722N8n2n9EnPHMBdLWL3k8GhvAP/LdzUCkKO/7tMAYbT Qiq60gRRN3UtiT3kRiLmtk90BjCThKGNM8OFqGoSH7P4rwg17hMHHsovxssR6pLVKAoq KtCPU+uPPZ1J46sNVuKqeakpLCM3Pb19viSj1rz3X1lPOxY89TRx2AR/mCCkeggRCBc7 CIG+Nn6p3D821N/QSh+2pEn9kLdbmJKYxzZ6UQYnc0Lhk8j8nOSjfGf2hX5ovYsdWW8v 29U88qOzKAGSK8F+n7du+3MKJ3q9VClyKKPi7GSrIY37A0parHNpEtCQESWCA8uos2cr yASw== X-Gm-Message-State: ALoCoQnpLCt2s0OmOxVQyDyDk3KIgbRnrEcA8WjgTzCqHOdfCQ/C1sMpC8+ryLTQWFxRWFSwns3k X-Received: by 10.112.97.37 with SMTP id dx5mr3087285lbb.16.1427358452985; Thu, 26 Mar 2015 01:27:32 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.232 with SMTP id u8ls210110laa.24.gmail; Thu, 26 Mar 2015 01:27:32 -0700 (PDT) X-Received: by 10.112.73.104 with SMTP id k8mr11930254lbv.120.1427358452798; Thu, 26 Mar 2015 01:27:32 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id ci8si4017200lad.37.2015.03.26.01.27.32 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Mar 2015 01:27:32 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lahp7 with SMTP id p7so20606472lah.2 for <patchwork-forward@linaro.org>; Thu, 26 Mar 2015 01:27:32 -0700 (PDT) X-Received: by 10.152.43.51 with SMTP id t19mr11988355lal.73.1427358452658; Thu, 26 Mar 2015 01:27:32 -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 k9csp455531lbq; Thu, 26 Mar 2015 01:27:31 -0700 (PDT) X-Received: by 10.66.235.36 with SMTP id uj4mr24339984pac.123.1427358450936; Thu, 26 Mar 2015 01:27:30 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ii4si7327530pbb.98.2015.03.26.01.27.29; Thu, 26 Mar 2015 01:27:30 -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 S1752270AbbCZI1Z (ORCPT <rfc822;ivan.khoronzhuk@linaro.org> + 27 others); Thu, 26 Mar 2015 04:27:25 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35672 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752220AbbCZI1U (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Mar 2015 04:27:20 -0400 Received: by pdbop1 with SMTP id op1so55819560pdb.2 for <linux-kernel@vger.kernel.org>; Thu, 26 Mar 2015 01:27:19 -0700 (PDT) X-Received: by 10.69.0.106 with SMTP id ax10mr24555449pbd.11.1427358439863; Thu, 26 Mar 2015 01:27:19 -0700 (PDT) Received: from localhost.localdomain (61-205-2-129m5.grp1.mineo.jp. [61.205.2.129]) by mx.google.com with ESMTPSA id xz1sm4722152pbb.47.2015.03.26.01.27.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Mar 2015 01:27:18 -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: [RFC v2 4/5] arm64: kvm: add cpu reset at module exit Date: Thu, 26 Mar 2015 17:25:25 +0900 Message-Id: <1427358326-3708-5-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427358326-3708-1-git-send-email-takahiro.akashi@linaro.org> References: <1427358326-3708-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.215.41 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(+)