x86/cpu/amd: Enumerate BTC_NO
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 24 Jun 2022 13:41:21 +0000 (14:41 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:34:01 +0000 (10:34 +0200)
commit26aae8ccbc1972233afd08fb3f368947c0314265
tree707c1db81342922fac0b75877fe4e13084589e3d
parent7a05bc95ed1c5a59e47aaade9fb4083c27de9e62
x86/cpu/amd: Enumerate BTC_NO

BTC_NO indicates that hardware is not susceptible to Branch Type Confusion.

Zen3 CPUs don't suffer BTC.

Hypervisors are expected to synthesise BTC_NO when it is appropriate
given the migration pool, to prevent kernels using heuristics.

  [ bp: Massage. ]

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/amd.c
arch/x86/kernel/cpu/common.c