mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 03:48:45 +00:00
kernel: Introduce SNP kernel
This introduces the SNP kernel as a confidential computing guest. Signed-off-by: Joana Pecholt <joana.pecholt@aisec.fraunhofer.de>
This commit is contained in:
@@ -101,7 +101,7 @@ Options:
|
||||
-t <hypervisor> : Hypervisor_target.
|
||||
-u <url> : Kernel URL to be used to download the kernel tarball.
|
||||
-v <version> : Kernel version to use if kernel path not provided.
|
||||
-x <type> : Confidential guest protection type, such as sev and tdx
|
||||
-x <type> : Confidential guest protection type, such as sev, snp and tdx
|
||||
EOF
|
||||
exit "$exit_code"
|
||||
}
|
||||
@@ -525,7 +525,7 @@ main() {
|
||||
x)
|
||||
conf_guest="${OPTARG}"
|
||||
case "$conf_guest" in
|
||||
sev|tdx) ;;
|
||||
sev|snp|tdx) ;;
|
||||
*) die "Confidential guest type '$conf_guest' not supported" ;;
|
||||
esac
|
||||
;;
|
||||
|
10
tools/packaging/kernel/configs/fragments/x86_64/snp/snp.conf
Normal file
10
tools/packaging/kernel/configs/fragments/x86_64/snp/snp.conf
Normal file
@@ -0,0 +1,10 @@
|
||||
# !s390x !ppc64le !arm64
|
||||
# enable sev-snp support
|
||||
CONFIG_AMD_MEM_ENCRYPT=y
|
||||
CONFIG_SEV_GUEST=y
|
||||
CONFIG_VIRT_DRIVERS=y
|
||||
|
||||
# Prepare kernel for direct boot using OVMF
|
||||
CONFIG_EFI=y
|
||||
CONFIG_EFI_STUB=y
|
||||
|
Reference in New Issue
Block a user