arch/cc: Introduce a function to check for confidential computing features
Tom Lendacky authored
commit 46b49b12

 upstream.

In preparation for other confidential computing technologies, introduce
a generic helper function, cc_platform_has(), that can be used to
check for specific active confidential computing attributes, like
memory encryption. This is intended to eliminate having to add multiple
technology-specific checks to the code (e.g. if (sev_active() ||
tdx_active() || ... ).

 [ bp: s/_CC_PLATFORM_H/_LINUX_CC_PLATFORM_H/g ]
Co-developed-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Co-developed-by: default avatarKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: default avatarKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210928191009.32551-3-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman...
d1568346
Name Last commit Last update
Documentation fscrypt: allow 256-bit master keys with AES-256-XTS
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes"
arch arch/cc: Introduce a function to check for confidential computing features
block block: Hold invalidate_lock in BLKRESETZONE ioctl
certs certs: Add support for using elliptic curve keys for signing modules
crypto crypto: pcrypt - Delay write to padata->info
drivers mmc: moxart: Fix null pointer dereference on pointer host
fs cifs: fix memory leak of smb3_fs_context_dup::server_hostname
include arch/cc: Introduce a function to check for confidential computing features
init init: make unknown command line param message clearer
ipc ipc: remove memcg accounting for sops objects in do_semtimedop()
kernel posix-cpu-timers: Clear task::posix_cputimers_work in copy_process()
lib dyndbg: make dyndbg a known cli param
mm mm, oom: do not trigger out_of_memory from the #PF
net SUNRPC: Partial revert of commit 6f9f1728
samples samples/kretprobes: Fix return value if register_kretprobe() failed
scripts leaking_addresses: Always print a trailing newline
security apparmor: fix error check
sound ALSA: memalloc: Catch call with NULL snd_dma_buffer pointer
tools selftests/bpf: Fix also no-alu32 strobemeta selftest
usr .gitignore: prefix local generated files with a slash
virt KVM: Remove tlbs_dirty
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.