-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(RHEL-50651) Add support for confidential virtualization #291
(RHEL-50651) Add support for confidential virtualization #291
Conversation
IN C23, thread_local is a reserved keyword and we shall therefore do nothing to redefine it. glibc has it defined for older standard version with the right conditions. v2 by Yu Watanabe: Move the definition to missing_threads.h like the way we define e.g. missing syscalls or missing definitions, and include it by the users. Co-authored-by: Yu Watanabe <watanabe.yu+github@gmail.com> (cherry picked from commit 5545f33) Related: RHEL-50651
This code uses various CPUID checks to be able to identify * AMD SEV * AMD SEV-ES * AMD SEV-SNP * Intel TDX On HyperV/Azure, it has special checks for detecting SEV-SNP since the normal CPUID is blocked. Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit a577a61) Related: RHEL-50651
The --cvm option detects whether the OS is running inside a confidential virtual machine. Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 5e0c61f) Resolves: RHEL-50651
The --list-cvm option reports the known types of confidential virtualization technology that can be detected. Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit f460fec) Related: RHEL-50651
The "cvm" flag indicates whether the OS is running inside a confidential virtual machine. Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 95d043b) Related: RHEL-50651
This property reports whether the system is running inside a confidential virtual machine. Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 1257274) Related: RHEL-50651
Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 024469d) Related: RHEL-50651
This reports the confidential virtualization type that was detected Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 0895124) Related: RHEL-50651
Related: systemd/systemd#27604 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 6e2e83b) Related: RHEL-50651
Commit validationTracker - RHEL-50651 The following commits meet all requirements
Tracker validationSuccess🟢 Tracker RHEL-50651 has set desired product: Pull Request validationFailed🔴 Review - Missing review from a member Success🟢 CI - All checks have passed |
We have different impls of detect_confidential_virtualization per architecture. The detection is cached in the x86_64 impl, and as we add support for more targets, we want to use caching for all. It thus makes sense to split caching out into an architecture independent method. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 1c4bd7adcc281af2a2dd40867f64f2ac54a43c7a) Related: RHEL-50651
The s390x platform provides confidential VMs using the "Secure Execution" technology, which is also referred to as "Protected Virtualization" or just "prot virt" in Linux / QEMU. This can be detected through a simple sysfs attribute. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit 6c35e0a51cc6a852ce239ea46cd75c133212a68e) Related: RHEL-50651
Add a section which lists the known confidential virtual machine technologies. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> (cherry picked from commit a8fb5d21fd6127a6d05757c793cc9ba47f65c893) Related: RHEL-50651
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I have not checked if this works, but at least nothing seems to be broken.
Resolves: RHEL-50651