Bug 10852 - tdx guest boot fail or too slow
Summary: tdx guest boot fail or too slow
Status: RESOLVED FIXED
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: 5.10.y-13
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: zelin
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-13 17:05 UTC by zelin
Modified: 2024-09-14 16:09 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zelin alibaba_cloud_group 2024-09-13 17:05:29 UTC
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:
Comment 1 小龙 admin 2024-09-13 17:56:47 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3833
Comment 2 zelin alibaba_cloud_group 2024-09-14 16:09:16 UTC
请看pr,已经修复
第一个pr保证在调用tdvmcall模拟hlt指令之前打开中断,否则vcpu可能无法唤醒
第二个pr让目前所有内核的idle路径都调用到arch idle, 否则默认调用hlt的idle路径触发ve异常模拟hlt,会导致rcu gp相关问题,从而导致系统启动慢