win_virtio_driver_update_test.cfg 6.2 KB
Newer Older
1
- win_virtio_driver_update_test:
2
    type = driver_in_use
3 4 5 6 7
    only Windows
    monitor_type = qmp
    monitors = qmp1
    cdroms += " virtio winutils"
    image_snapshot_image1 = yes
8
    kill_vm = yes
9 10
    kill_vm_on_error = yes
    check_guest_bsod = yes
11
    image_snapshot = yes
12 13
    login_timeout = 360
    driver_install_timeout = 600
14
    suppress_exception = no
15
    tmp_folder = C:\tmp
16
    guest_alias = "Win7-32:w7\x86,Win7-64:w7\amd64,Win8-32:w8\x86,Win8-64:w8\amd64,Win8-32.1:w8.1\x86,Win8-64.1:w8.1\amd64,Win10-32:w10\x86,Win10-64:w10\amd64,Win2008-sp2-32:2k8\x86,Win2008-sp2-64:2k8\amd64,Win2008-r2-64:2k8R2\amd64,Win2012-64:2k12\amd64,Win2012-64r2:2k12R2\amd64,Win2016-64:2k16\amd64"
17 18
    driver_install_cmd = "python WIN_UTILS:\win_driver_install.py %s %s %s %s %s"
    show_file_ext_cmd = "reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f"
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
    sub_test = win_virtio_driver_update_test
    variants:
        - uninstall_install:
            need_uninstall = yes
        - downgrade_upgrade:
            need_uninstall = no
            cdrom_virtio_downgrade = isos/windows/virtio-win-downgrade.iso
    variants:
        - before_bg_test:
            run_bg_flag = "before_bg_test"
        - during_bg_test:
            run_bg_flag = "during_bg_test"
            suppress_exception = yes
        - after_bg_test:
            run_bg_flag = "after_bg_test"
34 35 36 37 38 39 40 41 42
    variants:
        - with_balloon:
            driver_name = balloon
            balloon = balloon0
            balloon_dev_devid = balloon0
            balloon_dev_add_bus = yes
            driver_name = balloon
            device_name = "VirtIO Balloon Driver"
            driver_id_pattern = "(.*?):.*?VirtIO Balloon Driver"
43
            run_bgstress = balloon_check
44 45 46 47 48 49 50 51 52 53 54 55 56 57
            virtio_balloon_pause = 10.0
            free_mem_cmd = cat /proc/meminfo |grep MemFree
            ratio = 0.5
            run_sub_test_after_balloon = no
            test_tags = "evict enlarge"
            balloon_type_evict = evict
            balloon_type_enlarge = enlarge
        - with_netkvm:
            driver_name = netkvm
            nics += " nic2"
            nic_model_nic1 = virtio
            nic_model_nic2 = rtl8139
            device_name = "Red Hat VirtIO Ethernet Adapter"
            hostpassword = redhat
58
            target_process = netperf.exe
59
            run_bgstress = netperf_stress
60 61 62 63 64 65 66 67 68 69 70 71 72 73
            netperf_link = netperf-2.6.0.tar.bz2
            server_path = /var/tmp/
            client_path = /var/tmp/
            test_protocols = TCP_STREAM
            netperf_client = ${vms}
            netperf_server = localhost
            netperf_test_duration = 200
            wait_before_subtest = 100
            ping_ext_host = "yes"
            ext_host_get_cmd = "ip route | awk '/default/ { print $3 }'"
            shell_client = "nc"
        - with_viostor:
            driver_name = viostor
            device_name = "Red Hat VirtIO SCSI controller"
74
            target_process = iozone.exe
75
            run_bgstress = iozone_windows
76
            drive_format_image1 = ide
77 78
            q35:
                drive_format_image1 = ahci
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
            images += " stg"
            image_name_stg = "images/storage"
            image_size_stg = 4G
            drive_format_stg = virtio
            disk_letter = I
            disk_index = 1
            format_disk = yes
            force_create_image_stg = yes
            remove_image_stg = yes
            driver_id_pattern = "(.*?):.*?VirtIO SCSI Disk Device"
            iozone_cmd = "WIN_UTILS:\Iozone\iozone.exe -azR -r 64k -n 1G -g 2G -M -i 0 -i 1 -b iozone.xls -f ${disk_letter}:\testfile"
            iozone_timeout = 7200
            wait_bg_time = 180
        - with_vioscsi:
            driver_name = vioscsi
            device_name = "Red Hat VirtIO SCSI pass-through controller"
95
            target_process = iozone.exe
96
            run_bgstress = iozone_windows
97
            drive_format_image1 = ide
98
            cd_format_fixed = ide
99 100
            q35:
                drive_format_image1 = ahci
101
                cd_format_fixed = ahci
102 103 104 105 106 107 108 109 110 111 112 113 114
            images += " stg"
            image_name_stg = "images/storage"
            image_size_stg = 4G
            drive_format_stg = scsi-hd
            disk_letter = I
            disk_index = 1
            format_disk = yes
            force_create_image_stg = yes
            remove_image_stg = yes
            driver_id_pattern = "(.*?):.*?VirtIO SCSI pass-through controller"
            iozone_cmd = "WIN_UTILS:\Iozone\iozone.exe -azR -r 64k -n 1G -g 2G -M -i 0 -i 1 -b iozone.xls -f ${disk_letter}:\testfile"
            iozone_timeout = 7200
            wait_bg_time = 180
115 116 117 118 119 120 121 122
        - with_viorng:
            no no_virtio_rng
            driver_name = viorng
            device_name = "VirtIO RNG Device"
            run_bgstress = rng_bat 
            target_process = random\w*.exe
            session_cmd_timeout = 240
            rng_data_rex = "0x\w"
123
            read_rng_cmd  = "WIN_UTILS:\random_%PROCESSOR_ARCHITECTURE%.exe"
124
            driver_id_pattern = "(.*?):.*?VirtIO RNG Device"
125 126 127 128 129 130 131 132 133
            i386:
                driver_id_cmd = 'WIN_UTILS:\devcon\wxp_x86\devcon.exe find * | find "VirtIO"'
                driver_check_cmd = "WIN_UTILS:\devcon\wxp_x86\devcon.exe status @DRIVER_ID"
            x86_64:
                driver_id_cmd = 'WIN_UTILS:\devcon\wnet_amd64\devcon.exe find * | find "VirtIO"'
                driver_check_cmd = "WIN_UTILS:\devcon\wnet_amd64\devcon.exe status @DRIVER_ID"
            during_bg_test:
                read_rng_cmd = for /l %i in (1, 1, 1000) do "WIN_UTILS:\random_%PROCESSOR_ARCHITECTURE%.exe"
                driver_check_cmd = ""
134 135 136 137 138 139 140 141 142 143 144 145
        - with_pvpanic:
            only before_bg_test
            no Host_RHEL.m6
            driver_name = pvpanic
            device_name = "QEMU PVPanic Device"
            run_bgstress = pvpanic
            event_check = "GUEST_PANICKED"
            crash_method = nmi
            timeout = 360
            backup_image_before_testing = yes
            restore_image_after_testing = yes
            set_panic_cmd = 'wmic class stdregprov call SetDwordValue hDefKey="&h80000002" sSubKeyName="SYSTEM\CurrentControlSet\Control\CrashControl" sValueName="NMICrashDump" uValue=1'