]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vmm(4): Mask Spectre feature bits on AMD hosts
authorcem <cem@FreeBSD.org>
Fri, 18 Jan 2019 23:54:51 +0000 (23:54 +0000)
committercem <cem@FreeBSD.org>
Fri, 18 Jan 2019 23:54:51 +0000 (23:54 +0000)
commite87da0fa26bbdca0977f7bfdbfff1b42225edad1
tree0cff0dda809b86e7f550a03352eddf6c308d844f
parent2cb205defbd3d17065bb275d934fc958dd2d7af8
vmm(4): Mask Spectre feature bits on AMD hosts

For parity with Intel hosts, which already mask out the CPUID feature
bits that indicate the presence of the SPEC_CTRL MSR, do the same on
AMD.

Eventually we may want to have a better support story for guests, but
for now, limit the damage of incorrectly indicating an MSR we do not yet
support.

Eventually, we may want a generic CPUID override system for
administrators, or for minimum supported feature set in heterogenous
environments with failover.  That is a much larger scope effort than
this bug fix.

PR: 235010
Reported by: Rys Sommefeldt <rys AT sommefeldt.com>
Sponsored by: Dell EMC Isilon
sys/amd64/vmm/x86.c