• Linus Torvalds's avatar
    Merge tag 'x86_cpu_for_v5.16_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · e0f4c59d
    Linus Torvalds authored
    Pull x86 cpu updates from Borislav Petkov:
    
     - Start checking a CPUID bit on AMD Zen3 which states that the CPU
       clears the segment base when a null selector is written. Do the
       explicit detection on older CPUs, zen2 and hygon specifically, which
       have the functionality but do not advertize the CPUID bit. Factor in
       the presence of a hypervisor underneath the kernel and avoid doing
       the explicit check there which the HV might've decided to not
       advertize for migration safety reasons, or similar.
    
     - Add support for a new X86 CPU vendor: VORTEX. Needed for whitelisting
       those CPUs in the hardware vulnerabilities detection
    
     - Force the compiler to use rIP-relative addressing in the fallback
       path of static_cpu_has(), in order to avoid unnecessary register
       pressure
    
    * tag 'x86_cpu_for_v5.16_rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/cpu: Fix migration safety with X86_BUG_NULL_SEL
      x86/CPU: Add support for Vortex CPUs
      x86/umip: Downgrade warning messages to debug loglevel
      x86/asm: Avoid adding register pressure for the init case in static_cpu_has()
      x86/asm: Add _ASM_RIP() macro for x86-64 (%rip) suffix
    e0f4c59d
common.c 54.7 KB