Skip to content

vswitch: Add a vswitch example with small fixups#207

Open
JDuchniewicz wants to merge 16 commits intomainfrom
jakub/vswitch
Open

vswitch: Add a vswitch example with small fixups#207
JDuchniewicz wants to merge 16 commits intomainfrom
jakub/vswitch

Conversation

@JDuchniewicz
Copy link
Copy Markdown
Contributor

@JDuchniewicz JDuchniewicz commented Mar 30, 2026

This adds a new vswitch example basing off the regular virtio example. In there we can have a few VMs connected to one vswitch and communicating freely.

Also disables a few comments that cause #71

Depends on microkit_sdf_gen PR: and au-ts/microkit_sdf_gen#31
sddf PR: au-ts/sddf#685

JDuchniewicz and others added 13 commits March 23, 2026 15:49
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
In some cases virtq initialization happens after the host managed to
send data to the guest. The virtio should both drop the incoming packet
and reset the active signal to keep the host sending future incoming packets even
if the virtq is not yet initialized.
@JDuchniewicz
Copy link
Copy Markdown
Contributor Author

An idea regarding the example - should we allow for specifying the number of clients to spawn? Also, I need to adjust the documentation since this looks very similar to the original virtio example and I would rather either enhance that one (or allow for optionally testing vswitch) - most of the code is copied and we don't really want that. @Courtney3141 @Ivan-Velickovic

Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
Signed-off-by: Jakub Duchniewicz <j.duchniewicz@unsw.edu.au>
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