COCONUT-SVSM Google Summer of Code Project Proposals
Hey everyone,
in preparation for the SVSM development call later today here are our current proposals for GSoC projects. Please have a look and provide feedback as a reply to this thread or in the meeting today[1].
Thanks,
Joerg
[GSoC 2026] Observability Support for COCONUT-SVSM
=== Observability Support for COCONUT-SVSM ===
'''Summary:''' Implement Support for COCONUT-SVSM Observability within the TEE
COCONUT-SVSM is a Secure Virtual machine Service Module that runs at a privileged level within a Confidential Virtual Machine (CVM) to provide trusted services, such as a virtual TPM, to the guest operating system, independent of the host hypervisor.
The goal of the project is to implement support for observability of COCONUT-SVSM from the guest OS. When finished the guest OS has a way to fetch runtime metrics and data from the COCONUT-SVSM running within the same TEE. Runtime data includes the log buffer, services logs, memory usage, and possible future extensions.
The project consists of several parts:
1. Design an experimental SVSM observability protocol for exchanging metrics and data between COCONUT-SVSM and the Linux kernel. This protocol will be an extension of the SVSM protocol specification.
2. Implement a handler for the protocol within COCONUT-SVSM following the other protocols COCONUT-SVSM already implements.
3. Implement a Linux device driver which uses this protocol to get observability data from COCONUT-SVSM and make it accessible to Linux user-mode via a device file.
4. Implement a Linux user-space utility to fetch and save the observability data using the device driver.
'''Links:'''
* COCONUT-SVSM Repository: https://github.com/coconut-svsm/svsm/
* Development plan: https://coconut-svsm.github.io/svsm/developer/DEVELOPMENT-PLAN/#observability
* SVSM protocol specification: https://docs.amd.com/v/u/en-US/58019
'''Details:'''
Skill level: Intermediate
Language: Rust and C
Re: [GSoC 2026] Observability Support for COCONUT-SVSM
Hi Jörg,
Gerd and I can help on mentoring this, so we can add:
Quoted 31 lines · Jörg Rödel
=== Observability Support for COCONUT-SVSM ===
'''Summary:''' Implement Support for COCONUT-SVSM Observability within the TEE
COCONUT-SVSM is a Secure Virtual machine Service Module that runs at a privileged level within a Confidential Virtual Machine (CVM) to provide trusted services, such as a virtual TPM, to the guest operating system, independent of the host hypervisor.
The goal of the project is to implement support for observability of COCONUT-SVSM from the guest OS. When finished the guest OS has a way to fetch runtime metrics and data from the COCONUT-SVSM running within the same TEE. Runtime data includes the log buffer, services logs, memory usage, and possible future extensions.
The project consists of several parts:
1. Design an experimental SVSM observability protocol for exchanging metrics and data between COCONUT-SVSM and the Linux kernel. This protocol will be an extension of the SVSM protocol specification.
2. Implement a handler for the protocol within COCONUT-SVSM following the other protocols COCONUT-SVSM already implements.
3. Implement a Linux device driver which uses this protocol to get observability data from COCONUT-SVSM and make it accessible to Linux user-mode via a device file.
4. Implement a Linux user-space utility to fetch and save the observability data using the device driver.'''Links:'''
Quoted 7 lines
* COCONUT-SVSM Repository: https://github.com/coconut-svsm/svsm/
* Development plan: https://coconut-svsm.github.io/svsm/developer/DEVELOPMENT-PLAN/#observability
* SVSM protocol specification: https://docs.amd.com/v/u/en-US/58019'''Details:'''
Skill level: Intermediate
Language: Rust and C
Mentors: Stefano Garzarella <[email protected]>, Gerd Hoffmann <[email protected]>
Thanks,
Stefano
[GSoC 2026] PCID Support for COCONUT-SVSM
In reply to Jörg Rödel=== Support X86 Process Context Identifiers (PCID) in COCONUT-SVSM ===
COCONUT-SVSM is a Secure Virtual machine Service Module that runs at a privileged level within a Confidential Virtual Machine (CVM) to provide trusted services, such as a virtual TPM, to the guest operating system, independent of the host hypervisor.
The goal of the project is to enhance the COCONUT-SVSM kernel to make use of the PCID feature on X86 to reduce the number of runtime TLB misses. The work consists of several steps:
1. Implement generic CPUID feature enumeration support by building a code generator which automatically creates a Rust crate from the data provided by the X86-CPUID project. Use that generated crate in COCONUT-SVSM for detecting the PCID feature and clean up all the open coded CPUID checks.
2. Design and implement a PCID assignment strategy for tasks and threads in the COCONUT kernel.
3. Apply the PCIDs in the COCONUT page-tables and adapt the TLB flushing code to take PCIDs into account.
'''Links:'''
* AMD64 APM 2 (PCIDs, Section 5.5.1.): https://docs.amd.com/v/u/en-US/24593_3.43
* X86 cpuid project: https://x86-cpuid.org/
* COCONUT-SVSM: https://github.com/coconut-svsm/svsm/
'''Details:'''
* Skill level: Intermediate
* Languages: Rust
Re: [GSoC 2026] PCID Support for COCONUT-SVSM
Hi Joerg,
Quoted 20 lines · Jörg Rödel
=== Support X86 Process Context Identifiers (PCID) in COCONUT-SVSM ===
COCONUT-SVSM is a Secure Virtual machine Service Module that runs at a privileged level within a Confidential Virtual Machine (CVM) to provide trusted services, such as a virtual TPM, to the guest operating system, independent of the host hypervisor.
The goal of the project is to enhance the COCONUT-SVSM kernel to make use of the PCID feature on X86 to reduce the number of runtime TLB misses. The work consists of several steps:
1. Implement generic CPUID feature enumeration support by building a code generator which automatically creates a Rust crate from the data provided by the X86-CPUID project. Use that generated crate in COCONUT-SVSM for detecting the PCID feature and clean up all the open coded CPUID checks.
2. Design and implement a PCID assignment strategy for tasks and threads in the COCONUT kernel.
3. Apply the PCIDs in the COCONUT page-tables and adapt the TLB flushing code to take PCIDs into account.
Quoted 9 lines
'''Links:'''
* AMD64 APM 2 (PCIDs, Section 5.5.1.): https://docs.amd.com/v/u/en-US/24593_3.43
* X86 cpuid project: https://x86-cpuid.org/
* COCONUT-SVSM: https://github.com/coconut-svsm/svsm/'''Details:'''
* Skill level: Intermediate
* Languages: Rust
I'm available to help co-mentor this project.
Luigi
Re: [GSoC 2026] PCID Support for COCONUT-SVSM
Quoted 4 lines · Luigi Leonardi
Quoted 1 line · Jörg Rödel
=== Support X86 Process Context Identifiers (PCID) in COCONUT-SVSM ===
I'm available to help co-mentor this project.
Great, thanks Luigi!
-Joerg