Skip to content

Patch to get the location code of any pci device#9

Open
TasmiyaNalatwad wants to merge 7 commits into
lop-devops:KVMCIfrom
TasmiyaNalatwad:EEH
Open

Patch to get the location code of any pci device#9
TasmiyaNalatwad wants to merge 7 commits into
lop-devops:KVMCIfrom
TasmiyaNalatwad:EEH

Conversation

@TasmiyaNalatwad

@TasmiyaNalatwad TasmiyaNalatwad commented Dec 4, 2025

Copy link
Copy Markdown

Location code is used to trigger eeh injections on any pci device in kvm environment

Patch is used to get the location code of the pci devices using there pci id's

Misbah Anjum N and others added 7 commits September 28, 2025 23:52
Currently, kernel_args is not present in the output of "virt-install --boot help" as "--boot cmdline=%s" is the recommended way of passing kernel command line parameters. As a result, the import/install test is failiing since kernel and initrd parameter is being passed without kernel_args

But --boot option supports both kernel_args and cmdline parameter for passing kernel arguments to the guest, i.e,
--boot kernel=<vmlinuz>,initrd=<initrd>,cmdline=<kernel-cmdline> (recommended way)
(or)
--boot kernel=<vmlinuz>,initrd=<initrd>,kernel_args= <kernel-cmdline>

This patch adds support of reading both cmdline and kernel_args parameter and passes whichever is available from config to the virt-install --boot option

Signed-off-by: Misbah Anjum N <misanjum@linux.vnet.ibm.com>
This patch can be used to run htx mdts stress_type using htxcmdline tool
Additionally, this patch fixes DeprecationWarning of invalid escape sequence 'x' W605

This patch introduces the following changes:

Allow running of different stress types in different vms based on stress_type_%s parameter if provided in the cfg file, where %s is the name of the vm. This will allow us to introduce additional types of stress in the future. If the stress_type_%s paramter is not provided, then the default stress_type will be used.

Define a new function load_htxstress_tool() to run htxcmdline tool in the guest. This function will be called whenever stress_type_vmname = htxcmdline_in_vms. The user can provide the link to the .rpm/.deb package and the function will handle the installation, followed by the running of the htxcmdline tool by using the htxcmdline_args parameter, all provided by user in the cfg file.

Signed-off-by: Misbah Anjum N <misanjum@linux.vnet.ibm.com>
Change the KVMCI avocado-vt repo tp-libvirt link from autotest/tp-libvirt
to lop-devops/tp-libvirt to support KVMCI workflows

Signed-off-by: Misbah Anjum N <misanjum@linux.vnet.ibm.com>
This patch is used to run sls stress suite which is
based on LTP suite. Through this patch, one can provide
<SLS>.tar file link and provide the parameters to run
the suite.

The following parameters are required for SLS
1. stress_type = sls_in_vms
2. stress_cmds_sls = "./start_sls.py"
3. sls_args = "-b"
4. download_url_sls = "http://<..>/SLS.tar"
5. make_cmds_sls = "./install_sls.py"
6. check_cmds_sls = "pgrep -f go_sls.py"
7. stop_cmds_sls = "cd /home/SLS && ./stop_sls.py"

Signed-off-by: Misbah Anjum N <misanjum@linux.ibm.com>
Avoid passing bound VirtTest.runTest method to multiprocessing.Process,
because Python 3.14 no longer allows pickling objects containing
locks or queues. Use a small wrapper function that creates the VirtTest
instance inside the child process. This preserves behavior and ensures
cross-process safety.

Signed-off-by: Misbah Anjum N <misanjumn@ibm.com>
mkfs command fails due to no time window after the previous
command. Hence, adding a sleep timer inside mkfs function.

Signed-off-by: Misbah Anjum N <misanjumn@ibm.com>
…kvm environment

Patch is used to get the location code of the pci devices using there pci id's

Signed-off-by: Tasmiya Nalatwad <Tasmiya.Nalatwad@ibm.com>
@TasmiyaNalatwad TasmiyaNalatwad changed the title Location code is used to trigger eeh injections on any pci device in … Location code is used to trigger eeh injections on any pci device in kvm environment Dec 4, 2025
@TasmiyaNalatwad

Copy link
Copy Markdown
Author

Ref : avocado-framework#4046

@TasmiyaNalatwad TasmiyaNalatwad changed the title Location code is used to trigger eeh injections on any pci device in kvm environment Patch to get the location code of any pci device Dec 4, 2025
@misanjumn misanjumn force-pushed the KVMCI branch 2 times, most recently from 49adb6b to e054db5 Compare July 2, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants