提交 dc2ce274 编写于 作者: L Lukáš Doktor 提交者: Lucas Meneghel Rodrigues

virttest: Store qemu_id in VirtioPort

This patch stores the qemu_id to each VirtioPort. This is crucial
for virtio_console hotplug tests.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 1a6a3f3a
...@@ -1017,9 +1017,9 @@ def run_virtio_console(test, params, env): ...@@ -1017,9 +1017,9 @@ def run_virtio_console(test, params, env):
"name=%s" "name=%s"
% (port_type, pci_id, port, port)) % (port_type, pci_id, port, port))
if console == "no": if console == "no":
vm.virtio_ports.append(kvm_virtio_port.VirtioSerial(port, None)) vm.virtio_ports.append(kvm_virtio_port.VirtioSerial(port, port, None))
else: else:
vm.virtio_ports.append(kvm_virtio_port.VirtioConsole(port, None)) vm.virtio_ports.append(kvm_virtio_port.VirtioConsole(port, port, None))
if ret != "": if ret != "":
logging.error(ret) logging.error(ret)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册