Tracking issue: Reintroduce Intel TDX support

Abierto
#9,528 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
20/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux, rust
Área
backend

Línea de trabajo

This is a tracking issue with no single change to pick up. Read the linked roadmap and PR #9488 first to understand the planned VmConfig and PlatformConfig refactor; the issue also lists shared page handling, KVM_HC_MAP_GPA_RANGE, guest_memfd, and TDX guest boot as later steps. A contribution is complete when its specific roadmap item is implemented and validated, but the issue does not name the relevant files or tests.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Elevator pitch
We at Cyberus Technology are working on reintroducing TDX support to Cloud Hypervisor. This issue is intended to track our progress and provide a high-level roadmap to help the community understand how our individual PRs contribute to this goal.

Motivation
We have customers interested in TDX support in Cloud Hypervisor and are also collaborating with Intel on this effort.

Prior art

  • Cloud Hypervisor previously supported TDX, but support was removed due to a lack of maintenance.
  • There was a PR in August to align TDX support to Linux 6.16, which was rejected and we are not building upon.
  • Intel provided sample code targeting Cloud Hypervisor v51.

API/CLI
Yes, new API and CLI parameters will be required. We will discuss them in detail with the community and maintainers in the respective PRs.

Testing
We will need a dedicated TDX-enabled CI runner, which we are currently organizing. Updates will follow.

Interactions
TDX requires special handling of features such as hotplug and live migration, as these operations involve interactions with the TDX module for TDX guests. While some common code will be refactored, we aim to preserve the existing behavior of other VM types.

Implementation
We have a working port of Intel's sample code to Cloud Hypervisor v54.

While this port serves as a proof of concept rather than a production-quality implementation, it provides a clear direction for a working implementation.

For the actual implementation, we aim to follow an upstream-first approach wherever possible. Since this involves substantial refactoring, we want to coordinate with the community as early as possible. Larger changes will undergo internal review first, with the work being publicly available in our fork: https://github.com/cyberus-technology/cloud-hypervisor/tree/cyberus-confidential-computing

Full feature description
If you are interested in TDX support or are already working on it, we encourage you to participate in the discussion and coordinate efforts
in this issue.

For now, we are following this high-level roadmap:

  • Align rust-vmm with the new Linux Kernel interfaces of TDX
  • Refactor the HypervisorVmConfig and PlatformConfig types to accommodate different CoCo implementations.
  • Refactor the SEV-SNP shared page handler so that it can be reused by at least all x86 CoCo implementations.
  • Unify the handling of the KVM_HC_MAP_GPA_RANGE hypercall for SEV-SNP and TDX.
  • Refactor the use of guest_memfd to accommodate different CoCo implementations.
  • Implement the TDX-specific functionality required to boot a TDX guest.
Lenguaje dominante
Rust
Estrellas
6.3k
Forks
786
Merge medio
1 d 3 h
PR fusionados (30 d)
195

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de cloud-hypervisor/cloud-hypervisor

Todos los issues de cloud-hypervisor/cloud-hypervisor

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.