]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target/i386: Disable MPX support on named CPU models
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Dec 2018 12:11:00 +0000 (13:11 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 14 Jan 2019 14:23:36 +0000 (12:23 -0200)
commitecb85fe48cacb2f8740186e81f2f38a2e02bd963
tree0720c11b0c9ffb2bfc555958576cadb24fdb754d
parent483c6ad426dbab72d912fe4793d7d558671aa727
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>
hw/i386/pc.c
target/i386/cpu.c