Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

scripts: let the runtime adapter's suite run on KVM on a host that also has /dev/mshv

Aperta Adatta ai principianti
#1,019 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
69/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
linux, python, rust
Ambito
backend, testing

Direzione di ricerca

Inizia con validate_openvmm_test_backend in scripts/nvx_tools/ci.py e la relativa chiamata in scripts/nvx_tools/runtime_adapter_tests.py; confronta i controlli condivisi per il sistema operativo e i dispositivi con la restrizione sulla selezione automatica di KVM. Verifica come guest_options in tests/runtime-adapter/tests/common/mod.rs passa NVX_HYPERVISOR, quindi esegui la suite dell’adattatore di runtime su un host che espone entrambi i dispositivi. Il lavoro è concluso quando la suite può usare KVM su quell’host, mentre la validazione condivisa continua a rifiutare la selezione automatica non sicura.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The runtime adapter's suite command (command_test_runtime_adapter in scripts/nvx_tools/runtime_adapter_tests.py) checks its backend with the shared validate_openvmm_test_backend (scripts/nvx_tools/ci.py), which refuses kvm whenever /dev/mshv exists, because OpenVMM would otherwise select MSHV on its own. The runtime adapter names the hypervisor explicitly, though: its tests pass --hypervisor from NVX_HYPERVISOR (guest_options in tests/runtime-adapter/tests/common/mod.rs, and tests/runtime-adapter/src/layered.rs). So on a host that exposes both /dev/kvm and /dev/mshv, the suite refuses KVM although it could run on it.

To fix: separate the auto-selection restriction from the OS and device-access checks, and have the runtime adapter's command use only the latter.

Found in #963 (a review thread on scripts/nvx_tools/runtime_adapter_tests.py, line 275, still open at merge). Related to #833.

Lingua principale
Rust
Stelle
758
Fork
48
Merge medio
18h 49m
PR unite (30g)
451

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/nvx

Tutte le issue di microsoft/nvx

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.