提交 17ad743d 编写于 作者: Y Yiqiao Pu 提交者: Lucas Meneghel Rodrigues

qemu.tests.cfg: Add config file for pci_hotplug test

Signed-off-by: NYiqiao Pu <ypu@redhat.com>
Signed-off-by: NQingtang Zhou <qzhou@redhat.com>
上级 37b89b23
- 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'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册