virtio_port_hotplug.cfg 4.6 KB
Newer Older
1 2 3 4 5
- virtio_port_hotplug:
    type = virtio_port_hotplug
    kill_vm = yes
    kill_vm_on_error = yes
    repeat_times = 100
L
Li Jin 已提交
6 7 8 9 10 11 12
    target_process = "python"
    guest_scripts = VirtIoChannel_guest_send_receive.py;windows_support.py
    host_script = serial_host_send_receive.py
    guest_script = VirtIoChannel_guest_send_receive.py
    clean_cmd = rm -f
    guest_script_folder = /var/tmp/
    Windows:
13
        driver_name = vioser
L
Li Jin 已提交
14 15 16 17 18
        guest_script_folder = C:\
        clean_cmd = del /f /q
        tmp_dir = %TEMP%
        python_bin = python2.7
        target_process = ${python_bin}.exe
19 20 21 22
    Linux:
        modprobe_module = virtio_console
    variants:
        - unplug_chardev:
23 24 25 26 27
            serials += " vc1 vc2"
            serial_type_vc1 = virtserialport
            serial_type_vc2 = virtconsole
            file_transfer_serial_port = vc1
            unplug_device = vc1 vc2
L
Li Jin 已提交
28
            filesize = 100
29 30 31
            unplug_chardev_vc1 = yes
            unplug_chardev_vc2 = yes
        - @unplug_port:
32 33 34 35 36 37 38
            serials += " vs1 vs2"
            serial_type_vs1 = virtserialport
            serial_type_vs2 = virtserialport
            unplug_device = vs1 vs2
            check_module = no
            unplug_chardev_vs1 = no
            unplug_chardev_vs2 = no
L
Li Jin 已提交
39
            filesize = 100
40 41
            Linux:
                filesize = 2000
42 43 44 45 46
        - unplug_port_chardev_pci:
            type = virtio_serial_unplug_port_chardev_pci
            sleep_time = 0.5
            serials += " vs1"
            serial_type_vs1 = virtserialport
47 48 49 50 51 52 53
        - hotplug_port_pci:
            type = virtio_serial_hotplug_port_pci
            start_vm = no
            extra_chardevs = "channel1 channel2"
            extra_serials = "port1 port2"
            serial_type_port1 = "virtserialport"
            serial_type_port2 = "virtserialport"
L
Li Jin 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
            shutdown_method = system_powerdown
            repeat_times = 1
            unplug_pci = yes
            variants:
                - @default:
                    plug_same_nr = yes
                    unplug_pci = no
                - with_reboot:
                    interrupt_test_after_unplug = reboot_guest
                    interrupt_test_after_plug = reboot_guest
                    reboot_method = shell
                - with_system_reset:
                    interrupt_test_after_unplug = reboot_guest
                    interrupt_test_after_plug = reboot_guest
                    reboot_method = system_reset
                    sleep_before_reset = 0
                - with_shutdown_after_unplug:
                    interrupt_test_after_unplug = shutdown_guest
                - with_shutdown_after_plug:
                    interrupt_test_after_plug = shutdown_guest
                - with_live_migration_after_unplug:
                    interrupt_test_after_unplug = live_migration_guest
                - repeat_pci_in_loop:
                    repeat_times = 100
78 79 80 81 82 83
                - without_chardev:
                    type = virtio_serial_hotplug_port_pci_chardev
                    start_vm = yes
                    extra_chardevs = "channel1"
                    extra_serials = "port1"
                    serial_type_port1 = "virtserialport"
84 85 86 87 88 89 90 91 92
                - with_console_negative:
                    type = hotplug_port_chardev_pci_with_console
                    start_vm = yes
                    serials += " vc1"
                    chardev_backend_vc1 = pty
                    serial_type_vc1 = virtconsole
                    extra_chardevs = "channel1"
                    extra_serials = "vs1"
                    serial_type_vs1 = virtserialport
93 94 95 96 97 98 99 100 101
                - max_chardevs:
                    type = virtio_serial_hotplug_max_chardevs
                    start_vm = yes
                    sleep_time = 1
                    extra_chardevs = "channel0"
                    numberic_chardev = 31
                    #Port number 0 on virtio-serial devices reserved for
                    #virtconsole devices for backward compatibility
                    virtio_serial_ports = 30
102 103 104 105 106 107 108 109 110 111 112 113 114 115
        - hotplug_various_chardev:
            type = virtio_serial_various_chardev_hotplug
            serials = ""
            start_vm = yes
            extra_chardevs = "channel1 channel2 channel3 channel4 channel5 channel6"
            chardev_backend_channel2 = tcp_socket
            chardev_backend_channel3 = pty
            chardev_backend_channel4 = null
            chardev_backend_channel5 = file
            chardev_backend_channel6 = ringbuf
            ringbuf_write_size = 2048
            ringbuf_read_size = 1000
            ringbuf_data = 'adcdefgh'
            ringbuf_format = 'utf8'