Skip to content

libvirt_mem: Add vhost configuration for SLES#30

Open
sneh-3 wants to merge 2 commits into
lop-devops:KVMCIfrom
sneh-3:vhost_kvmci_fix
Open

libvirt_mem: Add vhost configuration for SLES#30
sneh-3 wants to merge 2 commits into
lop-devops:KVMCIfrom
sneh-3:vhost_kvmci_fix

Conversation

@sneh-3

@sneh-3 sneh-3 commented Jul 1, 2026

Copy link
Copy Markdown
  1. check the running distro and vm state
  2. configures vhost max_mem_regions

Signed-off-by: Sneh Shikha Yadav syadav@linux.ibm.com

misanjumn and others added 2 commits July 1, 2026 19:29
Replace inline kdump logic with calls to the shared utils_kdump module
and clean up the test flow:

- Import utils_kdump; drop threading, aexpect exception imports
- Add params: setup_kdump, install_missing_packages, crashkernel_value,
  upstream_kernel_vmlinux
- Add optional kdump setup phase (ensure_kdump_packages +
  configure_kdump) before service validation, guarded by setup_kdump
- check_kdump_service: delegate distro detection and service check to
  utils_kdump.get_distro_info / utils_kdump.check_kdump_service
- get_vmcores: replace inline ls + split with utils_kdump.get_vmcores,
  returning full file paths instead of bare names
- Remove local check_guest_status and trigger_crash helpers; use
  utils_kdump.check_guest_status and utils_kdump.trigger_crash_parallel
- crash_utility_tool: replace manual distro detection, debug-library
  checks, and crash invocation with utils_kdump.analyze_vmcore_with_crash;
  extend distro support to include sles/suse
- ensure_crash_utility_packages called explicitly before vmcore analysis
- vmcore diff logic: compute new_vmcores as set difference (post - pre)
  instead of length comparison, avoiding false positives

Signed-off-by: Misbah Anjum N <misanjumn@ibm.com>
1. check the running dostro and vm state
2. configures vhost max_mem_regions

Signed-off-by: Sneh Shikha Yadav <syadav@linux.ibm.com>
@sneh-3

sneh-3 commented Jul 1, 2026

Copy link
Copy Markdown
Author

before fix:
(114/413) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.memory.hot.plug.max_slots.without_reboot: FAIL: error: Failed to attach device from /var/tmp/xml_utils_temp_lmk15107.xml\nerror: internal error: unable to execute QEMU command 'device_add': a used vhost backend has not enough free memory slots left\n (34.58 s)

after fix:
(1/1) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.memory.hot.plug.max_slots.without_reboot: STARTED
(1/1) type_specific.io-github-autotest-libvirt.libvirt_mem.positive_test.memory.hot.plug.max_slots.without_reboot: PASS (177.27 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 |

@misanjumn misanjumn force-pushed the KVMCI branch 2 times, most recently from 07fba98 to 150c3f6 Compare July 2, 2026 11:33
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