nova: avoid fault during thread migration

triggert by cpu_balancer.run on Qemu

Fixes #4742
This commit is contained in:
Alexander Boettcher 2023-01-26 14:14:55 +01:00 committed by Christian Helmuth
parent 93e26cae35
commit d2f27a34f7
3 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
55bf35a51a039d4fe420fcc310c4271b615913eb c7c2e9cf8d1bcd15608da93d5aa152d32aef1a33

View File

@ -4,7 +4,7 @@ DOWNLOADS := nova.git
# r10 branch # r10 branch
URL(nova) := https://github.com/alex-ab/NOVA.git URL(nova) := https://github.com/alex-ab/NOVA.git
REV(nova) := 953b8d36d909f87d8465e43ab35c22b636d04c87 REV(nova) := 0cb9c8abfe9cb9d0992c8dbe048f55610fb54539
DIR(nova) := src/kernel/nova DIR(nova) := src/kernel/nova
PATCHES := $(sort $(wildcard $(REP_DIR)/patches/*.patch)) PATCHES := $(sort $(wildcard $(REP_DIR)/patches/*.patch))

View File

@ -127,6 +127,7 @@ append config {
<binary name="shim"/> <binary name="shim"/>
<affinity xpos="1" ypos="0" width="2" height="1"/> <affinity xpos="1" ypos="0" width="2" height="1"/>
<resource name="RAM" quantum="3M"/> <resource name="RAM" quantum="3M"/>
<config percent="95"/>
<route> <route>
<!-- by shim binary --> <!-- by shim binary -->
@ -163,4 +164,4 @@ build_boot_image { core ld.lib.so init timer cpu_balancer cpu_burner top dynamic
append qemu_args " -nographic" append qemu_args " -nographic"
append qemu_args " -smp [expr $cpu_width * $cpu_height],cores=$cpu_width,threads=$cpu_height" append qemu_args " -smp [expr $cpu_width * $cpu_height],cores=$cpu_width,threads=$cpu_height"
run_genode_until {.*thread xpos="1" ypos="0" name="signal handler" policy="max-utilize".*\n} 60 run_genode_until {.*thread xpos="[1-9]" ypos="0" name="signal handler" policy="max-utilize".*\n} 60