]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
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)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 18 Jan 2018 01:04:31 +0000 (23:04 -0200)
commitac96c41354b7e4c70b756342d9b686e31ab87458
treec64ca3c113a2bec3ea2c523c78c04b248a877fd7
parent1b3420e1c4d523c49866cca4e7544753201cd43d
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>
target/i386/cpu.c