Using a custom virtio-net driver
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- rust
- 领域
- networking
调研方向
Start by reading src/devices/src/virtio/net/proxy.rs at the referenced revision, then review the issue's questions about accepting a full virtio-net replacement and the Rust or C API boundary. Compare the custom driver with the existing TSI and gvproxy approaches described here. The issue does not define an agreed API, implementation scope, or tests that establish when the work is done.
由索引模型根据 Issue 内容生成。
描述
I've been building a custom virtio-net driver and put it in our fork. The idea was to get something as convenient as the TSI driver, but supporting more features out of the box.
I played with gvproxy and my own custom implementation of gvproxy and noticed CPU time was dominated by kevent (on macos).
Eventually, I decided to build my "userspace NAT proxy" directly as a virtio-net driver to remove at least 1 call to kevent and remove the need for an external process.
This is a question / discussion with many many aspects:
- Could we make krun's API accept a full virtio-net replacement? (likely as as pointer to a boxed implementation, unless there's traction to make a public Rust-first API that the C API is derived from).
- Would such a virtio-net driver be desirable? It's a middle-ground between an external proxy like gvproxy and TSI.
Here's the (rough) implementation of it: https://github.com/superfly/libkrun/blob/361d3e6b9f2f049431e5999ce066ea943d409db7/src/devices/src/virtio/net/proxy.rs
I would like to upstream it, if there's a path forward.
- 主要语言
- Rust
- 星标
- 2.8k
- 派生
- 279
- 平均合并
- 5 天 19 小时
- 30 天内合并 PR
- 48
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
libkrun/libkrun 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 3 天内回复
-
virtio/fs/windows: the owner, mode and xattrs of a symlink are read and written on its target (CVE-2026-135101)可能已有人在做 @nuri-yoo 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 20/100
维护者通常 3 天内回复
-
virtio/fs/windows: rename and link act on another entry when a name ends in a dot or a space (CVE-2026-135102)可能已有人在做 @nuri-yoo 今天认领。 未关闭
难度 4/5 3-5 天 新手友好度 25/100
维护者通常 3 天内回复
-
难度 4/5 1-2 天 新手友好度 52/100
维护者通常 3 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
difficulty: easy docs help wanted tooling
难度 2/5 1-3 小时 新手友好度 83/100
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 85/100
userFRM/egui-charts#4386 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eliasstravik/herdr-projects#1605 · 1 条评论 ·