Skip to content

Use mio to replace Epoll#316

Open
uran0sH wants to merge 3 commits intorust-vmm:mainfrom
uran0sH:mio
Open

Use mio to replace Epoll#316
uran0sH wants to merge 3 commits intorust-vmm:mainfrom
uran0sH:mio

Conversation

@uran0sH
Copy link
Contributor

@uran0sH uran0sH commented Aug 19, 2025

Summary of the PR

Epoll is linux-specific. So we use mio, which is a cross-platform event notification, to replace Epoll.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • [ x ] All commits in this PR have Signed-Off-By trailers (with
    git commit -s), and the commit message has max 60 characters for the
    summary and max 75 characters for each description line.
  • [ x ] All added/changed functionality has a corresponding unit/integration
    test.
  • [ x ] All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • [ x ] Any newly added unsafe code is properly documented.

@uran0sH uran0sH force-pushed the mio branch 3 times, most recently from 2b19107 to e53a34c Compare August 19, 2025 17:02
@uran0sH uran0sH force-pushed the mio branch 3 times, most recently from be19e30 to 158ca1d Compare August 27, 2025 16:46
@uran0sH uran0sH force-pushed the mio branch 2 times, most recently from 44e7bb3 to 77ba627 Compare September 3, 2025 17:05
germag
germag previously approved these changes Sep 12, 2025
@germag
Copy link
Collaborator

germag commented Sep 12, 2025

this LGTM

@uran0sH
Copy link
Contributor Author

uran0sH commented Oct 8, 2025

@stefano-garzarella @germag any problems about this?

@name1e5s
Copy link

Hi @uran0sH , I'm trying to build the vhost crate on macOS and came across this PR. It seems this PR hasn't been updated for a while, are you still working on it? If not, I'd be happy to take over and continue the work to help get it merged. Let me know what you think. Thanks!

@uran0sH
Copy link
Contributor Author

uran0sH commented Feb 27, 2026

Hi @uran0sH , I'm trying to build the vhost crate on macOS and came across this PR. It seems this PR hasn't been updated for a while, are you still working on it? If not, I'd be happy to take over and continue the work to help get it merged. Let me know what you think. Thanks!

Yeah I will update this pr as soon as possible

@uran0sH uran0sH force-pushed the mio branch 3 times, most recently from 6dde03e to fbc40ce Compare February 28, 2026 08:35
@stefano-garzarella
Copy link
Member

@uran0sH thanks for restarting this work! Please, can you rebase this on current main.

FYI I'll be off from March 7 to 29 with limited internet access, so not sure I can review this before leaving, I'll do my best, but I'll leave to @germag and others handle it.

uran0sH added 3 commits March 5, 2026 16:16
When register_event we pass in the value of u32/u64, so we don't
need to convert it to u16 and then pass it to handle_event.

Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
We can safely use usize instead of u64, because normally we will
not register a data that exceeds the size of usize

Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
Epoll is linux-specific. So we use mio, which is a cross-platform
event notification, to replace Epoll.

Signed-off-by: Wenyu Huang <huangwenyuu@outlook.com>
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.

4 participants