Skip to content

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

Merged
mfernd merged 5 commits intovirt-do:mainfrom
mfernd:fix/virtio-net
May 6, 2024
Merged

fix(virtio-net): waiting infinetely for bridge to be created#47
mfernd merged 5 commits intovirt-do:mainfrom
mfernd:fix/virtio-net

Conversation

@mfernd
Copy link
Copy Markdown
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

Mateo Fernandez 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 Kuruyia and sylvain-pierrot May 6, 2024 02:10
Mateo Fernandez 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
Copy Markdown
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
@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