mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
target/i386: Disable MPX support on named CPU models
MPX support is being phased out by Intel; GCC has dropped it, Linux is also going to do that. Even though KVM will have special code to support MPX after the kernel proper stops enabling it in XCR0, we probably also want to deprecate that in a few years. As a start, do not enable it by default for any named CPU model starting with the 4.0 machine types; this include Skylake, Icelake and Cascadelake. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20181220121100.21554-1-pbonzini@redhat.com> Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
483c6ad426
commit
ecb85fe48c
2 changed files with 14 additions and 7 deletions
|
@ -115,6 +115,13 @@ GlobalProperty pc_compat_3_1[] = {
|
|||
{ "Opteron_G3" "-" TYPE_X86_CPU, "rdtscp", "off" },
|
||||
{ "Opteron_G4" "-" TYPE_X86_CPU, "rdtscp", "off" },
|
||||
{ "Opteron_G5" "-" TYPE_X86_CPU, "rdtscp", "off" },
|
||||
{ "Skylake-Client" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Skylake-Client-IBRS" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Skylake-Server" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Skylake-Server-IBRS" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Cascadelake-Server" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Icelake-Client" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
{ "Icelake-Server" "-" TYPE_X86_CPU, "mpx", "on" },
|
||||
};
|
||||
const size_t pc_compat_3_1_len = G_N_ELEMENTS(pc_compat_3_1);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue