Skip to content

i386: Ensure feature names are always defined

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i386: Add missing "vmx-ept-wb" feature nametarget/i386/cpu.c+1 -16 replies
2/3i386: Move asserts to separate x86_cpudef_validate() functiontarget/i386/cpu.c+12 -41 reply
3/3i386: Sanity check CPU model feature setstarget/i386/cpu.c+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] i386: Ensure feature names are always defined

Forgetting to adding feature names to the feature array seems to be a very common mistake.

Examples:

- Missing name for MSR_VMX_EPT_WB
commit 0723cc8a5558 ("target/i386: add VMX features to named CPU models")
- Missing name for "ibrs" at
https://lore.kernel.org/qemu-devel/[email protected]

This series fixes the MSR_VMX_EPT_WB problem and adds a runtime check that should detect similar mistakes even before CPU model classes are registered.

Eduardo Habkost (3):
i386: Add missing "vmx-ept-wb" feature name
i386: Move asserts to separate x86_cpudef_validate() function
i386: Sanity check CPU model feature sets

 target/i386/cpu.c | 31 +++++++++++++++++++++++++++----
 1 file changed, 27 insertions(+), 4 deletions(-)
Signature · 1 line
2.28.0