From 8ceff8dec681bb630282ed56c90feb1bb6ca7c47 Mon Sep 17 00:00:00 2001 From: aien-spark Date: Wed, 4 Nov 2026 15:40:52 -0600 Subject: [PATCH] Pin tests to ${AIEN_TEST_CPUS:-0-9,15-19}, not reserved cores 10-14 --- README.md | 5 +++++ qemu/bench/run.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4581f13..43af3f7 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,11 @@ transcript: edu reads `0x010000ed` at BAR0 0x0 through both the map and pread; w edu, a virtio device, an access at the BAR0 size and a misaligned access are all refused. `qemu/mutant-*.log` show two compiler mutants (MAP_PRIVATE, wrong device-fd request) failing there. +Every QEMU boot and test command runs under `nice -n 19 taskset -c "${AIEN_TEST_CPUS:-0-9,15-19}"`. +`AIEN_TEST_CPUS` is the one CPU list the scripts pin to. The default `0-9,15-19` keeps them off +cores 10-14, which the shared Spark reserves for its live service; set it to use other cores, +e.g. `AIEN_TEST_CPUS=0-3 KERNEL=... sh qemu/test.sh`. + Host tools in the build and test path (disclosed; not part of the driver): `sh`, `git`, `sha256sum`, QEMU 8.2.2, busybox, zstd, cpio, gzip. The driver itself is `w0.om` only. diff --git a/qemu/bench/run.sh b/qemu/bench/run.sh index 598d5bd..d7415c0 100755 --- a/qemu/bench/run.sh +++ b/qemu/bench/run.sh @@ -15,7 +15,7 @@ mkdir "$T/x"; cp "$1" "$T/x/w0"; chmod +x "$T/x/w0"; cp "$2" "$T/x/cmds" cp $B/initramfs.cpio.gz "$T/initrd" (cd "$T/x" && printf 'w0\ncmds\n' | cpio -o -H newc --quiet) | gzip >> "$T/initrd" boot() { # $1 = accel args - nice -n 19 taskset -c 10-14 timeout ${TIMEOUT:-180} qemu-system-aarch64 \ + nice -n 19 taskset -c "${AIEN_TEST_CPUS:-0-9,15-19}" timeout ${TIMEOUT:-180} qemu-system-aarch64 \ -M virt,iommu=smmuv3 $1 -smp 2 -m 1G -nographic -no-reboot \ -kernel $K -initrd "$T/initrd" -append 'console=ttyAMA0 rdinit=/init panic=-1' \ ${DEVICES:--device edu -device edu}