CPUID leaf 1 bit "HTT" does not mean what it says on the tin
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Rust
- Stelle
- 326
- Fork
- 49
- Merge medio
- 1g 13h
- PR unite (30g)
- 10
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di oxidecomputer/propolis
-
development
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
oxidecomputer/propolis#1157 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement storage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
oxidecomputer/propolis#1011 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
oxidecomputer/propolis#1261 ·
I maintainer di solito rispondono entro 1 giorno
-
development
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
oxidecomputer/propolis#1259 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug guest-os
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
oxidecomputer/propolis#1258 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di oxidecomputer/propolis
Issue simili
-
area: cli good first issue type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
[Bug] Windows Ghidra provider rejects a PATH-only JDK: bare `java.exe` probe fails with Win32 87Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
renaming a provider to a taken name fails with a raw sql errorForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea:storage kind:bug priority:p3 ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug bugfix
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
storytold/photocraft#16975 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
expo/exact#1716 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno