Files
xen/automation/scripts/include/xtf-x86-64
T
Denis Mukhin 3a7b635365 automation: align XTF qemu parameters across achitectures
It is handy to have 2 CPUs and more RAM for smoke testing a hypervisor
change via XTF.

Align x86 QEMU configuration with Arm for XTF tests: 2 CPU and 2G of RAM.

Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
2026-02-04 14:35:00 -08:00

33 lines
894 B
Bash

#!/bin/bash
#
# XTF test utilities (x86_64).
#
# Arch-specific environment overrides.
function xtf_arch_prepare()
{
export FW_PREFIX="${FW_PREFIX:-}"
export QEMU_PREFIX="${QEMU_PREFIX:-}"
export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
export XTF_SRC_VARIANTS="hvm64 pv64"
}
# Perform arch-specific XTF environment setup.
function xtf_arch_setup()
{
export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
-no-reboot \
-nographic \
-monitor none \
-serial stdio \
-m 2048 \
-smp 2 \
-kernel ${XEN_BINARY} \
-initrd ${XTF_BINARY} \
-append \"${XEN_CMDLINE}\" \
"
}