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

fix(virtio-net): waiting infinetely for bridge to be created #47

Merged
merged 5 commits into from
May 6, 2024
Merged

fix(virtio-net): waiting infinetely for bridge to be created #47

merged 5 commits into from
May 6, 2024

Conversation

mfernd
Copy link
Contributor

@mfernd mfernd commented May 6, 2024

What does this PR do?

As I've seen with @sylvain-pierrot and @thomas-mauran, the problem comes from vmm::core::devices::virtio::net::bridge#L26 where the futures::executor::block_on (so everywhere there is this in this module). The future seems to never be polled by the executor, so from tokio or futures.

To solve the problem, I removed all of these (block_on), updated the function signatures with async in bridge.rs and propagated it up to the VMM.
(I also refactored the code in bridge.rs to be a bit more readable.)

Expected behavior

Before:

The VMM orchestrator wait infinitely at the Net configuration step:
image

After:

Now it works correctly, and I've added a bit of logging to see the step in the network part:
image

mfernd added 2 commits May 6, 2024 01:42
remove futures block_on in bridge module, because they're not polled (so not executed)

Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
@mfernd mfernd self-assigned this May 6, 2024
@mfernd mfernd requested review from sylvain-pierrot and Kuruyia May 6, 2024 02:10
mfernd added 3 commits May 6, 2024 04:17
Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
Signed-off-by: Mateo Fernandez <mateo.fernandez@etu.umontpellier.fr>
@mfernd mfernd requested review from a team and removed request for Kuruyia and sylvain-pierrot May 6, 2024 02:24
Copy link
Contributor

@Kuruyia Kuruyia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix and cleaning this up :)

@mfernd mfernd merged commit 1b67058 into virt-do:main May 6, 2024
2 checks passed
@mfernd mfernd deleted the fix/virtio-net branch May 6, 2024 08:02
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