Support PCIe Passthrough of NVMe VFs to VMs
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- linux, rust
Direzione di ricerca
Inizia individuando i punti di ingresso dell’API di gestione di FeOS VM e del backend dell’hypervisor; l’issue non indica file sorgente né test. Definisci la specifica del dispositivo PCIe e il flusso di validazione, quindi traccia l’attach statico e hot-plug attraverso il runtime. Il lavoro è completo quando sono soddisfatti i criteri di accettazione elencati per API, passthrough, boot, I/O, hot-plug e test di integrazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
This work item enables FeOS to attach NVMe devices, exposed to the host as PCIe Virtual Functions (VFs), directly to a FeOS-managed Virtual Machine (VM). This allows a remote NVMe device, connected via a Bluefield DPU using NVMe-oF (RoCEv2), to be used as a high-performance boot or storage drive for a VM.
The core task is to extend the VM management API and backend to support PCIe device passthrough, identifying the NVMe device by its PCIe address. The scope also includes support for dynamically attaching and detaching these devices while the VM is running (hot-plugging).
Scope
✅ In Scope
- Extend the FeOS VM API to allow specifying one or more NVMe devices via their host PCIe address during VM creation/modification.
- Implement the backend logic for PCIe passthrough of an NVMe VF to a guest VM (e.g., using IOMMU /
vfio-pci). - Ensure the guest VM can recognize and utilize the passed-through NVMe device.
- Support using the device as both a primary boot drive and a secondary storage volume.
- Support for dynamic hot-plug and hot-unplug of NVMe VFs to/from a running VM.
❌ Out of Scope
- Configuration of the Bluefield DPU or the NVMe-oF fabric itself. This issue assumes the NVMe VF is already present and visible on the FeOS host.
- Live migration of VMs with attached PCIe passthrough devices.
Responsible Areas
- FeOS VM Management
- FeOS API
Contributors
- @guvenc
- @MalteJ
Acceptance Criteria
-
API
- The VM API includes a new field (e.g.,
pci_devices) in the VM specification to accept a list of PCIe addresses. - The API validates that the provided PCIe address corresponds to an existing and available device on the host.
- The VM API includes a new field (e.g.,
-
VM Runtime (Static Attachment)
- A VM can be successfully launched with an NVMe VF passed through to it.
- The guest operating system inside the VM correctly identifies the NVMe device via its native driver.
- The VM can successfully boot from the passed-through NVMe device when configured as the primary boot disk.
- The VM can mount and perform I/O operations on the device when it is attached as secondary storage.
-
Dynamic Attachment (Hot-plug)
- A dedicated API endpoint exists to attach a PCIe device to a running VM.
- A dedicated API endpoint exists to detach a PCIe device from a running VM.
- The guest OS recognizes the newly attached NVMe device without requiring a reboot.
- The guest OS gracefully handles the removal of a detached NVMe device, provided it is not in active use.
- The VM remains stable during and after hot-plug/unplug operations.
Action Items
- Design the specific API extension for the VM model to include PCIe devices at creation time.
- Implement the necessary host-level checks (e.g., IOMMU enabled, device bound to
vfio-pcidriver). - Integrate the passthrough logic into the VM creation and startup process in the FeOS hypervisor backend.
- Add input validation for PCIe addresses in the API layer.
- Design and implement API endpoints for hot-plug and hot-unplug operations.
- Integrate hot-plug/unplug logic with the hypervisor backend.
- Create integration tests that launch a VM with a passthrough NVMe device and verify its presence and functionality within the guest.
- Add integration tests for attaching and detaching devices from a running VM.
- Lingua principale
- Rust
- Stelle
- 24
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ironcore-dev/FeOS
-
area/operatingsystem
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
ironcore-dev/FeOS#103 ·
-
area/operatingsystem
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ironcore-dev/FeOS#106 ·
-
Improve Host ManagementForse di nuovo libera @friegger l’ha presa 280 giorni fa e non c’è nessuna pull request aperta. Apertaarea/operatingsystem
ironcore-dev/FeOS#108 · 1 assegnatario ·
-
area/operatingsystem
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ironcore-dev/FeOS#109 ·
-
area/operatingsystem
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
ironcore-dev/FeOS#94 ·
Tutte le issue di ironcore-dev/FeOS
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue gpu serve
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
biomejs/biome#12475 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
documentation E-easy good first issue help wanted
Difficoltà 1/5 1-3 ore Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno