CPUID leaf 1 bit "HTT" does not mean what it says on the tin
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 326
- Forks
- 49
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 10
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de oxidecomputer/propolis
-
development
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
oxidecomputer/propolis#1157 ·
Los mantenedores suelen responder en 1 día
-
enhancement storage
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
oxidecomputer/propolis#1011 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
oxidecomputer/propolis#1261 ·
Los mantenedores suelen responder en 1 día
-
development
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
oxidecomputer/propolis#1259 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug guest-os
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
oxidecomputer/propolis#1258 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de oxidecomputer/propolis
Issues similares
-
[Bug]: Add Data's question says "Link to the file" for a GeoPackage where small tables are copiedAbiertounconfirmed possible issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
jerney-nexus/epikrise#364 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Yeachan-Heo/gajae-code#8058 ·
Los mantenedores suelen responder en 1 día
-
bug daemon
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día