diff --git a/libvirt/tests/cfg/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.cfg b/libvirt/tests/cfg/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.cfg index a3a4c7dd42..a5e4b4e0c4 100644 --- a/libvirt/tests/cfg/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.cfg +++ b/libvirt/tests/cfg/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.cfg @@ -3,13 +3,17 @@ start_vm = "no" expr_driver = "mlx5_vfio_pci" ping_dest = "www.redhat.com" - test_pf = "ens3f0np0" - only x86_64, aarch64 + + x86_64: + test_pf = "ens3f0np0" variants: - mlx5_vfio: + original_driver = "mlx5_core" driver_dict = {'driver': {'driver_attr': {'name': 'vfio', 'model': 'mlx5_vfio_pci'}}} - vfio_vfio: + expr_driver = "vfio-pci" + original_driver = "igbvf" driver_dict = {'driver': {'driver_attr': {'name': 'vfio', 'model': 'vfio_pci'}}} - @default: driver_dict = {} diff --git a/libvirt/tests/src/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.py b/libvirt/tests/src/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.py index e2c308cdf0..7dc89affeb 100644 --- a/libvirt/tests/src/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.py +++ b/libvirt/tests/src/sriov/plug_unplug/sriov_attach_detach_device_vfio_variant_driver.py @@ -42,6 +42,7 @@ def parse_iface_dict(pf_pci): dev_type = params.get("dev_type", "hostdev_interface") device_type = "hostdev" if dev_type == "hostdev_device" else "interface" expr_driver = params.get("expr_driver", "mlx5_vfio_pci") + original_driver = params.get("original_driver", "mlx5_core") test_pf = params.get("test_pf") pf_pci = utils_sriov.get_pf_pci(test_pf=test_pf) iface_number = int(params.get("iface_number", "1")) @@ -99,7 +100,7 @@ def parse_iface_dict(pf_pci): "device!" % vm_hostdevs) else: test.log.debug("Verify: The hostdev interface/device in VM xml is removed successfully - PASS") - libvirt_vfio.check_vfio_pci(vf_pci, exp_driver="mlx5_core") + libvirt_vfio.check_vfio_pci(vf_pci, exp_driver=original_driver) test.log.debug("Verify: Check VF driver successfully after detaching hostdev interface/device - PASS") virsh.reboot(vm.name, ignore_status=False, debug=True) test.log.debug("Verify: VM reboot is successful after detaching hostdev interface/device - PASS")