Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
121 changes: 121 additions & 0 deletions KVM/qemu/boot_repeat.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
- boot_repeat:
variants:
- one_vm_repeat:
virt_test_type = qemu
vm_accelerator = kvm
start_vm = no
image_snapshot = yes
vga = std
auto_cpu_model = "no"
cpu_model = host
variants:
- @default:
type = boot_repeat
variants:
- 10times:
iterations = 10
variants:
- one_cpu:
smp = 1
vcpu_maxcpus = 1
- four_cpu:
smp = 4
vcpu_maxcpus = 4
- 20times:
iterations = 20
variants:
- four_cpu:
smp = 4
vcpu_maxcpus = 4
variants:
- one_socket:
vcpu_sockets = 1
- two_socket:
vcpu_sockets = 2
no one_cpu
variants:
- vm:
- td:
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
- memory_sweep:
type = multi_vms_multi_boot
vms = "vm1"
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
variants:
- 1vm:
variants:
- from1G_toall:
- 1td:
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
variants:
- from1G_toall:

- multi_vms_repeat:
virt_test_type = qemu
vm_accelerator = kvm
image_snapshot = yes
start_vm = no
vga = std
auto_cpu_model = "no"
cpu_model = host
variants:
- @default:
type = boot_repeat
smp = 4
vcpu_maxcpus = 4
mem = 16384
variants:
- 20times:
iterations = 20
variants:
- 4td:
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
vms = "vm1 vm2 vm3 vm4"
- 4vm:
vms = "vm1 vm2 vm3 vm4"
- memory_sweep:
type = multi_vms_multi_boot
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
variants:
- 1td_1vm:
vms = "vm1 vm2"
machine_type_extra_params_vm2 = "kernel-irqchip=split"
vm_secure_guest_type_vm2 = tdx
variants:
- from1G_toall:
- 2td:
vms = "vm1 vm2"
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
variants:
- from1G_toall:
- 4td:
vms = "vm1 vm2 vm3 vm4"
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
variants:
- from1G_toall:
- 2vm:
vms = "vm1 vm2"
variants:
- from1G_toall:
- 4vm:
vms = "vm1 vm2 vm3 vm4"
variants:
- from1G_toall:
89 changes: 0 additions & 89 deletions KVM/qemu/multi_vms.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,9 @@
auto_cpu_model = "no"
cpu_model = host
variants:
- 1vm:
vms = "vm1"
variants:
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
- 1td:
vms = "vm1"
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
variants:
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
- 1td_1vm:
machine_type_extra_params_vm2 = "kernel-irqchip=split"
vm_secure_guest_type_vm2 = tdx
variants:
- @default:
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
- 2td:
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
Expand All @@ -79,34 +38,10 @@
- 1G_2G:
mem_vm1 = 1024
mem_vm2 = 2048
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
- 4td:
machine_type_extra_params = "kernel-irqchip=split"
vm_secure_guest_type = tdx
vms = "vm1 vm2 vm3 vm4"
variants:
- @default:
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
- 2vm:
variants:
- 2vcpu:
Expand All @@ -131,29 +66,5 @@
- 1G_2G:
mem_vm1 = 1024
mem_vm2 = 2048
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
- 4vm:
vms = "vm1 vm2 vm3 vm4"
variants:
- @default:
- from1G_toall:
type = multi_vms_multi_boot
start_vm = no
start_mem = 1024
mem_generator = random_32g_window
random_min = 0
random_max = 64
random_unit = 511
samples_per_window = 2
window_size = 32768
divide_host_mem_limit_by_vm_count = yes
30 changes: 0 additions & 30 deletions KVM/qemu/td_boot_multimes.cfg

This file was deleted.

44 changes: 44 additions & 0 deletions KVM/qemu/tests/boot_repeat.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/python3

# SPDX-License-Identifier: GPL-2.0-only
# Copyright (c) 2026 Intel Corporation

from provider import dmesg_router # pylint: disable=unused-import

from virttest import error_context


@error_context.context_aware
def run(test, params, env):
"""
Boot all configured VMs, verify guest login, destroy them, and repeat.

:param test: QEMU test object
:param params: Dictionary with the test parameters
:param env: Dictionary with test environment
"""

timeout = int(params.get_numeric("login_timeout", 240))
iterations = int(params.get_numeric("iterations"))
vm_names = params.objects("vms")
if not vm_names:
test.cancel("No VMs configured for boot_repeat")

vms = [env.get_vm(vm_name) for vm_name in vm_names]
for iteration in range(1, iterations + 1):
started_vms = []
error_context.context(
"Boot repeat iteration %s/%s" % (iteration, iterations),
test.log.info,
)
try:
for vm in vms:
vm.create()
started_vms.append(vm)
for vm in started_vms:
vm.verify_alive()
session = vm.wait_for_login(timeout=timeout)
session.close()
finally:
for vm in started_vms:
vm.destroy(gracefully=False)
42 changes: 0 additions & 42 deletions KVM/qemu/tests/td_boot_multimes.py

This file was deleted.

Loading