Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtio net #643

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft

Virtio net #643

wants to merge 23 commits into from

Conversation

jounathaen
Copy link
Member

@jounathaen jounathaen commented Feb 19, 2024

This is a rebase and rework of #536 done by @BaderSZ

Original description:

This a somewhat-functional implementation for virtio-net. I'll follow up with comments, tests and likely a few examples for RustyHermit soon.

Related: #1

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

Attention: Patch coverage is 25.34435% with 542 lines in your changes missing coverage. Please review.

Project coverage is 58.56%. Comparing base (efc3563) to head (775acca).

Current head 775acca differs from pull request most recent head 269af79

Please upload reports for the commit 269af79 to get more accurate results.

Files Patch % Lines
src/linux/virtio.rs 23.57% 321 Missing ⚠️
src/linux/vcpu.rs 1.12% 88 Missing ⚠️
src/net/tap.rs 0.00% 60 Missing ⚠️
src/linux/virtqueue.rs 0.00% 40 Missing ⚠️
src/net/virtio/mod.rs 13.63% 19 Missing ⚠️
src/net/virtio/capabilities.rs 85.13% 11 Missing ⚠️
src/linux/uhyve.rs 90.00% 2 Missing ⚠️
src/bin/uhyve.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #643      +/-   ##
==========================================
- Coverage   68.06%   58.56%   -9.50%     
==========================================
  Files          20       21       +1     
  Lines        2311     2638     +327     
==========================================
- Hits         1573     1545      -28     
- Misses        738     1093     +355     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jounathaen
Copy link
Member Author

If I get it right, using virtio-queue basically forces us to use virtio-mem as memory backend. (makes #645 obsolete).

@jounathaen jounathaen force-pushed the virtio-net branch 8 times, most recently from ff445af to abe8633 Compare February 19, 2024 18:10
@BaderSZ
Copy link

BaderSZ commented Mar 28, 2024

Some bugs were found when it comes to handling BARs: size/mode aren't handled correctly. I'll document progress and fix on BaderSZ#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants