Re: [PATCHv2 05/29] x86/tdx: Add HLT support for TDX guests

Borislav Petkov
2022-01-29T14:53:22Z

On Mon, Jan 24, 2022 at 06:01:51PM +0300, Kirill A. Shutemov wrote:
> @@ -870,6 +871,10 @@ void select_idle_routine(const struct cpuinfo_x86 *c)
> } else if (prefer_mwait_c1_over_halt(c)) {
> pr_info("using mwait in idle threads\n");
> x86_idle = mwait_idle;
> + } else if (cpu_feature_enabled(X86_FEATURE_TDX_GUEST)) {
> + pr_info("using TDX aware idle routine\n");
> + x86_idle = tdx_safe_halt;
> + return;

Forgot to remove that "return".

--
Regards/Gruss,
Boris.