[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1571912870-18471-2-git-send-email-shannon.zhao@linux.alibaba.com>
Date: Thu, 24 Oct 2019 18:27:44 +0800
From: Shannon Zhao <shannon.zhao@...ux.alibaba.com>
To: kvmarm@...ts.cs.columbia.edu, maz@...nel.org, james.morse@....com,
suzuki.poulose@....com, christoffer.dall@....com
Cc: linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: [PATCH RFC 1/7] KVM: ARM: call hyp_cpu_pm_exit on correct fail and exit path
Signed-off-by: Shannon Zhao <shannon.zhao@...ux.alibaba.com>
---
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
Powered by blists - more mailing lists