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

vmm:qemu support aarch64 #169

Merged
merged 1 commit into from
Oct 25, 2024
Merged

vmm:qemu support aarch64 #169

merged 1 commit into from
Oct 25, 2024

Conversation

HITweihailiuxu
Copy link

vmm:qemu support aarch64

@HITweihailiuxu HITweihailiuxu requested a review from a team as a code owner October 22, 2024 09:24
@HITweihailiuxu
Copy link
Author

/retest

@@ -21,7 +21,7 @@ use std::{
};

use containerd_sandbox::error::{Error, Result};
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
Copy link
Member

Choose a reason for hiding this comment

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

Is this cfg not needed anymore after aarch64 is supportted? If so, you can remove it.

Copy link
Author

Choose a reason for hiding this comment

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

done

lazy_static! {
static ref SUPPORTED_MACHINES: HashMap<String, Machine> = {
let mut sms = HashMap::new();
#[cfg(target_arch = "x86_64")]
sms.insert(
"microvm-pci".to_string(),
Machine {
r#type: "microvm-pci".to_string(),
Copy link
Member

Choose a reason for hiding this comment

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

"microvm-pci" is not needed, can you help remove?

Copy link
Author

Choose a reason for hiding this comment

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

done

@@ -155,17 +165,17 @@ impl QemuVMConfig {
} else {
return Err(Error::InvalidArgument("cpu model".to_string()));
}
#[cfg(target_arch = "x86_64")]
#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
Copy link
Member

Choose a reason for hiding this comment

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

Same as above

Copy link
Author

Choose a reason for hiding this comment

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

done

Copy link
Member

@Burning1020 Burning1020 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@Burning1020 Burning1020 merged commit 02ed014 into kuasar-io:main Oct 25, 2024
18 checks passed
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