From 12edc9c890f0a5cb4b75940ef731472b992408ad Mon Sep 17 00:00:00 2001 From: Meina Li Date: Mon, 9 Oct 2023 04:56:50 -0400 Subject: [PATCH] virtio_page_per_vq: add libvirt version Signed-off-by: Meina Li --- libvirt/tests/cfg/virtio/virtio_page_per_vq.cfg | 1 + libvirt/tests/src/virtio/virtio_page_per_vq.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/libvirt/tests/cfg/virtio/virtio_page_per_vq.cfg b/libvirt/tests/cfg/virtio/virtio_page_per_vq.cfg index 7c6cfee667..a06382e915 100644 --- a/libvirt/tests/cfg/virtio/virtio_page_per_vq.cfg +++ b/libvirt/tests/cfg/virtio/virtio_page_per_vq.cfg @@ -3,6 +3,7 @@ start_vm = no driver_dict = {'driver': {'page_per_vq': 'on'}} ping_outside = 'www.google.com' + func_supported_since_libvirt_ver = (8, 5, 0) no s390-virtio variants: - default_start: diff --git a/libvirt/tests/src/virtio/virtio_page_per_vq.py b/libvirt/tests/src/virtio/virtio_page_per_vq.py index 21288abf0e..270fbed5e4 100644 --- a/libvirt/tests/src/virtio/virtio_page_per_vq.py +++ b/libvirt/tests/src/virtio/virtio_page_per_vq.py @@ -1,4 +1,5 @@ import os +from virttest import libvirt_version from virttest import utils_net from virttest import virsh from virttest.libvirt_xml import vm_xml @@ -122,6 +123,7 @@ def start_guest(): disk_image = params.get("disk_image", "") input_type = params.get("input_type") controller_type = params.get("controller_type") + libvirt_version.is_libvirt_feature_supported(params) vm = env.get_vm(vm_name) vmxml = vm_xml.VMXML.new_from_dumpxml(vm_name)