Skip to content

Commit

Permalink
i386: Add -noTSX aliases for hle=off, rtm=off CPU models
Browse files Browse the repository at this point in the history
We have been trying to avoid adding new aliases for CPU model
versions, but in the case of changes in defaults introduced by
the TAA mitigation patches, the aliases might help avoid user
confusion when applying host software updates.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
ehabkost authored and bonzini committed Nov 21, 2019
1 parent 9ab2237 commit 02fa60d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/i386/cpu.c
Expand Up @@ -2904,6 +2904,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
},
{
.version = 3,
.alias = "Skylake-Client-noTSX-IBRS",
.props = (PropValue[]) {
{ "hle", "off" },
{ "rtm", "off" },
Expand Down Expand Up @@ -3025,6 +3026,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
},
{
.version = 3,
.alias = "Skylake-Server-noTSX-IBRS",
.props = (PropValue[]) {
{ "hle", "off" },
{ "rtm", "off" },
Expand Down Expand Up @@ -3145,6 +3147,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
},
},
{ .version = 3,
.alias = "Cascadelake-Server-noTSX",
.props = (PropValue[]) {
{ "hle", "off" },
{ "rtm", "off" },
Expand Down Expand Up @@ -3257,6 +3260,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
{ .version = 1 },
{
.version = 2,
.alias = "Icelake-Client-noTSX",
.props = (PropValue[]) {
{ "hle", "off" },
{ "rtm", "off" },
Expand Down Expand Up @@ -3373,6 +3377,7 @@ static X86CPUDefinition builtin_x86_defs[] = {
{ .version = 1 },
{
.version = 2,
.alias = "Icelake-Server-noTSX",
.props = (PropValue[]) {
{ "hle", "off" },
{ "rtm", "off" },
Expand Down

0 comments on commit 02fa60d

Please sign in to comment.