Message ID | 1684862062-51576-2-git-send-email-mikelley@microsoft.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v2,1/2] x86/hyperv: Fix hyperv_pcpu_input_arg handling when CPUs go online/offline | expand |
> From: Michael Kelley (LINUX) <mikelley@microsoft.com> > Sent: Tuesday, May 23, 2023 10:14 AM > To: KY Srinivasan <kys@microsoft.com>; Haiyang Zhang > <haiyangz@microsoft.com>; wei.liu@kernel.org; Dexuan Cui > <decui@microsoft.com>; catalin.marinas@arm.com; will@kernel.org; > tglx@linutronix.de; mingo@redhat.com; bp@alien8.de; > dave.hansen@linux.intel.com; hpa@zytor.com; linux-kernel@vger.kernel.org; > linux-hyperv@vger.kernel.org; linux-arm-kernel@lists.infradead.org; > x86@kernel.org > Cc: Michael Kelley (LINUX) <mikelley@microsoft.com> > Subject: [PATCH v2 2/2] arm64/hyperv: Use CPUHP_AP_HYPERV_ONLINE > state to fix CPU online sequencing > > State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence > the > initialization of hyperv_pcpu_input_arg. Use this new state for Hyper-V > initialization so that hyperv_pcpu_input_arg is allocated early enough. > > Signed-off-by: Michael Kelley <mikelley@microsoft.com> > --- > > Changes in v2: > * Fixed typo in commit message [Dexuan Cui] Reviewed-by: Dexuan Cui <decui@microsoft.com>
diff --git a/arch/arm64/hyperv/mshyperv.c b/arch/arm64/hyperv/mshyperv.c index a406454..f1b8a04 100644 --- a/arch/arm64/hyperv/mshyperv.c +++ b/arch/arm64/hyperv/mshyperv.c @@ -67,7 +67,7 @@ static int __init hyperv_init(void) if (ret) return ret; - ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "arm64/hyperv_init:online", + ret = cpuhp_setup_state(CPUHP_AP_HYPERV_ONLINE, "arm64/hyperv_init:online", hv_common_cpu_init, hv_common_cpu_die); if (ret < 0) { hv_common_free();
State CPUHP_AP_HYPERV_ONLINE has been introduced to correctly sequence the initialization of hyperv_pcpu_input_arg. Use this new state for Hyper-V initialization so that hyperv_pcpu_input_arg is allocated early enough. Signed-off-by: Michael Kelley <mikelley@microsoft.com> --- Changes in v2: * Fixed typo in commit message [Dexuan Cui] arch/arm64/hyperv/mshyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)