Description of problem: tdx guest内核在不指定idle参数时可能无法启动或者启动缓慢 Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: guest config开启nohz_idle 通过命令行启动qemu,命令行参数不添加idle=poll或者nohz=off 启动tdx guest vm Actual results: 20s内启动成功 Expected results: 启动失败或者启动缓慢 Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3833
请看pr,已经修复 第一个pr保证在调用tdvmcall模拟hlt指令之前打开中断,否则vcpu可能无法唤醒 第二个pr让目前所有内核的idle路径都调用到arch idle, 否则默认调用hlt的idle路径触发ve异常模拟hlt,会导致rcu gp相关问题,从而导致系统启动慢