Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3269225ybg; Fri, 25 Oct 2019 01:25:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyL0tyuJLfH3A6YTWfaUlVdZadBHjhEv9LEpSWVC8hlXAJQ3ZWwYzhUY+RM1mGoj1PKvte8 X-Received: by 2002:a17:906:680c:: with SMTP id k12mr2257367ejr.118.1571991927765; Fri, 25 Oct 2019 01:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571991927; cv=none; d=google.com; s=arc-20160816; b=cN59KNnIbWzrUGw3FoQv9EWgkVNVm8iSfgVJ7uOqCVll+emFl2XI+gitzr/1+/WdDl UMa51hWSF+ufPES0VbWBqC6d600RemUU3H8cFOE8ZE12B4XhdXevbvXzvinlMz8VAjRX 2/BfzJ6PXppSHxvesJpXk91V2R5JI24q4gEmbUwbeS0mDYqF1WcFB+4TDCa6GL/vTvy0 ruuLITZmXosTekMQ/UILTkMCdf178dSpprRMxZTRchQUwQdpMnADVJWj5GsCKhGJj2OS c46fc2noLMcKO7Tb2y9piDLFuZXwV2FBmhgvBKywRlIpRgnh72aGh4JFUQFS5ZOVgAmA qM0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=df3BjeC+Ffo3kpXCMCpkMq6+EU6v+YLC7y9LS/W2RFM=; b=MciCbF61l2iev1KI141ATIAvJBuzXUvVsEiS3lUQikNWIN8wlrFtjxihUP4nZi1P8u 47t+9p7SVIUwpCME3SC2IScyn9mWWiJu56C5NPUOViOb+zCZxuonhggSW8SplqjZexbe CZxz7THTOSpbLAPQYxP471BX30Lr8cLQkJU675fDYEq5fVpNREFcfeQLGbilJrd1i70t OIEeHi7+C8h72repvSKTTi28xFyptnRrpveNniMg6HOEGtFLxwiFfErh/Wz75vKFr6yM N7d4j8DHynuYS1tnHCRS1JLgsMM56CUT6vHmZ2NkgAe1OQiO38AU944XF0aCdrow4gi9 X1dQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc7si834916edb.417.2019.10.25.01.25.04; Fri, 25 Oct 2019 01:25:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392675AbfJXK1s (ORCPT + 99 others); Thu, 24 Oct 2019 06:27:48 -0400 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:46202 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390754AbfJXK1r (ORCPT ); Thu, 24 Oct 2019 06:27:47 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R181e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01451;MF=shannon.zhao@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0Tg2wxnK_1571912847; Received: from localhost(mailfrom:shannon.zhao@linux.alibaba.com fp:SMTPD_---0Tg2wxnK_1571912847) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Oct 2019 18:27:44 +0800 From: Shannon Zhao To: kvmarm@lists.cs.columbia.edu, maz@kernel.org, james.morse@arm.com, suzuki.poulose@arm.com, christoffer.dall@arm.com Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH RFC 1/7] KVM: ARM: call hyp_cpu_pm_exit on correct fail and exit path Date: Thu, 24 Oct 2019 18:27:44 +0800 Message-Id: <1571912870-18471-2-git-send-email-shannon.zhao@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1571912870-18471-1-git-send-email-shannon.zhao@linux.alibaba.com> References: <1571912870-18471-1-git-send-email-shannon.zhao@linux.alibaba.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Shannon Zhao --- virt/kvm/arm/arm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 86c6aa1..da32c9b 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -1488,6 +1488,7 @@ static int init_subsystems(void) kvm_coproc_table_init(); out: + hyp_cpu_pm_exit(); on_each_cpu(_kvm_arch_hardware_disable, NULL, 1); return err; @@ -1500,7 +1501,6 @@ static void teardown_hyp_mode(void) free_hyp_pgds(); for_each_possible_cpu(cpu) free_page(per_cpu(kvm_arm_hyp_stack_page, cpu)); - hyp_cpu_pm_exit(); } /** @@ -1724,6 +1724,7 @@ int kvm_arch_init(void *opaque) void kvm_arch_exit(void) { kvm_perf_teardown(); + hyp_cpu_pm_exit(); } static int arm_init(void) -- 1.8.3.1