-
Notifications
You must be signed in to change notification settings - Fork 10
feat: implement vsock configuration for VMs #17
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
base: main
Are you sure you want to change the base?
Conversation
|
Hey @alexandrebrg, is this repository maintained? I have this and a couple of other branches that I'd like to get merged in here. For now we're maintaining an internal fork, but I'd like to use the public version if we can get these changes in. |
|
Hi @norwoodj, my apologies for the delay. Thank you for the contribution :) |
alexandrebrg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small changes otherwise look good to me π
| VsockBuilder::new() | ||
| .with_guest_cid(3) | ||
| .with_uds_path("/tmp/fc.sock".to_string()) | ||
| .try_build() | ||
| .unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than having a panic with no context (if it fails), please add the expected behaviour in a expect
| VsockBuilder::new() | |
| .with_guest_cid(3) | |
| .with_uds_path("/tmp/fc.sock".to_string()) | |
| .try_build() | |
| .unwrap(); | |
| VsockBuilder::new() | |
| .with_guest_cid(3) | |
| .with_uds_path("/tmp/fc.sock".to_string()) | |
| .try_build() | |
| .expect("Minimal build should be valid") |
| #[test] | ||
| #[should_panic] | ||
| fn partial_kernel() { | ||
| VsockBuilder::new().with_guest_cid(3).try_build().unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| impl Default for Executor { | ||
| fn default() -> Self { | ||
| Self::new() | ||
| } | ||
| } | ||
|
|
||
| impl Executor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| impl Default for Executor { | |
| fn default() -> Self { | |
| Self::new() | |
| } | |
| } | |
| impl Executor { | |
| #[derive(Default)] | |
| impl Executor { |
π Description
Implements vsock for firecracker VMs spawned by firepilot by adding the configuration and API call to the firecracker server.
β Checks