Skip to content

Commit fbf790c

Browse files
committed
fix(ci): enable KVM acceleration for GitHub Actions runner
1 parent 6b8ccda commit fbf790c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.github/workflows/qemu-x86_64.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ args = [
1010
"-drive",
1111
"id=disk0,if=none,format=raw,file=${workspaceFolder}/tmp/rootfs.img",
1212
"-nographic",
13-
# "-accel",
14-
# "kvm",
13+
"-accel",
14+
"kvm",
1515
"-cpu",
16-
"max"
17-
# "host",
16+
"host",
1817
]
19-
fail_regex = []
18+
fail_regex = ["System will reboot, press any key to continue ..."]
2019
success_regex = ["usertests passed!"]
2120
to_bin = false
2221
uefi = false

modules/axconfig/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ pub mod devices {
4747
#[doc = ""]
4848
pub mod plat {
4949
#[doc = " Number of CPUs."]
50-
pub const CPU_NUM: usize = 1;
50+
pub const CPU_NUM: usize = 16;
5151
#[doc = " Platform family (deprecated)."]
5252
pub const FAMILY: &str = "";
5353
#[doc = " Kernel address space base."]

0 commit comments

Comments
 (0)