hw_ibrs_recalculate() and hw_ssb_set() only look at the Intel bits in
CPUID 7 EDX. AMD reports IBRS, STIBP and SSBD in CPUID 0x80000008 EBX,
so on AMD processors hw.ibrs_disable=0 and
hw.spec_store_bypass_disable=1 have no effect.
Check the AMD bits as well. The IBRS entry path sets IBRS and STIBP
together, so require both. Honor AMD SSB_NO in the automatic SSBD
mode. The NMI, MC# and debug entry paths save and restore SPEC_CTRL
only if the Intel bit is set; use a new hw_spec_ctrl flag, set when
either vendor reports a SPEC_CTRL feature, instead. Like
cpu_stdext_feature3, it is cleared on suspend and recomputed after the
microcode is reloaded on resume.
The VIRT_SPEC_CTRL interface used by some hypervisors and the LS_CFG
method on older families are not handled.
Sponsored by: Advanced Micro Devices, Inc.
Signed-off-by: Osvaldo Janeri Filho <ojanerif@amd.com>