x86/bugs: Remove X86_BUG_MMIO_UNKNOWN
authorBorislav Petkov (AMD) <bp@alien8.de>
Mon, 14 Apr 2025 15:09:51 +0000 (17:09 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 14 Apr 2025 15:15:27 +0000 (17:15 +0200)
commitdd86a1d013e0c94fedd060514b9e7be2988ef320
tree618a29eb7c39a5ab7c565ba31fd880ed7b33a752
parent9fb6938d55348ee3e47deff9646fae59a15ed1c9
x86/bugs: Remove X86_BUG_MMIO_UNKNOWN

Whack this thing because:

- the "unknown" handling is done only for this vuln and not for the
  others

- it doesn't do anything besides reporting things differently. It
  doesn't apply any mitigations - it is simply causing unnecessary
  complications to the code which don't bring anything besides
  maintenance overhead to what is already a very nasty spaghetti pile

- all the currently unaffected CPUs can also be in "unknown" status so
  there's no need for special handling here

so get rid of it.

Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: David Kaplan <david.kaplan@amd.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://lore.kernel.org/r/20250414150951.5345-1-bp@kernel.org
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/bugs.c
arch/x86/kernel/cpu/common.c
tools/arch/x86/include/asm/cpufeatures.h