Want ability to create a port with a "start policy"

Aperta
#1,101 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
networking

Direzione di ricerca

Start by reading the mc_start entrypoint in xde/src/xde.rs (around lines 2086–2092) and trace how ports are created and started. The issue proposes OnMacStart and Explicit policies, with an ioctl for explicitly starting a port; clarify how that fits the migration protocol before implementing. Done means imported ports can remain quiescent until explicitly started, while ordinary ports retain the current behavior.

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

Descrizione

live-migration

For live-migration, we need a way to import state into an otherwise-quiescent port. In Omicron, the port is passed into a Propolis zone, which ultimately creates a viona device over the port. When that happens, the illumos mac framework will eventually call the mc_start(9E) entrypoint, which in the xde driver is here. But once the port is started, the mac framework could deliver frames to it, in which case the port may no longer be quiescent!

This might depend on how we implement the state-migration protocol in Propolis, but what we'd really like is a way to create the port with a specific "start policy". This would describe what to do when the mc_start entrypoint is called. For example, we could use an enum like this:

enum StartPolicy {
    /// Set the port running when `mac` calls our `mc_start` entrypoint
    OnMacStart,
    /// Only start the port when an ioctl explicitly requests it
    Explicit,
}

When creating a new port that we're not importing into, we can use the currently policy, which is essentially OnMacStart. If we're importing state, we could create it with Explicit; import the state; attach the viona device; and then explicitly set the port running after Propolis is satisfied with whatever other migration bits are needed.

Lingua principale
Rust
Stelle
82
Fork
16
Merge medio
3g 6h
PR unite (30g)
11

Preparare l'ambiente

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 oxidecomputer/opte

Tutte le issue di oxidecomputer/opte

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.