From 17ad743d22ba5505f444944bc3329197be07ef8e Mon Sep 17 00:00:00 2001 From: Yiqiao Pu Date: Fri, 10 May 2013 17:35:45 +0800 Subject: [PATCH] qemu.tests.cfg: Add config file for pci_hotplug test Signed-off-by: Yiqiao Pu Signed-off-by: Qingtang Zhou --- qemu/tests/cfg/pci_hotplug.cfg | 84 ++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 qemu/tests/cfg/pci_hotplug.cfg diff --git a/qemu/tests/cfg/pci_hotplug.cfg b/qemu/tests/cfg/pci_hotplug.cfg new file mode 100644 index 00000000..5c3ccaa0 --- /dev/null +++ b/qemu/tests/cfg/pci_hotplug.cfg @@ -0,0 +1,84 @@ +- pci_hotplug: + type = pci_hotplug + kill_vm_on_error = yes + kill_vm_gracefully = no + pci_num = 1 + repeat_times = 1 + wait_secs_for_hook_up = 3 + variants: + - reboot: + sub_type_after_unplug = boot + reboot_method = shell + reboot = yes + - shutdown: + sub_type_after_unplug = shutdown + shutdown_method = shell + check_img = yes + - suspend: + no RHEL.3, RHEL.4 + only Host_RHEL + no Host_RHEL.5, Host_RHEL.6.0, Host_RHEL.6.1, Host_RHEL.6.2 + services_up_timeout = 30 + variants: + - after_plug: + #XXX: pci_hotplug script doesn't support S4 after hotplug. + # disable it until script is fixed. + no guest_s4 + sub_type_after_plug = guest_suspend + - after_unplug: + sub_type_after_unplug = guest_suspend + variants: + - guest_s3: + extra_params = " -global PIIX4_PM.disable_s3=0" + guest_suspend_type = "mem" + # params: s3_support_chk_cmd, s3_bg_program_setup_cmd, + # s3_bg_program_chk_cmd, s3_bg_program_kill_cmd, s3_log_chk_cmd, + # s3_start_cmd and services_up_timeout are set in guest-os.cfg + - guest_s4: + extra_params = " -global PIIX4_PM.disable_s4=0" + guest_suspend_type = "disk" + # params: s3_support_chk_cmd, s3_bg_program_setup_cmd, + # s3_bg_program_chk_cmd, s3_bg_program_kill_cmd, s3_log_chk_cmd, + # s3_start_cmd and services_up_timeout are set in guest-os.cfg + variants: + - nic_rtl8139: + only hotplug_nic + pci_model = rtl8139 + match_string = "8139" + - nic_virtio_net: + only virtio_net virtio_blk + only hotplug_nic + pci_model = virtio + match_string = "Virtio network device" + - nic_e1000: + only hotplug_nic + pci_model = e1000 + match_string = "Gigabit Ethernet Controller" + - blk_virtio_blk: + only virtio_net virtio_blk + only hotplug_block + pci_model = virtio + match_string = "Virtio block device" + - blk_scsi: + no Host_RHEL + only hotplug_block + pci_model = scsi + match_string = "SCSI" + variants: + - hotplug_block: + pci_type = block + images += " stg" + boot_drive_stg = no + image_name_stg = images/storage + image_size_stg = 1G + remove_image_stg = yes + force_create_image_stg = yes + image_format_stg = qcow2 + reference_cmd = lspci + find_pci_cmd = 'lspci' + pci_test_cmd = "echo %s; yes | mke2fs `fdisk -l 2>&1 | awk '/\/dev\/[sv]d[a-z]* doesn/ {print $2}'` | sort | tail -1" + - hotplug_nic: + pci_type = nic + reference_cmd = lspci + find_pci_cmd = 'lspci' + pci_test_cmd = 'echo %s; nslookup www.redhat.com' -- GitLab