Change kstack size to 7 when running benchmark

This commit is contained in:
Chen Chengjun 2024-08-29 11:52:25 +08:00 committed by Tate, Hongliang Tian
parent 5bc696a85a
commit ba884127e2
1 changed files with 7 additions and 5 deletions

View File

@ -47,11 +47,6 @@ export VSOCK=1
CARGO_OSDK_ARGS += --init-args="/test/run_vsock_test.sh"
endif
# If the BENCHMARK is set, we will run the benchmark in the kernel mode.
ifneq ($(BENCHMARK), none)
CARGO_OSDK_ARGS += --init-args="/benchmark/common/runner.sh $(BENCHMARK)"
endif
ifeq ($(RELEASE_LTO), 1)
CARGO_OSDK_ARGS += --profile release-lto
OSTD_TASK_STACK_SIZE_IN_PAGES = 8
@ -60,6 +55,13 @@ CARGO_OSDK_ARGS += --release
OSTD_TASK_STACK_SIZE_IN_PAGES = 8
endif
# If the BENCHMARK is set, we will run the benchmark in the kernel mode.
ifneq ($(BENCHMARK), none)
CARGO_OSDK_ARGS += --init-args="/benchmark/common/runner.sh $(BENCHMARK)"
# TODO: remove this workaround after enabling kernel virtual area.
OSTD_TASK_STACK_SIZE_IN_PAGES = 7
endif
ifeq ($(INTEL_TDX), 1)
BOOT_METHOD = grub-qcow2
BOOT_PROTOCOL = linux-efi-handover64