CPUID leaf 1 bit "HTT" does not mean what it says on the tin
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The CPUID leaf 1 specializer lives in lib/propolis/src/cpuid.rs, where HTT is currently set from has_smt; the topology helpers referenced via #1237 also pass has_smt: true. Read the APM and SDM notes on LogicalProcessorCount and HTT to decide the intended semantics before editing. Done means HTT is set whenever more than one logical processor is exposed, with the specializer and any affected tests updated accordingly.
由索引模型根据 Issue 内容生成。
描述
we set HTT in the CPUID specializer, here. this will imminently change in form, but not function, with #1237. fundamentally, the interpretation of "HTT", called "Hyper-Threading Technology" in the SDM, was "present if hyperthreading is supported".
now, I remember puzzling over this a bit with Greg when this was first being added; you would imagine that that if SMT is not enabled, clearly HTT should be false, right? other parts of the SDM and APM say that some other topology bits are only valid if HTT is set though. the APM, in particular, says that leaf 1 EBX's LogicalProcessorCount is only meaningful if HTT is set.
additionally,
Multiple Processor Calculationsays "When HTT = 0, LogicalProcessorCount is reserved and the package contains one logical processor."
well, that's certainly different from how we're setting it. spelunking through docs and blogs with @acfoltzer, we've found https://github.com/InstLatx64/InstLatx64/tree/refs/heads/master/AuthenticAMD (and the corresponding GenuineIntel CPUID readings) point towards a more expansive use of HTT - the bit first was set in the earliest Pentium 4's that supported HyperThreading, and then is set on all x86 processors after that point with >1 logical processor. this writeup on os2museum.com is great reading with some quotes from older SDMs. AMD set it in the non-SMT multi-core Athlon X2s, even! truly, this bit means "there is more than one processor", and should not be connected to has_smt at all.
.. this has no product implication, as it turns out. we always passed true for the old .with_vcpu_count(), and the topology helpers in #1237 both have has_smt: true as well. so guests in the product always have the HTT bit set (even in single-core VMs, which it turns out is probably legal in practice but not strictly what the APM says).
since we always populate LogicalProcessorCount, NC, and other fields via the specializer, we should probably just always set leaf 1 HTT.
- 主要语言
- Rust
- 星标
- 326
- 派生
- 49
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 10
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
oxidecomputer/propolis 的其他 Issue
-
development
难度 2/5 1-3 小时 新手友好度 68/100
oxidecomputer/propolis#1157 ·
维护者通常 1 天内回复
-
enhancement storage
难度 2/5 1-3 小时 新手友好度 66/100
oxidecomputer/propolis#1011 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
oxidecomputer/propolis#1261 ·
维护者通常 1 天内回复
-
development
难度 3/5 1-2 天 新手友好度 55/100
oxidecomputer/propolis#1259 · 1 条评论 ·
维护者通常 1 天内回复
-
bug guest-os
难度 4/5 3-5 天 新手友好度 45/100
oxidecomputer/propolis#1258 · 2 条评论 ·
维护者通常 1 天内回复
查看 oxidecomputer/propolis 的全部 Issue
相似的 Issue
-
area: cli good first issue type: feature
难度 2/5 1-3 小时 新手友好度 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
renaming a provider to a taken name fails with a raw sql error可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:storage kind:bug priority:p3 ready
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug bugfix
难度 2/5 1-3 小时 新手友好度 72/100
storytold/photocraft#16975 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复