Signed-off-by: Feng Yang <[email protected]>
---
shared/cfg/subtests.cfg.sample | 52 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 52 insertions(+), 0 deletions(-)
diff --git a/shared/cfg/subtests.cfg.sample b/shared/cfg/subtests.cfg.sample
index a83c7f6..dd89c00 100644
--- a/shared/cfg/subtests.cfg.sample
+++ b/shared/cfg/subtests.cfg.sample
@@ -3205,6 +3205,58 @@ variants:
test_timeout = 720
blkdebug_default = blkdebug/qemu_io_default.conf
+ - sr-iov:
+ only vf_assignable
+ variants:
+ - vf_boot:
+ type = boot
+ pci_assignable_nic1 = vf
+ - multi_vf_boot:
+ type = boot
+ nics = "nic1 nic2 nic3"
+ pci_assignable = vf
+ - max_vf_boot:
+ type = boot
+ nics = "nic1 nic2 nic3 nic4 nic5 nic6 nic7"
+ pci_assignable = vf
+ - pf_vf_boot:
+ type = boot
+ nics = "nic1 nic2"
+ pci_assignable_nic1 = pf
+ # Need udpate device_name for pf according to your host
+ device_name_nic1 = eth1
+ pci_assignable_nic2 = vf
+ - vf_boot_vms:
+ type = boot
+ vms = 'vm1 vm2'
+ pci_assignable_nic1 = vf
+ image_snapshot = yes
+ - vf_hotplug:
+ type = sr_iov_hotplug
+ pci_assignable = vf
+ reference_cmd = lspci
+ find_pci_cmd = 'lspci | tail -n1'
+ pci_test_cmd = 'echo %s; nslookup www.redhat.com'
+ pci_num = 2
+ repeat_times = 2
+ wait_secs_for_hook_up = 3
+ - vf_hot_unplug:
+ type = sr_iov_hotunplug
+ pci_assignable = vf
+ reference_cmd = lspci
+ nics = "nic1 nic2 nic3"
+ unplug_pci_num = 2
+ - vf_hotplug_500:
+ type = sr_iov_hotplug
+ pci_assignable = vf
+ reference_cmd = lspci
+ find_pci_cmd = 'lspci | tail -n1'
+ pci_test_cmd = 'echo %s; nslookup www.redhat.com'
+ wait_secs_for_hook_up = 3
+ pci_num = 2
+ repeat_times = 500
+ test_timeout = 10000
+
# system_powerdown, system_reset and shutdown *must* be the last ones
# defined (in this order), since the effect of such tests can leave
# the VM on a bad state.
--
1.7.1
_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel