Enable CI for MicroVM

This commit is contained in:
Yuke Peng 2023-11-07 21:09:44 -08:00 committed by Tate, Hongliang Tian
parent 4c72f5b7fa
commit 0e7f279bd6
2 changed files with 6 additions and 2 deletions

View File

@ -28,4 +28,6 @@ jobs:
id: syscall_test_linux
run: make run AUTO_TEST=syscall ENABLE_KVM=0 BOOT_PROTOCOL=linux RELEASE_MODE=1
# TODO: include the integration tests for MicroVM, which is not ready yet.
- name: Syscall Test (MicroVM)
id: syscall_test_microvm
run: make run AUTO_TEST=syscall ENABLE_KVM=0 BOOT_METHOD=microvm RELEASE_MODE=1

View File

@ -13,6 +13,7 @@ use alloc::{
vec,
vec::Vec,
};
use log::warn;
#[derive(PartialEq, Debug)]
struct InitprocArgs {
@ -82,7 +83,8 @@ impl From<&str> for KCmdlineArg {
// by the analysis over the BackusNaur form syntax tree.
for arg in split_arg(cmdline) {
// FIXME: The -kernel option in QEMU seems to add this string to the command line, which we skip for now.
if arg.starts_with("target/x86_64-custom/debug/jinux") {
if arg.starts_with("target/x86_64-custom/") {
warn!("Found kcmdline: {:?}, skipped for now.", arg);
continue;
}
// Cmdline => KernelArg "--" InitArg