]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386: Add new -IBRS versions of Intel CPU models
authorEduardo Habkost <ehabkost@redhat.com>
Tue, 9 Jan 2018 15:45:17 +0000 (13:45 -0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 23 Jan 2018 23:08:04 +0000 (17:08 -0600)
commit61efbbf869293f1deb9ee39d44bd4e635de59fa7
treeac15994c76d10f83850d49ff41990b685939ed87
parent1ade973f5202404e772aae7b1acd331270d246dc
i386: Add new -IBRS versions of Intel CPU models

The new MSR IA32_SPEC_CTRL MSR was introduced by a recent Intel
microcode updated and can be used by OSes to mitigate
CVE-2017-5715.  Unfortunately we can't change the existing CPU
models without breaking existing setups, so users need to
explicitly update their VM configuration to use the new *-IBRS
CPU model if they want to expose IBRS to guests.

The new CPU models are simple copies of the existing CPU models,
with just CPUID_7_0_EDX_SPEC_CTRL added and model_id updated.

Cc: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180109154519.25634-6-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
(cherry picked from commit ac96c41354b7e4c70b756342d9b686e31ab87458)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/i386/cpu.c