提交 0bb10b95 编写于 作者: L Lukáš Doktor

Use correct device in balloon_hotplug test

On s390x the balloon device is virtio-balloon-ccw and not -pci.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 00874bbb
......@@ -44,12 +44,13 @@ def run(test, params, env):
err = ""
vm = env.get_vm(params["main_vm"])
vm.verify_alive()
balloon_device = params.get("ballon_device", "virtio-balloon-pci")
error_context.context("Hotplug and unplug balloon device in a loop",
logging.info)
for i in xrange(int(params.get("balloon_repeats", 3))):
vm.devices.set_dirty()
new_dev = qdevices.QDevice("virtio-balloon-pci",
new_dev = qdevices.QDevice(balloon_device,
{'id': 'balloon%d' % idx},
parent_bus={'aobject': 'pci.0'})
......
......@@ -16,6 +16,9 @@
test_tags = "evict enlarge"
balloon_type_evict = evict
balloon_type_enlarge = enlarge
balloon_device = virtio-balloon-pci
s390x:
balloon_device = virtio-balloon-ccw
variants:
- @default:
balloon_repeats = 100
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册