未验证 提交 adad139d 编写于 作者: Y Yu Yihuang 提交者: GitHub

Merge pull request #2354 from PaulYuuu/vcpu_unplug_time

cpu_device_hotplug_maximum: Update unplug verification timeout
......@@ -7,7 +7,7 @@
required_qemu = [2.6.0, )
start_vm = no
qemu_sandbox = on
allow_pcpu_overcommit = yes
allow_pcpu_overcommit = no
# Require long time to reboot if CPU overcommit
reboot_timeout = 360
vcpu_maxcpus = 0
......
......@@ -72,6 +72,7 @@ def run(test, params, env):
session = vm.wait_for_login()
cpuinfo = vm.cpuinfo
smp = cpuinfo.smp
vcpus_count = vm.params.get_numeric("vcpus_count")
error_context.context("Hotplug all vCPU devices", logging.info)
for vcpu_device in vcpu_devices:
......@@ -93,7 +94,7 @@ def run(test, params, env):
error_context.context("Hotunplug all vCPU devices", logging.info)
for vcpu_device in reversed(vcpu_devices):
vm.hotunplug_vcpu_device(vcpu_device)
vm.hotunplug_vcpu_device(vcpu_device, 10 * vcpus_count)
if not utils_misc.wait_for(lambda: vm.get_cpu_count() == smp,
verify_wait_timeout, first=5, step=10):
logging.error(not_equal_text, vm.get_cpu_count(), smp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册