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

オープン
#1,101 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
38/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
networking

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
82
フォーク
16
平均マージ
3日 6時間
マージ済み PR(30日)
11

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

oxidecomputer/opte のほかの issue

oxidecomputer/opte の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。