-
Notifications
You must be signed in to change notification settings - Fork 94
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
Conversation
/retest |
vmm/sandbox/src/qemu/config.rs
Outdated
@@ -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"))] |
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.
Is this cfg not needed anymore after aarch64 is supportted? If so, you can remove it.
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.
done
vmm/sandbox/src/qemu/config.rs
Outdated
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(), |
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.
"microvm-pci" is not needed, can you help remove?
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.
done
vmm/sandbox/src/qemu/config.rs
Outdated
@@ -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"))] |
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 as above
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.
done
Signed-off-by: liuxu <[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.
LGTM. Thanks
vmm:qemu support aarch64