Message ID | 1427358326-3708-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@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CAB6ABF90F for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 26 Mar 2015 08:33:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03CDE203F3 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 26 Mar 2015 08:33:50 +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 31547203F1 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 26 Mar 2015 08:33:49 +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 1Yb3Bp-000531-EX; Thu, 26 Mar 2015 08:30:57 +0000 Received: from mail-pd0-f175.google.com ([209.85.192.175]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yb38f-0001o7-F9 for linux-arm-kernel@lists.infradead.org; Thu, 26 Mar 2015 08:27:42 +0000 Received: by pdnc3 with SMTP id c3so56015722pdn.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 26 Mar 2015 01:27:19 -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=78wgKpNkKBnfWWdvwBEh+7DJSvM9dBDH0decOC8P+x8=; b=VMbXWAI0odlmDphGbCPc//kelu9yYGmTNovjSiSWUNGcyZbeiP4+zE9eLqB1a5L9n8 2egejtfv/c6dv3vy7UtJmnmywFUSAqi3OnSM47q0cw/5IAGdruG9jVQBxcKy2c2mDN5N QZd/uD+r/18s/X0LzyvzytRho1Z3xps0JVeuqWuuVYM9ikR3PjzlyzqWbBl4GU79I0Bo 1PGUMk+K1BnbPfKe7LPoom1eOduttGNSLMZqO1UrNBu06W5agpodP2NKZpeFypQPAnBJ 3vQD4eOGY3wNW883l8GiBjJHCtr+rhEqjW+SHXdTl3TzeVktLoEBb+/zVeDoSwxCFkKf /TNQ== X-Gm-Message-State: ALoCoQmJPDox97OAmA65sqHCPvAOGkVG1RfYQH7iT4n7EfA8v4XE/k6M1Pt0zJ0Hf3mawUbp+J/2 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150326_012741_579850_B593AEE1 X-CRM114-Status: UNSURE ( 9.26 ) 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 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(+)