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

Abierto
#1,101 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

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

Línea de trabajo

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.

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

Descripción

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.

Lenguaje dominante
Rust
Estrellas
82
Forks
16
Merge medio
3 d 6 h
PR fusionados (30 d)
11

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

Todos los issues de oxidecomputer/opte

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.