-
Notifications
You must be signed in to change notification settings - Fork 93
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
sandbox code optimization #55
Conversation
70c7e7f
to
4378503
Compare
Now that features have been removed, the project can be built with the following command:
|
33ee3ee
to
8d61a43
Compare
24ca8f8
to
840dd43
Compare
Seems like it could be further optimized. I will try to move The advantage of this is that you can use the command directly: |
832af0a
to
b9acec0
Compare
43162d0
to
76d6a38
Compare
Will take a look. |
b9acec0
to
bdf27fa
Compare
vmm/sandbox/src/lib.rs
Outdated
pub const CONFIG_STRATOVIRT_PATH: &str = "/var/lib/kuasar/config_stratovirt.toml"; | ||
pub const CONFIG_CLH_PATH: &str = "/var/lib/kuasar/config_clh.toml"; | ||
|
||
pub async fn init_cloud_hypervisor_sandboxer( |
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.
why is this init function needed? maybe move it to cloud_hypervisor folder?
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.
I tried moving the initialization functions for qemu
,cloud_hypervisor
, and stratovirt
in lib.rs
to their own folders.
@@ -7,12 +7,6 @@ edition = "2021" | |||
[profile.release] | |||
panic = 'abort' | |||
|
|||
[features] | |||
default = [] | |||
qemu = ["qapi/qmp", "qapi/async-tokio-all", "unshare", "os_pipe"] |
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.
Please try to add the mapping of binary name and its main.rs path. https://doc.rust-lang.org/cargo/reference/cargo-targets.html#configuring-a-target
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.
I added configuration for qemu, cloud_hypervisor, stratovirt.
One more thing is to check Makefile targets. |
8fbdad4
to
1aeaae3
Compare
I added the |
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.
@Burning1020 @abel-von Thanks for the suggestion, I'll revise it soon. |
Signed-off-by: dierbei <[email protected]>
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.
Good job. Thank you.
There still seems to be a problem, see details: rust-lang/rust-clippy#11247
In the future, I will rebase after the bug fix is completed to keep the commit record clear.