qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] i386: Ensure feature names are always defined
@ 2021-02-01 22:54 Eduardo Habkost
  2021-02-01 22:54 ` [PATCH 1/3] i386: Add missing "vmx-ept-wb" feature name Eduardo Habkost
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Eduardo Habkost @ 2021-02-01 22:54 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Igor Mammedov, Richard Henderson, Eduardo Habkost,
	Babu Moger

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/0ad4017d-e755-94a3-859e-800661bcd2d1@amd.com

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(-)

-- 
2.28.0




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-02-02 16:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 22:54 [PATCH 0/3] i386: Ensure feature names are always defined Eduardo Habkost
2021-02-01 22:54 ` [PATCH 1/3] i386: Add missing "vmx-ept-wb" feature name Eduardo Habkost
2021-02-01 22:59   ` Paolo Bonzini
2021-02-01 23:05     ` Eduardo Habkost
2021-02-01 23:28       ` Paolo Bonzini
2021-02-02  0:18         ` Eduardo Habkost
2021-02-02  7:54           ` Paolo Bonzini
2021-02-02 15:25             ` Eduardo Habkost
2021-02-01 22:54 ` [PATCH 2/3] i386: Move asserts to separate x86_cpudef_validate() function Eduardo Habkost
2021-02-02 16:02   ` Philippe Mathieu-Daudé
2021-02-01 22:54 ` [PATCH 3/3] i386: Sanity check CPU model feature sets Eduardo Habkost

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).